summaryrefslogtreecommitdiff
path: root/source4/torture/subunit.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-10-17 22:06:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:22 -0500
commit4517b7af0e867d7244d8fcb9af72358f3559660f (patch)
tree957f32d0005462ac6d6438e113c31c665de36333 /source4/torture/subunit.c
parentc7090e666981eba30eb0553486bf782142e65a89 (diff)
downloadsamba-4517b7af0e867d7244d8fcb9af72358f3559660f.tar.gz
samba-4517b7af0e867d7244d8fcb9af72358f3559660f.tar.bz2
samba-4517b7af0e867d7244d8fcb9af72358f3559660f.zip
r19381: Print out the specific tests that failed after a smbtorture run.
Support listing known failures as a list of wildcards in the file `KNOWN_FAILURES'. (This used to be commit 23f66efd564d1ad549fc0cd60348f54808f5cafa)
Diffstat (limited to 'source4/torture/subunit.c')
-rw-r--r--source4/torture/subunit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/subunit.c b/source4/torture/subunit.c
index 3c4790b706..bed1972079 100644
--- a/source4/torture/subunit.c
+++ b/source4/torture/subunit.c
@@ -190,12 +190,12 @@ bool torture_subunit_run_suite(struct torture_context *context,
return false;
if (waitpid(pid, &status, 0) == -1) {
- torture_comment(context, "waitpid(%d) failed\n", pid);
+ torture_result(context, TORTURE_ERROR, "waitpid(%d) failed\n", pid);
return false;
}
if (WEXITSTATUS(status) != 0) {
- torture_comment(context, "failed with status %d\n", WEXITSTATUS(status));
+ torture_result(context, TORTURE_ERROR, "failed with status %d\n", WEXITSTATUS(status));
return false;
}
@@ -258,7 +258,7 @@ bool torture_subunit_run_suite(struct torture_context *context,
}
if (name != NULL) {
- torture_comment(context, "Interrupted during %s\n", name);
+ torture_result(context, TORTURE_ERROR, "Interrupted during %s\n", name);
return false;
}