[flang-commits] [flang] 437834e - [Flang] Use a module directory to avoid race condition (#123215)

via flang-commits flang-commits at lists.llvm.org
Fri Jan 17 02:55:32 PST 2025


Author: Kiran Chandramohan
Date: 2025-01-17T10:55:28Z
New Revision: 437834e16be6d04e7b198dad8a42d507770251a1

URL: https://github.com/llvm/llvm-project/commit/437834e16be6d04e7b198dad8a42d507770251a1
DIFF: https://github.com/llvm/llvm-project/commit/437834e16be6d04e7b198dad8a42d507770251a1.diff

LOG: [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.

Added: 
    

Modified: 
    flang/test/Lower/module_use.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/module_use.f90 b/flang/test/Lower/module_use.f90
index ad43865470b681..b976663239ef5a 100644
--- a/flang/test/Lower/module_use.f90
+++ b/flang/test/Lower/module_use.f90
@@ -1,5 +1,6 @@
-! RUN: bbc -emit-fir %S/module_definition.f90
-! RUN: bbc -emit-fir %s -o - | FileCheck %s
+! RUN: rm -fr %t && mkdir -p %t
+! RUN: bbc -emit-fir -module %t %S/module_definition.f90
+! RUN: bbc -emit-fir -J %t %s -o - | FileCheck %s
 
 ! Test use of module data not defined in this file.
 ! The modules are defined in module_definition.f90


        


More information about the flang-commits mailing list