Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2013-12-11 20:58:24 +0000
committerMarc-Andre Laperle2013-12-12 04:03:06 +0000
commit5428ad50015b500e6a67f2aa2abe24f55c00c2c3 (patch)
tree2730b77f11740da1e75cea425bf98aa695bbf932 /testsrunner/org.eclipse.cdt.testsrunner
parent1b42998e47009d84e265f9999f39058b145d20fa (diff)
downloadorg.eclipse.cdt-5428ad50015b500e6a67f2aa2abe24f55c00c2c3.tar.gz
org.eclipse.cdt-5428ad50015b500e6a67f2aa2abe24f55c00c2c3.tar.xz
org.eclipse.cdt-5428ad50015b500e6a67f2aa2abe24f55c00c2c3.zip
Bug 422962 - Boost Testrunner: BOOST_PARAM_TEST_CASE not working
Change-Id: I8815163c15ba9cd1c2fd0b5ba4ffe7a701fb6b3c Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/19679 Tested-by: Hudson CI
Diffstat (limited to 'testsrunner/org.eclipse.cdt.testsrunner')
-rw-r--r--testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestModelManager.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestModelManager.java b/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestModelManager.java
index 0db8d5af989..0a74979c9d2 100644
--- a/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestModelManager.java
+++ b/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestModelManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 Anton Gorenkov
+ * Copyright (c) 2011, 2013 Anton Gorenkov and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Anton Gorenkov - initial API and implementation
+ * Marc-Andre Laperle (Ericsson)
*******************************************************************************/
package org.eclipse.cdt.testsrunner.internal.model;
@@ -235,7 +236,9 @@ public class TestModelManager implements ITestModelUpdater, ITestModelAccessor {
for (int childIndex = 0; childIndex < lastInsertIndex; childIndex++) {
newTestItem = checkTestItem(children.get(childIndex), name);
if (newTestItem != null) {
- children.add(lastInsertIndex, children.remove(childIndex));
+ TestItem removed = children.remove(childIndex);
+ lastInsertIndex = Math.min(lastInsertIndex, children.size());
+ children.add(lastInsertIndex, removed);
notifyAboutChildrenUpdate(currTestSuite);
break;
}

Back to the top