-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flang] Testcase changes to switch directories before rm (NFC) #73602
Conversation
@llvm/pr-subscribers-flang-driver Author: None (madanial0) ChangesIn 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:
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
|
What's TC? :) Also, wouldn't |
TC is test case, I switched it to avoid confusions sorry! I agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
050cc48
to
cbc90af
Compare
cbc90af
to
4e70efb
Compare
@madanial0 Do you have commit access? If yes then it's fine to land this. If not, I can land it for you ;-) |
I do, I was just waiting for the latest checks after rebase |
Local branch amd-gfx 3660ee5 Merged main:c13f7e17409b into amd-gfx:abbd8f9cb6f8 Remote branch main 9a485b0 [Flang] Testcase changes to switch directories before rm (NFC) (llvm#73602)
In AIX, the following testcase fails in attempt to delete the current directory, exiting current directory before removing