Skip to content

Commit

Permalink
[Flang] Testcase changes to switch directories before rm (NFC) (#73602)
Browse files Browse the repository at this point in the history
In AIX, the following testcase fails in attempt to delete the current
directory, exiting current directory before removing

---------

Co-authored-by: Mark Danial <mmark.danial@ibm.com>
  • Loading branch information
madanial0 and Mark Danial committed Nov 30, 2023
1 parent 4f30812 commit 9a485b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flang/test/Driver/write-module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,31 @@
! 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>
!--------------------------
! 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>
!---------------------------
! 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>
!------------------------------
! 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
Expand Down

0 comments on commit 9a485b0

Please sign in to comment.