Mercurial > hg > graal-compiler
comparison test/runtime/NMT/CommandLineSummary.java @ 18041:52b4284cb496
Merge with jdk8u20-b26
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 15 Oct 2014 16:02:50 +0200 |
parents | 4ca6dc0799b6 e56d11f8cc21 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
17606:45d7b2c7029d | 18041:52b4284cb496 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
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 } |