Skip to content

Commit

Permalink
Make original run check stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDenisov committed Jan 1, 2025
1 parent ddbb092 commit 3d4d5e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ int main() {
int x = -1;
int y = -x;

return y;
return y != 1; // ensuring zero exit
}

// clang-format off
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/warm-up-run/failed/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ int main() {
// clang-format off
// RUN: cd / && %clang_cc %sysroot %TEST_CXX_FLAGS %pass_mull_ir_frontend %s -o %s.exe
// RUN: cd %CURRENT_DIR
// RUN: (unset TERM; %mull_runner -workers=1 %s.exe 2>&1; test $? = 0) | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
// CHECK:[warning] Original test failed
// RUN: (unset TERM; %mull_runner -workers=1 %s.exe 2>&1; test $? = 1) | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
// CHECK:[error] Original test failed
// CHECK-NEXT:status: Failed
// CHECK-NEXT:stdout: 'failed stdout'
// CHECK-NEXT:stderr: 'failed stderr'
4 changes: 2 additions & 2 deletions tests/integration/warm-up-run/timedout/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ int main() {
// clang-format off
// RUN: cd / && %clang_cc %sysroot %pass_mull_ir_frontend %s -o %s.exe
// RUN: cd %CURRENT_DIR
// RUN: (unset TERM; %mull_runner -timeout=100 -workers=1 %s.exe 2>&1; test $? = 0) | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
// CHECK:[warning] Original test failed
// RUN: (unset TERM; %mull_runner -timeout=100 -workers=1 %s.exe 2>&1; test $? = 1) | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines
// CHECK:[error] Original test failed
// CHECK-NEXT:status: Timedout
// CHECK-NEXT:stdout: ''
// CHECK-NEXT:stderr: ''
2 changes: 1 addition & 1 deletion tools/mull-runner/mull-runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main(int argc, char **argv) {
std::nullopt);
});
if (warmUpResult.status != mull::ExecutionStatus::Passed) {
diagnostics.warning(warmUpResult.debugDescription());
diagnostics.error(warmUpResult.debugDescription());
}

if (!rawCoverageData.empty()) {
Expand Down

0 comments on commit 3d4d5e9

Please sign in to comment.