Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/gprof/test/GprofAggregatorTest.java')
-rw-r--r--gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/gprof/test/GprofAggregatorTest.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/gprof/test/GprofAggregatorTest.java b/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/gprof/test/GprofAggregatorTest.java
index 19ec1be733..b6fb8f98ce 100644
--- a/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/gprof/test/GprofAggregatorTest.java
+++ b/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/gprof/test/GprofAggregatorTest.java
@@ -61,9 +61,13 @@ public class GprofAggregatorTest extends TestCase {
s.add(gmon.toString());
String gprof2use="gprof";
+ File f = Aggregator.aggregate(gprof2use, binary, s, directory);
+
+ Process p = Runtime.getRuntime().exec(new String[] {gprof2use, binary, f.getAbsolutePath()});
+ Process p2 = Runtime.getRuntime().exec(new String[] {gprof2use, binary, directory + File.separator + "gmon.sum.ref"});
-
- File f = Aggregator.aggregate(gprof2use, binary, s, directory);
- STJunitUtils.compare(f.getAbsolutePath(), directory + File.separator + "gmon.sum.ref", true);
+ STJunitUtils.compare(p.getInputStream(), p2.getInputStream());
+ p.waitFor();
+ p2.waitFor();
}
}

Back to the top