Skip to content

Commit b1bd26b

Browse files
committed
fixup: use expected-error in the lit test
1 parent cfebe51 commit b1bd26b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
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-
// 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.
4+
// RUN: mlir-opt --verify-diagnostics --mlir-pass-pipeline-local-reproducer \
5+
// RUN: --mlir-pass-pipeline-crash-reproducer=%t %s
66

7-
// RUN: mlir-opt --mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t %s 2>&1 || FileCheck --input-file %s %s
8-
9-
// CHECK: error: Local crash reproduction may not be used without disabling mutli-threading first.
7+
// expected-error@unknown {{Local crash reproduction may not be used without disabling mutli-threading first.}}

0 commit comments

Comments
 (0)