Skip to content

Commit 4b9b791

Browse files
committed
Update C++ unittest according to David's suggestion
1 parent e21be17 commit 4b9b791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/unittests/Symbol/SymtabTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,6 @@ TEST_F(SymtabTest, TestSymbolTableCreatedOnDemand) {
832832
ASSERT_NE(symtab, nullptr);
833833

834834
// And we should be able to get it again once it has been created.
835-
symtab = symbol_file->GetSymtab(/*can_create=*/false);
836-
ASSERT_NE(symtab, nullptr);
835+
Symtab *cached_symtab = symbol_file->GetSymtab(/*can_create=*/false);
836+
ASSERT_EQ(symtab, cached_symtab);
837837
}

0 commit comments

Comments
 (0)