()
| 41 | class FstatUtilTest { |
| 42 | |
| 43 | @Test |
| 44 | void testFstat() { |
| 45 | if (SystemInfo.getCurrentPlatform().equals(OPENBSD)) { |
| 46 | int pid = new SystemInfo().getOperatingSystem().getProcessId(); |
| 47 | |
| 48 | assertThat("Number of open files must be nonnegative", FstatUtil.getOpenFiles(pid), |
| 49 | is(greaterThanOrEqualTo(0L))); |
| 50 | |
| 51 | assertThat("Cwd should not be empty", FstatUtil.getCwd(pid), is(not(emptyString()))); |
| 52 | } |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected