From d77d00b17c203fc08dcd34978ff35dbf154d2411 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 2 Mar 2016 09:01:42 +0100 Subject: 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 --- tests/auto/styles/tst_styles.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/styles/tst_styles.cpp') 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(); } -- cgit v1.2.3