]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmbconf: testsuite: fix handling of error message/overall status
authorMichael Adam <obnox@samba.org>
Tue, 8 Apr 2008 16:00:27 +0000 (18:00 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 23:28:59 +0000 (01:28 +0200)
Michael

source/lib/smbconf/testsuite.c

index b6220fbc324d1bc32e1a56c16a19defb5a8dbf72..2e833d9e2632dad40f1bfe9d8859056eaf9ba5de 100644 (file)
@@ -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);