diff --git a/bindings/java/src/org/hyperic/sigar/test/TestNetIf.java b/bindings/java/src/org/hyperic/sigar/test/TestNetIf.java index c3be5c05..f84edfa4 100644 --- a/bindings/java/src/org/hyperic/sigar/test/TestNetIf.java +++ b/bindings/java/src/org/hyperic/sigar/test/TestNetIf.java @@ -61,8 +61,10 @@ public class TestNetIf extends SigarTestCase { } catch (SigarNotImplementedException e) { //ok } catch (SigarException e) { - fail("getNetInterfaceStat(" + name + "): " + - e.getMessage()); + if (name.indexOf(':') == -1) { + fail("getNetInterfaceStat(" + name + "): " + + e.getMessage()); + } //else alias may not have metrics } } }