Author: rafael Date: Fri Sep 18 15:22:36 2015 New Revision: 248029 URL: http://llvm.org/viewvc/llvm-project?rev=248029&view=rev Log: Fix test to pass when the directory name has lld in it.
CHECK-LABEL assumes that there is only one occurrence of the match. The output looks like: clang version 3.8.0 (trunk 247999) .... /path/to/build/dir/bin/clang-3.8 .... If the path contains lld, the second CHECK-LABEL matches it and we fail since there is no -cc1as between clang and lld. Modified: cfe/trunk/test/Driver/amdgpu-toolchain.c Modified: cfe/trunk/test/Driver/amdgpu-toolchain.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/amdgpu-toolchain.c?rev=248029&r1=248028&r2=248029&view=diff ============================================================================== --- cfe/trunk/test/Driver/amdgpu-toolchain.c (original) +++ cfe/trunk/test/Driver/amdgpu-toolchain.c Fri Sep 18 15:22:36 2015 @@ -1,6 +1,5 @@ // RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s -// AS_LINK-LABEL: clang -// AS_LINK: "-cc1as" -// AS_LINK-LABEL: lld -// AS_LINK: "-flavor" "gnu" "-target" "amdgcn--amdhsa" -// REQUIRES: clang-driver +// AS_LINK: /clang +// AS_LINK-SAME: "-cc1as" +// AS_LINK: /lld +// AS_LINK-SAME: "-flavor" "gnu" "-target" "amdgcn--amdhsa" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits