mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 409186 - Memory tests had failures.
First failure was because we now know the endianess but the test was not updated. The second failure was because different GDB versions gave different error messages for memory write failures. Change-Id: Idbac275a5de3a0af77d030474fea60808ca9a54c Reviewed-on: https://git.eclipse.org/r/13331 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
fcb46a9a5d
commit
bd28316f57
1 changed files with 3 additions and 5 deletions
|
@ -504,8 +504,8 @@ public class MIMemoryTest extends BaseTestCase {
|
|||
// Ensure that we receive a block of invalid memory bytes
|
||||
assertTrue(fWait.getMessage(), fWait.isOK());
|
||||
MemoryByte[] buffer = (MemoryByte[]) fWait.getReturnInfo();
|
||||
assertTrue("Wrong value: expected '-1, 0', received '" + buffer[0].getValue() + ", " + buffer[0].getFlags() + "'",
|
||||
(buffer[0].getValue() == (byte) 0) && (buffer[0].getFlags() == (byte) 0));
|
||||
assertTrue("Wrong value: expected '0, 32', received '" + buffer[0].getValue() + ", " + buffer[0].getFlags() + "'",
|
||||
(buffer[0].getValue() == (byte) 0) && (buffer[0].getFlags() == (byte) 32));
|
||||
|
||||
// Ensure no MemoryChangedEvent event was received
|
||||
assertTrue("MemoryChangedEvent problem: expected " + 0 + ", received " + getEventCount(), getEventCount() == 0);
|
||||
|
@ -797,9 +797,7 @@ public class MIMemoryTest extends BaseTestCase {
|
|||
writeMemory(fMemoryDmc, fBaseAddress, offset, word_size, count, buffer);
|
||||
fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER);
|
||||
assertFalse(fWait.getMessage(), fWait.isOK());
|
||||
String expected = "Cannot access memory at address"; // Error msg returned by gdb
|
||||
assertTrue("Wrong error message: expected '" + expected + "', received '" + fWait.getMessage() + "'",
|
||||
fWait.getMessage().contains(expected));
|
||||
// Don't test the error message since it changes from one GDB version to another
|
||||
|
||||
// Ensure no MemoryChangedEvent event was received
|
||||
assertTrue("MemoryChangedEvent problem: expected " + 0 + ", received " + getEventCount(), getEventCount() == 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue