[flang-commits] [flang] [Flang] Modify module test to run in a sub-directory (PR #123364)

via flang-commits flang-commits at lists.llvm.org
Fri Jan 17 08:17:40 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-fir-hlfir

Author: Kiran Chandramohan (kiranchandramohan)

<details>
<summary>Changes</summary>

This is to avoid race conditions with other tests.

---
Full diff: https://github.com/llvm/llvm-project/pull/123364.diff


1 Files Affected:

- (modified) flang/test/Lower/module_use.f90 (+3-3) 


``````````diff
diff --git a/flang/test/Lower/module_use.f90 b/flang/test/Lower/module_use.f90
index b976663239ef5a..f7c610c9ad22ed 100644
--- a/flang/test/Lower/module_use.f90
+++ b/flang/test/Lower/module_use.f90
@@ -1,6 +1,6 @@
-! 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
+! RUN: rm -fr %t && mkdir -p %t && cd %t
+! RUN: bbc -emit-fir %S/module_definition.f90
+! RUN: bbc -emit-fir %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/123364


More information about the flang-commits mailing list