From b452be5c409ae7674ad32ecf6fb5c4df01238aab Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 16 Jan 2006 00:36:06 +0000 Subject: [PATCH] treat exe same as cwd, skip assertion if empty --- bindings/java/src/net/hyperic/sigar/test/TestProcExe.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java b/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java index 029354b5..47e048f3 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java @@ -54,10 +54,12 @@ public class TestProcExe extends SigarTestCase { traceln("exe='" + exe.getName() + "'"); - assertTrue(exeFile.exists()); + if (exe.getName().length() > 0) { + assertTrue(exeFile.exists()); - //win32 has .exe - assertTrue(exeFile.getName().startsWith("java")); + //win32 has .exe + assertTrue(exeFile.getName().startsWith("java")); + } } catch (SigarNotImplementedException e) { //ok }