8271223: two runtime/ClassFile tests don't check exit code

Reviewed-by: dholmes
This commit is contained in:
Igor Ignatyev
2021-07-27 02:59:40 +00:00
parent b76a83888b
commit cea7bc2dea
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -74,6 +74,7 @@ public class JsrRewriting {
className);
output = new OutputAnalyzer(pb.start());
output.shouldNotHaveExitValue(0);
String[] expectedMsgs = {
"java.lang.LinkageError",
"java.lang.NoSuchMethodError",

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -73,6 +73,7 @@ public class OomWhileParsingRepeatedJsr {
className );
output = new OutputAnalyzer(pb.start());
output.shouldNotHaveExitValue(0);
output.shouldContain("Cannot reserve enough memory");
}
}