1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

Bug Bug 382692 - Update MIExpressions JUnit tests to current CDT havior

Change-Id: I2de2b0b28774a4ee311ba76f54a71ac2f4735628
Reviewed-on: https://git.eclipse.org/r/13522
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:
Marc Khouzam 2013-05-31 13:43:09 -04:00
parent 898e6a676a
commit b1052736a1
3 changed files with 9 additions and 9 deletions

View file

@ -283,8 +283,8 @@ int testUpdateOfPointer() {
}
int testCanWrite() {
int a;
int* b;
int a = 1;
int* b = &a;
struct {
int in;
} c;

View file

@ -65,7 +65,7 @@
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<argLine>-Xms256m -Xmx512m -XX:MaxPermSize=256M ${gdbPathOption}</argLine>
<argLine>-ea -Xms256m -Xmx512m -XX:MaxPermSize=256M ${gdbPathOption}</argLine>
<includes>
<include>**/AutomatedSuite.*</include>
</includes>

View file

@ -3924,11 +3924,11 @@ public class MIExpressionsTest extends BaseTestCase {
IExpressionDMContext[] children = getChildren(castExprDmc, new String[] {"*(((*((array_large)+1)@101))+0)@100", "*(((*((array_large)+1)@101))+100)@1" });
assertTrue("Should have seen the child as a partition", children[0] instanceof IIndexedPartitionDMContext);
assertEquals("Wrong start index for partition", 1, ((IIndexedPartitionDMContext)children[0]).getIndex());
assertEquals("Wrong start index for partition", 0, ((IIndexedPartitionDMContext)children[0]).getIndex());
assertEquals("Wrong partition length", 100, ((IIndexedPartitionDMContext)children[0]).getLength());
assertTrue("Should have seen the child as a partition", children[1] instanceof IIndexedPartitionDMContext);
assertEquals("Wrong start index for partition", 101, ((IIndexedPartitionDMContext)children[0]).getIndex());
assertEquals("Wrong partition length", 1, ((IIndexedPartitionDMContext)children[0]).getLength());
assertEquals("Wrong start index for partition", 100, ((IIndexedPartitionDMContext)children[1]).getIndex());
assertEquals("Wrong partition length", 1, ((IIndexedPartitionDMContext)children[1]).getLength());
// Now make sure the children of the partitions have the proper casting and start at the proper index
final String[] expectedChildren = new String[100];
@ -3998,11 +3998,11 @@ public class MIExpressionsTest extends BaseTestCase {
IExpressionDMContext[] children = getChildren(castExprDmc, new String[] {"*(((*(((char[])(array_large))+4)@101))+0)@100", "*(((*(((char[])(array_large))+4)@101))+100)@1"});
assertTrue("Should have seen the child as a partition", children[0] instanceof IIndexedPartitionDMContext);
assertEquals("Wrong start index for partition", 4, ((IIndexedPartitionDMContext)children[0]).getIndex());
assertEquals("Wrong start index for partition", 0, ((IIndexedPartitionDMContext)children[0]).getIndex());
assertEquals("Wrong partition length", 100, ((IIndexedPartitionDMContext)children[0]).getLength());
assertTrue("Should have seen the child as a partition", children[1] instanceof IIndexedPartitionDMContext);
assertEquals("Wrong start index for partition", 104, ((IIndexedPartitionDMContext)children[0]).getIndex());
assertEquals("Wrong partition length", 1, ((IIndexedPartitionDMContext)children[0]).getLength());
assertEquals("Wrong start index for partition", 100, ((IIndexedPartitionDMContext)children[1]).getIndex());
assertEquals("Wrong partition length", 1, ((IIndexedPartitionDMContext)children[1]).getLength());
// Now make sure the children of the partitions have the proper casting
final String[] expectedChildren = new String[100];