From 080bcc692dfb0462ad9d2012254d6a894052d5ce Mon Sep 17 00:00:00 2001 From: John Cortell Date: Wed, 7 Apr 2010 19:49:00 +0000 Subject: [PATCH] Corrected argument order; error message is misleading, otherwise. --- .../eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java index 34e52257f3e..a8dd296312d 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRunControlTest.java @@ -206,7 +206,7 @@ public class MIRunControlTest extends BaseTestCase { // Context can not be null Assert.assertNotNull(ctxts); - Assert.assertEquals("Unexpected number of threads for a simple program", ctxts.length, sProgramIsCygwin ? 2 : 1); + Assert.assertEquals("Unexpected number of threads for a simple program", sProgramIsCygwin ? 2 : 1, ctxts.length); IMIExecutionDMContext dmc = (IMIExecutionDMContext) ctxts[0]; // Thread id for the main thread should be one @@ -268,7 +268,7 @@ public class MIRunControlTest extends BaseTestCase { return; } - Assert.assertEquals("Thread created event is for wrong thread id", ((IMIExecutionDMContext)startedEvent.getDMContext()).getThreadId(), sProgramIsCygwin ? 3 : 2); + Assert.assertEquals("Thread created event is for wrong thread id", sProgramIsCygwin ? 3 : 2, ((IMIExecutionDMContext)startedEvent.getDMContext()).getThreadId()); /* * Test getExecutionContexts for a valid container DMC @@ -293,7 +293,7 @@ public class MIRunControlTest extends BaseTestCase { */ Assert.assertNotNull(data); - Assert.assertEquals("Unexpected number of threads", data.length, sProgramIsCygwin ? 3 : 2); + Assert.assertEquals("Unexpected number of threads", sProgramIsCygwin ? 3 : 2, data.length); IMIExecutionDMContext dmc1 = (IMIExecutionDMContext)data[0]; IMIExecutionDMContext dmc2 = (IMIExecutionDMContext)data[1]; // Context ids should be 1 & 2