summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-23 15:14:57 -0700
committerJelmer Vernooij <jelmer@samba.org>2010-09-25 12:20:56 -0700
commitba5d034d5318d340aefa2b3bd2600c0cc43c934b (patch)
tree6b4f8687497173c22334ef1920e3abb3b3343563
parent465cff7531731929b963085a13ef9a74100858e5 (diff)
downloadsamba-ba5d034d5318d340aefa2b3bd2600c0cc43c934b.tar.gz
samba-ba5d034d5318d340aefa2b3bd2600c0cc43c934b.tar.bz2
samba-ba5d034d5318d340aefa2b3bd2600c0cc43c934b.zip
selftest: If a testsuite is killed by a signal, let selftest die.
-rwxr-xr-xselftest/selftest.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 254c347b80..2680b6adce 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
# Bootstrap Samba and run a number of tests against it.
-# Copyright (C) 2005-2009 Jelmer Vernooij <jelmer@samba.org>
+# Copyright (C) 2005-2010 Jelmer Vernooij <jelmer@samba.org>
# Copyright (C) 2007-2009 Stefan Metzmacher <metze@samba.org>
# This program is free software; you can redistribute it and/or modify
@@ -248,7 +248,7 @@ sub run_testsuite($$$$$)
} elsif ($? & 127) {
Subunit::end_testsuite($name, "error",
sprintf("%s died with signal %d, %s coredump\n", $cmd, ($? & 127), ($? & 128) ? 'with' : 'without'));
- return 0;
+ exit(1);
}
my $exitcode = $? >> 8;