Thu, 16 May 2013 12:14:19 -0700
Added tag jdk8-b90 for changeset 1ae0472ff3a0
ctornqvi@4518 | 1 | /* |
ctornqvi@4518 | 2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
ctornqvi@4518 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ctornqvi@4518 | 4 | * |
ctornqvi@4518 | 5 | * This code is free software; you can redistribute it and/or modify it |
ctornqvi@4518 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ctornqvi@4518 | 7 | * published by the Free Software Foundation. |
ctornqvi@4518 | 8 | * |
ctornqvi@4518 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
ctornqvi@4518 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ctornqvi@4518 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ctornqvi@4518 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
ctornqvi@4518 | 13 | * accompanied this code). |
ctornqvi@4518 | 14 | * |
ctornqvi@4518 | 15 | * You should have received a copy of the GNU General Public License version |
ctornqvi@4518 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
ctornqvi@4518 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ctornqvi@4518 | 18 | * |
ctornqvi@4518 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ctornqvi@4518 | 20 | * or visit www.oracle.com if you need additional information or have any |
ctornqvi@4518 | 21 | * questions. |
ctornqvi@4518 | 22 | */ |
ctornqvi@4518 | 23 | |
ctornqvi@4518 | 24 | /* |
ctornqvi@4518 | 25 | * @test |
ctornqvi@4518 | 26 | * @key nmt |
ctornqvi@4518 | 27 | * @summary Running with NMT detail should not result in an error or warning |
ctornqvi@4518 | 28 | * @library /testlibrary |
ctornqvi@4518 | 29 | */ |
ctornqvi@4518 | 30 | |
ctornqvi@4518 | 31 | import com.oracle.java.testlibrary.*; |
ctornqvi@4518 | 32 | |
ctornqvi@4518 | 33 | public class CommandLineDetail { |
ctornqvi@4518 | 34 | |
ctornqvi@4518 | 35 | public static void main(String args[]) throws Exception { |
ctornqvi@4518 | 36 | |
ctornqvi@4518 | 37 | ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( |
ctornqvi@4518 | 38 | "-XX:NativeMemoryTracking=detail", |
ctornqvi@4518 | 39 | "-version"); |
ctornqvi@4518 | 40 | OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
ctornqvi@4518 | 41 | output.shouldNotContain("error"); |
ctornqvi@4518 | 42 | output.shouldNotContain("warning"); |
ctornqvi@4518 | 43 | output.shouldHaveExitValue(0); |
ctornqvi@4518 | 44 | } |
ctornqvi@4518 | 45 | } |