aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/ValueMapTest.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-06 21:49:55 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-06 21:49:55 +0000
commitad4cee162b684e4de4870d32a90640dc28355be3 (patch)
treef630196a67243316ef2976a8bb55821cda9036e0 /llvm/unittests/IR/ValueMapTest.cpp
parentbcd67f03a47f2f9e26b6912022b2b9562d1839e6 (diff)
downloadllvm-ad4cee162b684e4de4870d32a90640dc28355be3.zip
llvm-ad4cee162b684e4de4870d32a90640dc28355be3.tar.gz
llvm-ad4cee162b684e4de4870d32a90640dc28355be3.tar.bz2
[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. llvm-svn: 234242
Diffstat (limited to 'llvm/unittests/IR/ValueMapTest.cpp')
-rw-r--r--llvm/unittests/IR/ValueMapTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ValueMapTest.cpp b/llvm/unittests/IR/ValueMapTest.cpp
index a6bad71..1431a8d 100644
--- a/llvm/unittests/IR/ValueMapTest.cpp
+++ b/llvm/unittests/IR/ValueMapTest.cpp
@@ -194,7 +194,8 @@ struct LockMutex : ValueMapConfig<KeyT, MutexT> {
}
static MutexT *getMutex(const ExtraData &Data) { return Data.M; }
};
-#if LLVM_ENABLE_THREADS
+// FIXME: These tests started failing on Windows.
+#if LLVM_ENABLE_THREADS && !defined(LLVM_ON_WIN32)
TYPED_TEST(ValueMapTest, LocksMutex) {
sys::Mutex M(false); // Not recursive.
bool CalledRAUW = false, CalledDeleted = false;