Skip to content

Commit 382de14

Browse files
committed
tests: Expect a retval of 1
1 parent 30550e5 commit 382de14

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/deqp/tests/info.volt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ fn printResultFromGroup(ref opts: PrintOptions, suite: Suite, tests: Test[],
5656
return;
5757
}
5858

59-
if (retval != 0) {
59+
notExpectedRetval := retval != 0 && retval != 1;
60+
61+
if (notExpectedRetval) {
6062
prefix := opts.getExclamation();
6163

6264
// The test run didn't complete.

src/deqp/tests/runner.volt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ private:
198198
retval, hasFailedTests,
199199
start, end, time);
200200

201+
notExpectedRetval := retval != 0 && retval != 1;
202+
201203
// If the test run didn't complete.
202-
if (retval != 0 || hasFailedTests) {
204+
if (notExpectedRetval != 0 || hasFailedTests) {
203205
// Write out the tests to a file, for debugging.
204206
writeTestsToFile();
205207

@@ -219,6 +221,11 @@ private:
219221
return;
220222
}
221223

224+
// A test failed but didn't crash.
225+
if (retval == 1) {
226+
return;
227+
}
228+
222229
// Loop over and set tests to BadTerminate(Pass).
223230
foreach (test; tests) {
224231
if (test.result != Result.Pass) {

0 commit comments

Comments
 (0)