diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2017-03-21 18:26:18 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2017-03-21 18:26:18 +0000 |
commit | 010dd7b2d9a8a107c6e9c53cd2618488e6278428 (patch) | |
tree | 542aa4c5aa5cc7995870a3e554c8ab1afa9d5a9e /clang/unittests/Basic/MemoryBufferCacheTest.cpp | |
parent | ccd6ae25f43cba1459a18172cac0d52432095da7 (diff) | |
download | bcm5719-llvm-010dd7b2d9a8a107c6e9c53cd2618488e6278428.tar.gz bcm5719-llvm-010dd7b2d9a8a107c6e9c53cd2618488e6278428.zip |
Modules: Remove an invalid check in unit tests for r298278
This is a fixup for the unit tests from r298278 (originally r298165).
Since the buffer that RawB2 pointed at was later deleted, a new call to
getBuffer may very well return a buffer at the same/old address. Which is
fine. Just delete the spurious check.
A Windows bot was occasionally hitting this in practice:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/7086
llvm-svn: 298414
Diffstat (limited to 'clang/unittests/Basic/MemoryBufferCacheTest.cpp')
-rw-r--r-- | clang/unittests/Basic/MemoryBufferCacheTest.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/unittests/Basic/MemoryBufferCacheTest.cpp b/clang/unittests/Basic/MemoryBufferCacheTest.cpp index e7d61e3ac96..99178f8150c 100644 --- a/clang/unittests/Basic/MemoryBufferCacheTest.cpp +++ b/clang/unittests/Basic/MemoryBufferCacheTest.cpp @@ -50,7 +50,6 @@ TEST(MemoryBufferCacheTest, addBuffer) { // Replace the middle buffer. B2 = getBuffer(2); - ASSERT_NE(RawB2, B2.get()); RawB2 = B2.get(); EXPECT_EQ(RawB2, &Cache.addBuffer("2", std::move(B2))); |