Mercurial > hg > truffle
comparison test/runtime/NMT/CommandLineSummary.java @ 14539:47b775458982
Merged
author | Christian Wirth <christian.wirth@oracle.com> |
---|---|
date | Fri, 14 Mar 2014 09:58:31 +0100 |
parents | 21db9a1d43ef |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14538:5454f6bf50bf | 14539:47b775458982 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 /* | 24 /* |
25 * @test | 25 * @test |
26 * @key nmt | 26 * @key nmt |
27 * @summary Running with NMT summary should not result in an error or warning | 27 * @summary Running with NMT summary should not result in an error |
28 * @library /testlibrary | 28 * @library /testlibrary |
29 */ | 29 */ |
30 | 30 |
31 import com.oracle.java.testlibrary.*; | 31 import com.oracle.java.testlibrary.*; |
32 | 32 |
37 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( | 37 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( |
38 "-XX:NativeMemoryTracking=summary", | 38 "-XX:NativeMemoryTracking=summary", |
39 "-version"); | 39 "-version"); |
40 OutputAnalyzer output = new OutputAnalyzer(pb.start()); | 40 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
41 output.shouldNotContain("error"); | 41 output.shouldNotContain("error"); |
42 output.shouldNotContain("warning"); | |
43 output.shouldHaveExitValue(0); | 42 output.shouldHaveExitValue(0); |
44 } | 43 } |
45 } | 44 } |