[clang] [clang][lit] Fix spirv-tools-err.c when LIT_USE_INTERNAL_SHELL=0 (PR #185876)
Tulio Magno Quites Machado Filho via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 11 06:28:21 PDT 2026
https://github.com/tuliom created https://github.com/llvm/llvm-project/pull/185876
Only the internal shell parser is able to process an operator in the middle of a command. For the other shells, the operator must appear in the beginning of the line.
>From b743da1cb59667dac5a0ae55381328c74fa0f1a9 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: Wed, 11 Mar 2026 10:20:23 -0300
Subject: [PATCH] [clang][lit] Fix spirv-tools-err.c when
LIT_USE_INTERNAL_SHELL=0
Only the internal shell parser is able to process an operator in the
middle of a command. For the other shells, the operator must appear in
the beginning of the line.
---
clang/test/Driver/spirv-tools-err.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/test/Driver/spirv-tools-err.c b/clang/test/Driver/spirv-tools-err.c
index c0d36d49c8f8c..e56ceda0346b2 100644
--- a/clang/test/Driver/spirv-tools-err.c
+++ b/clang/test/Driver/spirv-tools-err.c
@@ -5,7 +5,7 @@
// REQUIRES: spirv-registered-target
-// RUN: env PATH='' not %clang -o /dev/null --target=spirv64 --save-temps -v %s 2>&1 | FileCheck %s
+// RUN: not env PATH='' %clang -o /dev/null --target=spirv64 --save-temps -v %s 2>&1 | FileCheck %s
// CHECK: error: cannot find SPIR-V Tools binary 'spirv-as'
// CHECK: error: cannot find SPIR-V Tools binary 'spirv-link'
More information about the cfe-commits
mailing list