|
@@ -227,7 +227,6 @@ public class TestProcfsBasedProcessTree {
|
|
|
// ProcessTree is gone now. Any further calls should be sane.
|
|
|
p.updateProcessTree();
|
|
|
Assert.assertFalse("ProcessTree must have been gone", isAlive(pid));
|
|
|
-
|
|
|
Assert.assertTrue(
|
|
|
"vmem for the gone-process is " + p.getVirtualMemorySize()
|
|
|
+ " . It should be zero.", p.getVirtualMemorySize() == 0);
|
|
@@ -581,7 +580,6 @@ public class TestProcfsBasedProcessTree {
|
|
|
// verify virtual memory
|
|
|
Assert.assertEquals("Virtual memory does not match", 700000L,
|
|
|
processTree.getVirtualMemorySize());
|
|
|
-
|
|
|
Assert.assertEquals("Virtual memory (old API) does not match", 700000L,
|
|
|
processTree.getCumulativeVmem());
|
|
|
|
|
@@ -602,10 +600,8 @@ public class TestProcfsBasedProcessTree {
|
|
|
processTree.updateProcessTree();
|
|
|
Assert.assertEquals("vmem does not include new process",
|
|
|
1200000L, processTree.getVirtualMemorySize());
|
|
|
-
|
|
|
Assert.assertEquals("vmem (old API) does not include new process",
|
|
|
1200000L, processTree.getCumulativeVmem());
|
|
|
-
|
|
|
if (!smapEnabled) {
|
|
|
long cumuRssMem =
|
|
|
ProcfsBasedProcessTree.PAGE_SIZE > 0
|
|
@@ -632,7 +628,6 @@ public class TestProcfsBasedProcessTree {
|
|
|
Assert.assertEquals(
|
|
|
"vmem (old API) shouldn't have included new process", 700000L,
|
|
|
processTree.getCumulativeVmem(1));
|
|
|
-
|
|
|
if (!smapEnabled) {
|
|
|
long cumuRssMem =
|
|
|
ProcfsBasedProcessTree.PAGE_SIZE > 0
|
|
@@ -645,7 +640,6 @@ public class TestProcfsBasedProcessTree {
|
|
|
Assert.assertEquals(
|
|
|
"rssmem (old API) shouldn't have included new process", cumuRssMem,
|
|
|
processTree.getCumulativeRssmem(1));
|
|
|
-
|
|
|
} else {
|
|
|
Assert.assertEquals(
|
|
|
"rssmem shouldn't have included new process",
|
|
@@ -676,12 +670,10 @@ public class TestProcfsBasedProcessTree {
|
|
|
Assert.assertEquals(
|
|
|
"vmem shouldn't have included new processes", 700000L,
|
|
|
processTree.getVirtualMemorySize(2));
|
|
|
-
|
|
|
// verify old API
|
|
|
Assert.assertEquals(
|
|
|
"vmem (old API) shouldn't have included new processes", 700000L,
|
|
|
processTree.getCumulativeVmem(2));
|
|
|
-
|
|
|
if (!smapEnabled) {
|
|
|
long cumuRssMem =
|
|
|
ProcfsBasedProcessTree.PAGE_SIZE > 0
|