[flang-commits] [flang] [Flang] Use a module directory to avoid race condition (PR #123215)
via flang-commits
flang-commits at lists.llvm.org
Thu Jan 16 07:52:40 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: Kiran Chandramohan (kiranchandramohan)
<details>
<summary>Changes</summary>
Use a module directory in a test that uses another fortran test to avoid race conditions in module creation.
---
Full diff: https://github.com/llvm/llvm-project/pull/123215.diff
1 Files Affected:
- (modified) flang/test/Lower/module_use.f90 (+3-2)
``````````diff
diff --git a/flang/test/Lower/module_use.f90 b/flang/test/Lower/module_use.f90
index ad43865470b681..c7b29df882fadc 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 %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
``````````
</details>
https://github.com/llvm/llvm-project/pull/123215
More information about the flang-commits
mailing list