Skip to content

Commit 437834e

Browse files
[Flang] Use a module directory to avoid race condition (#123215)
Use a module directory in a test that uses another fortran test to avoid race conditions in module creation.
1 parent 0ab368c commit 437834e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/test/Lower/module_use.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
! RUN: bbc -emit-fir %S/module_definition.f90
2-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: rm -fr %t && mkdir -p %t
2+
! RUN: bbc -emit-fir -module %t %S/module_definition.f90
3+
! RUN: bbc -emit-fir -J %t %s -o - | FileCheck %s
34

45
! Test use of module data not defined in this file.
56
! The modules are defined in module_definition.f90

0 commit comments

Comments
 (0)