[flang-commits] [flang] 5c7f7cc - [flang] Fix exec.f90 test on LIT integrated shell (#93961)

via flang-commits flang-commits at lists.llvm.org
Fri May 31 07:03:48 PDT 2024


Author: David Truby
Date: 2024-05-31T15:03:44+01:00
New Revision: 5c7f7cc4dea3e202b56cebaa303d7fb8b26fc18e

URL: https://github.com/llvm/llvm-project/commit/5c7f7cc4dea3e202b56cebaa303d7fb8b26fc18e
DIFF: https://github.com/llvm/llvm-project/commit/5c7f7cc4dea3e202b56cebaa303d7fb8b26fc18e.diff

LOG: [flang] Fix exec.f90 test on LIT integrated shell (#93961)

The exec.f90 test sets an environment variable for a specific command
directly
rather than using env, which doesn't work on shells that don't support
this
syntax, most notably the LIT integrated shell. This patch simply adds
env so
that this works on the integrated shell.

Added: 
    

Modified: 
    flang/test/Driver/exec.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/exec.f90 b/flang/test/Driver/exec.f90
index 4a2e66bd2aac4..fd174005ddf62 100644
--- a/flang/test/Driver/exec.f90
+++ b/flang/test/Driver/exec.f90
@@ -2,7 +2,7 @@
 ! Verify that flang can correctly build executables.
 
 ! RUN: %flang %s -o %t
-! RUN: LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%llvmshlibdir" %t | FileCheck %s
+! RUN: env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%llvmshlibdir" %t | FileCheck %s
 ! RUN: rm -f %t
 
 ! CHECK: Hello, World!


        


More information about the flang-commits mailing list