[PATCH] D83055: [clang][Driver] Fix tool path priority test failure

David Spickett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 2 08:38:00 PDT 2020


DavidSpickett created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This test can fail when the path of the build
includes the strings we're checking for.
E.g "/gcc" is found in ".../gcc_7.3.0/..."

To correct this look for '"' on the end of all
matches. So that we only match the end of paths
printed by clang -###.
(which would be ".../gcc_7.3.0/.../gcc" for the
example)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83055

Files:
  clang/test/Driver/program-path-priority.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83055.275130.patch
Type: text/x-patch
Size: 5841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200702/1baf1c0f/attachment-0001.bin>


More information about the cfe-commits mailing list