mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-05 04:31:36 +00:00
update test
This commit is contained in:
parent
926fc92018
commit
e9ed58ada8
@ -2612,6 +2612,6 @@ void os::print_open_file_descriptors(outputStream* st) {
|
||||
|
||||
st->print_cr("Open File Descriptors: %d", nfiles);
|
||||
#else
|
||||
st->print_cr("Open File Descriptors: unknown");
|
||||
st->print_cr("Open File Descriptors: unknown");
|
||||
#endif
|
||||
}
|
||||
@ -33,7 +33,6 @@ import java.util.List;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.Utils;
|
||||
|
||||
/*
|
||||
* @test
|
||||
@ -182,5 +181,10 @@ public class TestJcmdSanity {
|
||||
output.shouldNotContain("*** Handler was modified!");
|
||||
output.shouldNotContain("*** Expected: "); // e.g. *** Expected: javaSignalHandler in ...
|
||||
}
|
||||
|
||||
// Should find file descriptor counting on Mac and Linux
|
||||
if (Platform.isLinux() || Platform.isOSX()) {
|
||||
output.shouldMatch("Open File Descriptors: \\d+");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user