diff options
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.callgraph.launch.tests/src/org/eclipse/linuxtools/callgraph/launch/tests/SystemTapCommandGeneratorTest.java')
-rw-r--r-- | systemtap/org.eclipse.linuxtools.callgraph.launch.tests/src/org/eclipse/linuxtools/callgraph/launch/tests/SystemTapCommandGeneratorTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch.tests/src/org/eclipse/linuxtools/callgraph/launch/tests/SystemTapCommandGeneratorTest.java b/systemtap/org.eclipse.linuxtools.callgraph.launch.tests/src/org/eclipse/linuxtools/callgraph/launch/tests/SystemTapCommandGeneratorTest.java index f2113afdd3..e9c671a3f6 100644 --- a/systemtap/org.eclipse.linuxtools.callgraph.launch.tests/src/org/eclipse/linuxtools/callgraph/launch/tests/SystemTapCommandGeneratorTest.java +++ b/systemtap/org.eclipse.linuxtools.callgraph.launch.tests/src/org/eclipse/linuxtools/callgraph/launch/tests/SystemTapCommandGeneratorTest.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Red Hat - initial API and implementation *******************************************************************************/ @@ -15,13 +15,13 @@ import java.io.File; import org.eclipse.linuxtools.internal.callgraph.core.PluginConstants; import org.eclipse.linuxtools.internal.callgraph.core.SystemTapCommandGenerator; -public class SystemTapCommandGeneratorTest extends AbstractStapTest{ - +public class SystemTapCommandGeneratorTest extends AbstractStapTest{ + //HACK TO GET THE PATH TO THE TESTING PROJECT File file = new File(""); private String location = file.getAbsolutePath() + "/"; SystemTapCommandGenerator stapgen = new SystemTapCommandGenerator(); - + public void testExecutionWithScriptAndBinaryAndArgument(){ String binaryFilePath = location + "factorial"; @@ -32,12 +32,12 @@ public class SystemTapCommandGeneratorTest extends AbstractStapTest{ binaryFilePath, "", true, true, binaryFilePath, "", PluginConstants.STAP_PATH); - assertEquals("stap -c '" + binaryFilePath + "' " + scriptPath + " " + assertEquals("stap -c '" + binaryFilePath + "' " + scriptPath + " --runtime=dyninst " + binaryFilePath, cmd); killStap(); // END } - + public void testScriptExecution(){ String scriptPath = location + "simple.stp"; @@ -61,7 +61,7 @@ public class SystemTapCommandGeneratorTest extends AbstractStapTest{ assertEquals("stap -c '" + binaryFilePath + "' " + scriptPath, cmd); // END - + killStap(); } |