[Clang] Fix test that sometimes fails depending on the temp name
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 25 Jan 2023 03:11:15 +0000 (21:11 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 25 Jan 2023 03:12:00 +0000 (21:12 -0600)
Summary:
This test has a negative check for an extra file. it turns out that
sometimes the temp name can match it. Be more specific with it.

clang/test/Driver/linker-wrapper-libs.c

index 3f4030d..aa82dd5 100644 (file)
@@ -128,5 +128,5 @@ int bar() { return weak; }
 // RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL-DEFINED
 
 // LIBRARY-GLOBAL-DEFINED: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
-// LIBRARY-GLOBAL-DEFINED-NOT: {{.*}}.o
+// LIBRARY-GLOBAL-DEFINED-NOT: {{.*}}gfx1030{{.*}}.o
 // LIBRARY-GLOBAL-DEFINED: clang{{.*}} -o {{.*}}.img --target=nvptx64-nvidia-cuda -march=sm_70 {{.*}}.s {{.*}}.o