From b4191b032832f003aafde42516418ab96d81ef32 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 14 Jul 2011 17:03:55 +0000 Subject: [PATCH] Corrected a misunderstanding about meaning of code piece --- libisoburn/trunk/releng/inc/releng_getopts_ts.inc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/libisoburn/trunk/releng/inc/releng_getopts_ts.inc b/libisoburn/trunk/releng/inc/releng_getopts_ts.inc index 312d8c07..6a1b6fdc 100644 --- a/libisoburn/trunk/releng/inc/releng_getopts_ts.inc +++ b/libisoburn/trunk/releng/inc/releng_getopts_ts.inc @@ -200,12 +200,9 @@ if [ x"$CLEANUP" != x"0" -a x"$CLEANUP" != x"1" ]; then fi -# ts B10714 I do not see much sense in flat failure. -# The tests should rather simulate an error condition -# and then let act their error reporting facilities -# if they have some. -# if [ x"$SIMULATE_FAILURE" != x"0" -a x"$SIMULATE_FAILURE" != x"1" ]; then -# print_help -# printf "\n${SELF}: -f simulate failure.\n\n" -# exit 31 -# fi +# <<< This cannot happen if $no_getopts = 1 +if [ x"$SIMULATE_FAILURE" != x"0" -a x"$SIMULATE_FAILURE" != x"1" ]; then + print_help + printf "\n${SELF}: -f simulate failure.\n\n" + exit 31 +fi