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:
parent
b1d0e96fc1
commit
0ba2118dc9
1 changed files with 4 additions and 4 deletions
|
@ -637,7 +637,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
long offset = 0;
|
long offset = 0;
|
||||||
int count = 1;
|
int count = 1;
|
||||||
byte[] buffer = new byte[count];
|
byte[] buffer = new byte[count * fWordSize];
|
||||||
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
|
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
|
||||||
|
|
||||||
expectedException.expect(ExecutionException.class);
|
expectedException.expect(ExecutionException.class);
|
||||||
|
@ -666,7 +666,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
long offset = 0;
|
long offset = 0;
|
||||||
int count = 1;
|
int count = 1;
|
||||||
byte[] buffer = new byte[count];
|
byte[] buffer = new byte[count * fWordSize];
|
||||||
fBaseAddress = new Addr64("0");
|
fBaseAddress = new Addr64("0");
|
||||||
|
|
||||||
expectedException.expect(ExecutionException.class);
|
expectedException.expect(ExecutionException.class);
|
||||||
|
@ -762,7 +762,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
long offset = 0;
|
long offset = 0;
|
||||||
int count = 10;
|
int count = 10;
|
||||||
byte[] buffer = new byte[count - 1];
|
byte[] buffer = new byte[count * fWordSize - 1];
|
||||||
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
|
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
|
||||||
|
|
||||||
expectedException.expect(ExecutionException.class);
|
expectedException.expect(ExecutionException.class);
|
||||||
|
@ -940,7 +940,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
long offset = 0;
|
long offset = 0;
|
||||||
int count = 1;
|
int count = 1;
|
||||||
byte[] pattern = new byte[count];
|
byte[] pattern = new byte[count * fWordSize];
|
||||||
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
|
fBaseAddress = evaluateExpression(frameDmc, "&charBlock");
|
||||||
|
|
||||||
expectedException.expect(ExecutionException.class);
|
expectedException.expect(ExecutionException.class);
|
||||||
|
|
Loading…
Add table
Reference in a new issue