From: Michael Adam Date: Tue, 8 Apr 2008 16:00:27 +0000 (+0200) Subject: libsmbconf: testsuite: fix handling of error message/overall status X-Git-Tag: samba-3.3.0pre1~2791 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2d3d56d628f266fdfc0ca98fc199afc01670c2c;p=thirdparty%2Fsamba.git libsmbconf: testsuite: fix handling of error message/overall status Michael --- diff --git a/source/lib/smbconf/testsuite.c b/source/lib/smbconf/testsuite.c index b6220fbc324..2e833d9e263 100644 --- a/source/lib/smbconf/testsuite.c +++ b/source/lib/smbconf/testsuite.c @@ -140,9 +140,7 @@ static bool torture_smbconf_txt(void) smbconf_shutdown(conf_ctx); - ret = true; - - printf("success: text backend\n"); + printf("%s: text backend\n", ret ? "success" : "failure"); done: TALLOC_FREE(mem_ctx); @@ -172,9 +170,7 @@ static bool torture_smbconf_reg(void) smbconf_shutdown(conf_ctx); - ret = true; - - printf("success: registry backend\n"); + printf("%s: registry backend\n", ret ? "success" : "failure"); done: TALLOC_FREE(mem_ctx);