Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8271350: runtime/Safepoint tests use OutputAnalyzer::shouldMatch inst…
…ead of shouldContaint

Reviewed-by: mseledtsov, dholmes
  • Loading branch information
iignatev committed Jul 27, 2021
1 parent fbe28e4 commit f1e15c8c8f598f3726fd6b3f65fe5ab155a2ee28
Showing 2 changed files with 5 additions and 5 deletions.
@@ -74,7 +74,7 @@ public static void testWith(int delay, boolean shouldPass) throws Exception {
if (shouldPass) {
} else {
output.shouldMatch("VM operation took too long");
output.shouldContain("VM operation took too long");
@@ -55,13 +55,13 @@ public static void main(String[] args) throws Exception {

OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldMatch("Timed out while spinning to reach a safepoint.");
output.shouldContain("Timed out while spinning to reach a safepoint.");
if (Platform.isWindows()) {
output.shouldMatch("Safepoint sync time longer than");
output.shouldContain("Safepoint sync time longer than");
} else {
if (Platform.isLinux()) {
output.shouldMatch("(sent by kill)");
output.shouldContain("(sent by kill)");

1 comment on commit f1e15c8

Copy link

@openjdk-notifier openjdk-notifier bot commented on f1e15c8 Jul 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.