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
This commit is contained in:
Duncan P. N. Exon Smith 2017-03-21 18:26:18 +00:00
parent ccd6ae25f4
commit 010dd7b2d9
1 changed files with 0 additions and 1 deletions

View File

@ -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)));