mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Corrected argument order; error message is misleading, otherwise.
This commit is contained in:
parent
6cf5b7c02e
commit
080bcc692d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue