Commit 7f16ffa2 authored by philn@webkit.org's avatar philn@webkit.org

2011-03-10 Philippe Normand <pnormand@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] run-gtk-tests doesn't fail if a test crashes
        https://bugs.webkit.org/show_bug.cgi?id=56089

        * Scripts/run-gtk-tests: gtester -k exits with a 0 exit status
        even if a test crashes. So run the tests individually and if a
        test fails remember its exit code so run-gtk-test fails too, if
        required.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e4fd02e1
2011-03-10 Philippe Normand <pnormand@igalia.com>
Reviewed by Gustavo Noronha Silva.
[GTK] run-gtk-tests doesn't fail if a test crashes
https://bugs.webkit.org/show_bug.cgi?id=56089
* Scripts/run-gtk-tests: gtester -k exits with a 0 exit status
even if a test crashes. So run the tests individually and if a
test fails remember its exit code so run-gtk-test fails too, if
required.
2011-01-26 John Knottenbelt <jknotten@chromium.org>
Reviewed by Dmitry Titov.
......
......@@ -32,4 +32,17 @@ my @unitTests = glob $productDir . "/Programs/unittests/*";
if ($#unitTests < 1) {
die "ERROR: tests not found in $productDir.\n";
}
system "gtester -k @unitTests"
my $exitStatus = 0;
foreach my $unitTest (@unitTests)
{
system "gtester $unitTest";
if ($?) {
$exitStatus = $?;
}
}
if ($exitStatus) {
print "Tests failed\n";
exit $exitStatus;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment