From ebf7fb5ced822ef2e69db84d63482e3dd1beb0f4 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 4 Sep 2004 18:57:00 +0000 Subject: [PATCH] cwd might be empty --- bindings/java/src/net/hyperic/sigar/test/TestProcExe.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java b/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java index 5749249e..029354b5 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java @@ -48,7 +48,9 @@ public class TestProcExe extends SigarTestCase { String cwd = exe.getCwd(); traceln("cwd='" + cwd + "'"); - assertTrue(new File(cwd).isDirectory()); + if (cwd.length() > 0) { + assertTrue(new File(cwd).isDirectory()); + } traceln("exe='" + exe.getName() + "'");