Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jul 30, 2024
1 parent 26303d0 commit 63e099c
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/unitTests/WalkObjectsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,31 +201,8 @@ void WalkObjectsTest::testWalkMethod() {
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(method->GetHolder())));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(method->GetSignature())));

const size_t expectedSymbolsInScopes = 8; // We expect not to see the inner
const size_t expectedNumberOfObjects = NoOfFields_Method + expectedSymbolsInScopes;
const size_t expectedNumberOfObjects = NoOfFields_Method;
CPPUNIT_ASSERT_EQUAL(expectedNumberOfObjects, walkedObjects.size());

// check for the lexical scope symbols
// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("argInner1"))));
// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("argInner2"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("arg1"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("arg2"))));

// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("localInner1"))));
// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("localInner2"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("local1"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("local2"))));

// check for the qualified names
// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("argInner1:0:0"))));
// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("argInner2:0:0"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("arg1:0:0"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("arg2:0:0"))));

// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("localInner1:0:0"))));
// CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("localInner2:0:0"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("local1:0:0"))));
CPPUNIT_ASSERT(WalkerHasFound(tmp_ptr(SymbolFor("local2:0:0"))));
}

void WalkObjectsTest::testWalkBlock() {
Expand Down

0 comments on commit 63e099c

Please sign in to comment.