From ba5d034d5318d340aefa2b3bd2600c0cc43c934b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 23 Sep 2010 15:14:57 -0700 Subject: selftest: If a testsuite is killed by a signal, let selftest die. --- selftest/selftest.pl | 4 ++-- 1 file 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 +# Copyright (C) 2005-2010 Jelmer Vernooij # Copyright (C) 2007-2009 Stefan Metzmacher # 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; -- cgit