Skip to content

Commit 8cdbe42

Browse files
committed
fix test build
1 parent 04cc9b4 commit 8cdbe42

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/lib/jdk/test/lib/process/OutputAnalyzer.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,20 @@ public boolean stdoutContains(String expectedString) {
224224
return getStdout().contains(expectedString);
225225
}
226226

227+
/**
228+
* Returns true if stderr contains the given string
229+
*/
230+
public boolean stderrContains(String expectedString) {
231+
return getStderr().contains(expectedString);
232+
}
233+
234+
/**
235+
* Returns true if either stdout or stderr contains the given string
236+
*/
237+
public boolean contains(String expectedString) {
238+
return stdoutContains(expectedString) || stderrContains(expectedString);
239+
}
240+
227241
/**
228242
* Verify that the stdout and stderr contents of output buffer contains the string
229243
*

0 commit comments

Comments
 (0)