1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +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); MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_OVER);
int depth = SyncUtil.getStackDepth(stoppedEvent.getDMContext()); int depth = SyncUtil.getStackDepth(stoppedEvent.getDMContext());
// validate expected stack depth // we need at least 2 levels of stack frame to continue this test.
assertEquals(4, depth); // note: the depth is glibc-version-dependent
assertTrue(depth >= 2);
// Resolve the register name of the stack pointer // Resolve the register name of the stack pointer
String sp_name = resolveStackPointerName(); String sp_name = resolveStackPointerName();