[lit] Fix running gtest type-parameterized tests on Windows
authorReid Kleckner <reid@kleckner.net>
Mon, 6 Apr 2015 21:49:55 +0000 (21:49 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 6 Apr 2015 21:49:55 +0000 (21:49 +0000)
commit0123b6ee73186c016dc3799360dd821adb52bd2a
tree6f41f178a716436055dfc17e4396bdfea4712818
parent23e0384808bf16208ba52e590f6e6260c5f0f05b
[lit] Fix running gtest type-parameterized tests on Windows

The '/' character in the test name of a type-parameterized test is not a
path separator, and should not be '\' on Windows. We were passing a test
name to --gtest_filter which found no tests, so the exit code was zero,
indicating a passed test.

This bug has been here since r84387 in 2009, when Jeff Yasskin added the
original lit support for type-paratermized tests. Somewhere along the
line some of the ValueMapTests started failing, but we can fix those
separately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234242 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/IR/ValueMapTest.cpp
utils/lit/lit/formats/googletest.py