[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:51:47 PST 2023
https://github.com/madanial0 created https://github.com/llvm/llvm-project/pull/73602
In AIX, the following TC fails in attempt to delete the current directory, exiting current directory before removing
>From 311834237822cc05e8f6763c2881a8d515aa4f12 Mon Sep 17 00:00:00 2001
From: Mark Danial <madanial at dixon.rtp.raleigh.ibm.com>
Date: Mon, 27 Nov 2023 16:09:36 -0500
Subject: [PATCH] [Flang] TC changes to switch directories before rm (NFC)
---
flang/test/Driver/write-module.f90 | 4 ++++
1 file changed, 4 insertions(+)
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
More information about the flang-commits
mailing list