[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.
This commit is contained in:
David Truby 2024-05-31 15:03:44 +01:00 committed by GitHub
parent b52962d1b8
commit 5c7f7cc4de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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