1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

Bug 487762 - [tests] MIRegistersTests # frameSpecificValues() - fix

platform-dependent failure

Change-Id: I7bfe1b952ac97615f93ee63770f33b66a5cb9d3e
This commit is contained in:
Marc Dumais 2016-02-12 14:51:56 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 9c97d4ae66
commit 8ab12fa4e2

View file

@ -502,8 +502,9 @@ public class MIRegistersTest extends BaseTestCase {
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_OVER);
int depth = SyncUtil.getStackDepth(stoppedEvent.getDMContext());
// validate expected stack depth
assertEquals(4, depth);
// we need at least 2 levels of stack frame to continue this test.
// note: the depth is glibc-version-dependent
assertTrue(depth >= 2);
// Resolve the register name of the stack pointer
String sp_name = resolveStackPointerName();