[flang-commits] [flang] [flang] Fix exec.f90 test on LIT integrated shell (PR #93961)
David Truby via flang-commits
flang-commits at lists.llvm.org
Fri May 31 06:44:55 PDT 2024
https://github.com/DavidTruby created https://github.com/llvm/llvm-project/pull/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.
>From 523715450cc76877ed2ce77608589b5ac96a996e Mon Sep 17 00:00:00 2001
From: David Truby <david.truby at arm.com>
Date: Fri, 31 May 2024 13:42:34 +0000
Subject: [PATCH] [flang] Fix exec.f90 test on LIT integrated shell
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.
---
flang/test/Driver/exec.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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