Skip to content

Commit 9a485b0

Browse files
madanial0Mark Danial
and
Mark Danial
authored
[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 --------- Co-authored-by: Mark Danial <[email protected]>
1 parent 4f30812 commit 9a485b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/test/Driver/write-module.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,31 @@
99
! RUN: rm -rf %t && mkdir -p %t/dir-flang
1010
! RUN: cd %t && %flang -fsyntax-only -module-dir %t/dir-flang %s
1111
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
12+
! RUN: cd -
1213

1314
!--------------------------
1415
! -module-dir<value>
1516
!--------------------------
1617
! RUN: rm -rf %t && mkdir -p %t/dir-flang
1718
! RUN: cd %t && %flang -fsyntax-only -module-dir%t/dir-flang %s
1819
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
20+
! RUN: cd -
1921

2022
!---------------------------
2123
! -J <value>
2224
!---------------------------
2325
! RUN: rm -rf %t && mkdir -p %t/dir-flang
2426
! RUN: cd %t && %flang -fsyntax-only -J %t/dir-flang %s
2527
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
28+
! RUN: cd -
2629

2730
!------------------------------
2831
! -J<value>
2932
!------------------------------
3033
! RUN: rm -rf %t && mkdir -p %t/dir-flang
3134
! RUN: cd %t && %flang -fsyntax-only -J%t/dir-flang %s
3235
! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
36+
! RUN: cd -
3337

3438
module testmodule
3539
type::t2

0 commit comments

Comments
 (0)