aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/styles/tst_styles.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@gmail.com>2016-03-02 09:01:42 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-03 13:50:58 +0000
commitd77d00b17c203fc08dcd34978ff35dbf154d2411 (patch)
tree7c7c97b38f66640bbc465e9949c6b7fa5237f933 /tests/auto/styles/tst_styles.cpp
parente813fe238121316ae04dc01c70432920bff1af92 (diff)
tst_styles: break the process loop on crash
For example, if tst_styles(material) crashes, don't silently continue with tst_styles(universal), but return -1/255 so that 'make check' stops and clearly indicates an error. Change-Id: Ib1a9ff8215fd1c65480b281be999819dc01f4758 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/styles/tst_styles.cpp')
-rw-r--r--tests/auto/styles/tst_styles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/styles/tst_styles.cpp b/tests/auto/styles/tst_styles.cpp
index b45366b6..fad28d85 100644
--- a/tests/auto/styles/tst_styles.cpp
+++ b/tests/auto/styles/tst_styles.cpp
@@ -62,6 +62,8 @@ int main(int argc, char *argv[])
process.start(argv[0], app.arguments().mid(1));
process.waitForFinished();
+ if (process.exitStatus() != QProcess::NormalExit)
+ return -1;
failures += process.exitCode();
}