[LinkerWrapper] Fix failing linker wrapper save temps test
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 10 Oct 2022 20:55:55 +0000 (15:55 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 10 Oct 2022 20:56:46 +0000 (15:56 -0500)
Summary:
This test started failing locally due to a misspelling of `-save-temps`
for the linker wrapper and the `ls` command not having the glob
arguments put in a string. This patch should fix it.

clang/test/Driver/linker-wrapper.c

index e8c1275..51f3ea3 100644 (file)
 // RUN: llvm-ar rcs %t.a %t.o
 // RUN: rm -f %t.o
 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t-obj.o
-// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run -save-temps \
+// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run --save-temps \
 // RUN:   --linker-path=/usr/bin/ld -- %t.a %t-obj.o -o a.out
-// RUN: not ls *-device-*
+// RUN: not ls "*-device-*"