TEST(CallStackTestGroup, GetNameCaller) { CallStack TestCallStack; TestSuiteCaller1(TestCallStack); /* check for names, format is "pointer:name" so we compare the name for * symbols that should be resolved */ CHECK_EQUAL(0, strcmp(strchr(TestCallStack.GetName(0), ':')+1, "TestSuiteCaller1")); uint32_t Level; for(Level=1;Level<TestCallStack.GetDepth(); Level++) { POINTERS_EQUAL(NULL, TestCallStack.GetName(Level)); } };
TEST(CallStackTestGroup, GetDepth) { CallStack TestCallStack; CHECK_EQUAL(CALLSTACK_MAX_DEPTH, TestCallStack.GetDepth()); };