Skip to content
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

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

madanial0
Copy link
Contributor

@madanial0 madanial0 commented Nov 28, 2023

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

@madanial0 madanial0 added the flang Flang issues not falling into any other category label Nov 28, 2023
@madanial0 madanial0 self-assigned this Nov 28, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Nov 28, 2023

@llvm/pr-subscribers-flang-driver

Author: None (madanial0)

Changes

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 --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

@banach-space
Copy link
Contributor

What's TC? :) Also, wouldn't cd - more future-proof?

@madanial0 madanial0 changed the title [Flang] TC changes to switch directories before rm (NFC) [Flang] Testcase changes to switch directories before rm (NFC) Nov 28, 2023
@madanial0
Copy link
Contributor Author

What's TC? :) Also, wouldn't cd - more future-proof?

TC is test case, I switched it to avoid confusions sorry! I agree cd - is more future-proof

Copy link
Contributor

@banach-space banach-space left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@banach-space
Copy link
Contributor

@madanial0 Do you have commit access? If yes then it's fine to land this. If not, I can land it for you ;-)

@madanial0
Copy link
Contributor Author

@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

@madanial0 madanial0 merged commit 9a485b0 into llvm:main Nov 30, 2023
5 checks passed
@madanial0 madanial0 deleted the write-module-cd branch November 30, 2023 22:45
Guzhu-AMD pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Dec 7, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:driver flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants