Mercurial > hg > truffle
comparison test/runtime/NMT/CommandLineDetail.java @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 21db9a1d43ef |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 /* | 24 /* |
25 * @test | 25 * @test |
26 * @key nmt | 26 * @key nmt |
27 * @summary Running with NMT detail should not result in an error | 27 * @summary Running with NMT detail should not result in an error or warning |
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=detail", | 38 "-XX:NativeMemoryTracking=detail", |
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"); | |
42 output.shouldHaveExitValue(0); | 43 output.shouldHaveExitValue(0); |
43 } | 44 } |
44 } | 45 } |