49 output = new OutputAnalyzer(pb.start()); |
49 output = new OutputAnalyzer(pb.start()); |
50 output.shouldContain("sharing"); |
50 output.shouldContain("sharing"); |
51 output.shouldHaveExitValue(0); |
51 output.shouldHaveExitValue(0); |
52 |
52 |
53 } catch (RuntimeException e) { |
53 } catch (RuntimeException e) { |
54 // Report 'passed' if CDS was turned off because we could not allocate |
54 // Report 'passed' if CDS was turned off. |
55 // the klass metaspace at an address that would work with CDS. |
55 output.shouldContain("Unable to use shared archive"); |
56 output.shouldContain("Could not allocate metaspace at a compatible address"); |
|
57 output.shouldHaveExitValue(1); |
56 output.shouldHaveExitValue(1); |
58 } |
57 } |
59 } |
58 } |
60 } |
59 } |
61 } |
60 } |