1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-15 12:15:47 +02:00

[dsf-gdb] debug tests: Adjust buffer sizes in MIMemoryTest to take word size into account

Change-Id: I1ffa59165c713609b25b9331c3d245094df4544e
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
This commit is contained in:
Simon Marchi 2015-02-24 11:42:12 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent b1d0e96fc1
commit 0ba2118dc9

View file

@ -637,7 +637,7 @@ public class MIMemoryTest extends BaseTestCase {
// Setup call parameters
long offset = 0;
int count = 1;
byte[] buffer = new byte[count];
byte[] buffer = new byte[count * fWordSize];
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
expectedException.expect(ExecutionException.class);
@ -666,7 +666,7 @@ public class MIMemoryTest extends BaseTestCase {
// Setup call parameters
long offset = 0;
int count = 1;
byte[] buffer = new byte[count];
byte[] buffer = new byte[count * fWordSize];
fBaseAddress = new Addr64("0");
expectedException.expect(ExecutionException.class);
@ -762,7 +762,7 @@ public class MIMemoryTest extends BaseTestCase {
// Setup call parameters
long offset = 0;
int count = 10;
byte[] buffer = new byte[count - 1];
byte[] buffer = new byte[count * fWordSize - 1];
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
expectedException.expect(ExecutionException.class);
@ -940,7 +940,7 @@ public class MIMemoryTest extends BaseTestCase {
// Setup call parameters
long offset = 0;
int count = 1;
byte[] pattern = new byte[count];
byte[] pattern = new byte[count * fWordSize];
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
expectedException.expect(ExecutionException.class);