Skip to content

Commit cfebe51

Browse files
committed
fixup: supress mlit-opt status code in test
1 parent b582670 commit cfebe51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// Test that attempting to create a local crash reproducer without disabling threading
22
// prints an error from the pass manager (as opposed to crashing with a stack trace).
33

4-
// RUN: mlir-opt --mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t 2>&1 %s | FileCheck %s
4+
// We need to use `||` in the RUN command because lit will fail the test due to mlir-opt
5+
// returning non-zero status for this test case, however this is the intended behaviour.
6+
7+
// RUN: mlir-opt --mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t %s 2>&1 || FileCheck --input-file %s %s
8+
59
// CHECK: error: Local crash reproduction may not be used without disabling mutli-threading first.

0 commit comments

Comments
 (0)