[flang-commits] [flang] [Flang] TC changes to switch directories before rm (NFC) (PR #73602)

via flang-commits flang-commits at lists.llvm.org
Mon Nov 27 17:52:15 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-driver

Author: None (madanial0)

<details>
<summary>Changes</summary>

In AIX, the following TC fails in attempt to delete the current directory, exiting current directory before removing

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


1 Files Affected:

- (modified) flang/test/Driver/write-module.f90 (+4) 


``````````diff
diff --git a/flang/test/Driver/write-module.f90 b/flang/test/Driver/write-module.f90
index 0be5c5817ba9037..cf4be4306b6f569 100644
--- a/flang/test/Driver/write-module.f90
+++ b/flang/test/Driver/write-module.f90
@@ -9,6 +9,7 @@
 ! RUN: rm -rf %t && mkdir -p %t/dir-flang
 ! RUN: cd %t && %flang -fsyntax-only -module-dir %t/dir-flang %s
 ! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
 
 !--------------------------
 ! -module-dir<value>
@@ -16,6 +17,7 @@
 ! RUN: rm -rf %t && mkdir -p %t/dir-flang
 ! RUN: cd %t && %flang -fsyntax-only -module-dir%t/dir-flang %s
 ! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
 
 !---------------------------
 ! -J <value>
@@ -23,6 +25,7 @@
 ! RUN: rm -rf %t && mkdir -p %t/dir-flang
 ! RUN: cd %t && %flang -fsyntax-only -J %t/dir-flang %s
 ! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
 
 !------------------------------
 ! -J<value>
@@ -30,6 +33,7 @@
 ! RUN: rm -rf %t && mkdir -p %t/dir-flang
 ! RUN: cd %t && %flang -fsyntax-only -J%t/dir-flang %s
 ! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
+! RUN: cd ..
 
 module testmodule
   type::t2

``````````

</details>


https://github.com/llvm/llvm-project/pull/73602


More information about the flang-commits mailing list