Skip to content

Commit b9c876d

Browse files
authored
[flang][test] fix sporadically failing test (#134608)
The test is checking output from MLIR debug prints. MLIR passes can be executed in parallel, for example a pass on func.func might schedule different func.func operations in different threads. This led to intermittent test failures where debug output from different threads became mixed up. Fix by disabling mlir multithreading for this test.
1 parent 409df9f commit b9c876d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Transforms/DoConcurrent/loop_nest_test.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
! REQUIRES: asserts
44

55
! RUN: %flang_fc1 -emit-hlfir -fopenmp -fdo-concurrent-to-openmp=host \
6-
! RUN: -mmlir -debug %s -o - 2> %t.log || true
6+
! RUN: -mmlir -debug -mmlir -mlir-disable-threading %s -o - 2> %t.log || true
77

88
! RUN: FileCheck %s < %t.log
99

0 commit comments

Comments
 (0)