better trace NOTIMPL fields
This commit is contained in:
parent
dc1ddb0943
commit
7c83b382cd
|
@ -166,7 +166,13 @@ public abstract class SigarTestCase extends TestCase {
|
||||||
if (!name.startsWith("get")) {
|
if (!name.startsWith("get")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
traceln(name + "=" + methods[i].invoke(obj, new Object[0]));
|
Object val = methods[i].invoke(obj, new Object[0]);
|
||||||
|
if ((val instanceof Long) &&
|
||||||
|
((Long)val).longValue() == Sigar.FIELD_NOTIMPL)
|
||||||
|
{
|
||||||
|
val = "NOTIMPL";
|
||||||
|
}
|
||||||
|
traceln(name + "=" + val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue