Searched refs:output (Results 76 - 100 of 1043) sorted by relevance

1234567891011>>

/openjdk9/hotspot/test/runtime/NMT/
H A DNMTWithCDS.java42 OutputAnalyzer output = new OutputAnalyzer(pb.start());
44 output.shouldContain("Loading classes to share");
45 output.shouldHaveExitValue(0);
49 output = new OutputAnalyzer(pb.start());
50 output.shouldContain("sharing");
51 output.shouldHaveExitValue(0);
55 output.shouldContain("Unable to use shared archive");
56 output.shouldHaveExitValue(1);
/openjdk9/jdk/test/tools/jimage/
H A DJImageInfoTest.java40 assertMatches("(?m)^\\s+Major Version: +[1-9]\\d*$.*", r.output);
41 assertMatches("(?m)^\\s+Minor Version: +\\d+$.*", r.output);
42 assertMatches("(?m)^\\s+Flags: +\\d+$.*", r.output);
43 assertMatches("(?m)^\\s+Resource Count: +\\d+$.*", r.output);
44 assertMatches("(?m)^\\s+Table Length: +\\d+$.*", r.output);
45 assertMatches("(?m)^\\s+Offsets Size: +\\d+$.*", r.output);
46 assertMatches("(?m)^\\s+Redirects Size: +\\d+$.*", r.output);
47 assertMatches("(?m)^\\s+Locations Size: +\\d+$.*", r.output);
48 assertMatches("(?m)^\\s+Strings Size: +\\d+$.*", r.output);
49 assertMatches("(?m)^\\s+Index Size: +\\d+$.*", r.output);
[all...]
H A DJImageBasicsTest.java41 assertTrue(r.output.contains(System.getProperty("java.version")), "Contains java version.");
49 assertTrue(r.output.contains(System.getProperty("java.version")), "Contains java version.");
56 .resultChecker(r -> verifyHelpOutput(r.output));
62 .resultChecker(r -> verifyHelpOutput(r.output));
77 private void verifyHelpOutput(String output) { argument
78 assertTrue(output.startsWith("Usage: jimage"), "Usage is printed.");
79 assertTrue(output.contains("extract"), "Option 'extract' is found.");
80 assertTrue(output.contains("info"), "Option 'info' is found.");
81 assertTrue(output.contains("list"), "Option 'list' is found.");
82 assertTrue(output
[all...]
/openjdk9/hotspot/test/runtime/CompressedOops/
H A DCompressedClassSpaceSize.java41 OutputAnalyzer output;
46 output = new OutputAnalyzer(pb.start());
47 output.shouldContain("outside the allowed range")
53 output = new OutputAnalyzer(pb.start());
54 output.shouldContain("Improperly specified VM option 'CompressedClassSpaceSize=-1'")
61 output = new OutputAnalyzer(pb.start());
62 output.shouldContain("outside the allowed range")
71 output = new OutputAnalyzer(pb.start());
72 output.shouldContain("Compressed class space size: 1048576")
81 output
[all...]
/openjdk9/langtools/test/tools/javap/
H A DT6868539.java43 String output = javap("T6868539");
44 verify(output, "Utf8 +java/lang/String"); // 1: Utf8
46 verify(output, "Integer +123456"); // 3: Integer
47 verify(output, "Float +123456.0f"); // 4: Float
48 verify(output, "Long +123456l"); // 5: Long
49 verify(output, "Double +123456.0d"); // 6: Double
50 verify(output, "Class +#[0-9]+ +// +T6868539"); // 7: Class
51 verify(output, "String +#[0-9]+ +// +not found"); // 8: String
52 verify(output, "Fieldref +#[0-9]+\\.#[0-9]+ +// +T6868539.errors:I"); // 9: Fieldref
53 verify(output, "Methodre
63 verify(String output, String... expects) argument
[all...]
/openjdk9/hotspot/test/serviceability/dcmd/compiler/
H A DCompilerDirectivesDCMDTest.java63 // Get output from dcmd (diagnostic command)
64 OutputAnalyzer output = executor.execute("Compiler.directives_print");
65 int count = find(output, "Directive:");
72 OutputAnalyzer output;
76 output = executor.execute("Compiler.directives_clear");
77 output = executor.execute("Compiler.directives_print");
78 count = find(output, "Directive:");
84 output = executor.execute("Compiler.directives_remove");
85 output = executor.execute("Compiler.directives_print");
86 count = find(output, "Directiv
140 find(OutputAnalyzer output, String find) argument
[all...]
/openjdk9/hotspot/test/runtime/CommandLine/
H A DPrintTouchedMethods.java47 OutputAnalyzer output = new OutputAnalyzer(pb.start());
48 output.shouldContain("Error: VM option 'LogTouchedMethods' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.");
49 output.shouldContain("Error: Could not create the Java Virtual Machine.");
53 output = new OutputAnalyzer(pb.start());
59 List<String> lines = output.asLines();
62 throw new Exception("Empty output");
70 output.shouldContain("TestLogTouchedMethods.methodA:()V");
71 output.shouldNotContain("TestLogTouchedMethods.methodB:()V");
72 output.shouldHaveExitValue(0);
76 output
[all...]
H A DTraceExceptionsTest.java27 * @summary TraceExceptions output should have the exception message - useful for ClassNotFoundExceptions especially
41 OutputAnalyzer output = new OutputAnalyzer(pb.start());
42 output.shouldContain("<a 'java/lang/ClassNotFoundException'").shouldContain(": NoClassFound>");
43 output.shouldNotContain("<a 'java/lang/ClassNotFoundException'>");
44 output.shouldHaveExitValue(1);
/openjdk9/hotspot/test/gc/startup_warnings/
H A DTestParallelScavengeSerialOld.java42 OutputAnalyzer output = new OutputAnalyzer(pb.start());
43 output.shouldNotContain("deprecated");
44 output.shouldNotContain("error");
45 output.shouldHaveExitValue(0);
H A DTestSerialGC.java42 OutputAnalyzer output = new OutputAnalyzer(pb.start());
43 output.shouldNotContain("deprecated");
44 output.shouldNotContain("error");
45 output.shouldHaveExitValue(0);
H A DTestParNewCMS.java42 OutputAnalyzer output = new OutputAnalyzer(pb.start());
43 output.shouldContain("warning: Option UseParNewGC was deprecated in version");
44 output.shouldNotContain("error");
45 output.shouldHaveExitValue(0);
H A DTestParNewSerialOld.java42 OutputAnalyzer output = new OutputAnalyzer(pb.start());
43 output.shouldContain("It is not possible to combine the ParNew young collector with any collector other than CMS.");
44 output.shouldContain("Error");
45 output.shouldHaveExitValue(1);
H A DTestDefNewCMS.java41 OutputAnalyzer output = new OutputAnalyzer(pb.start());
42 output.shouldContain("It is not possible to combine the DefNew young collector with the CMS collector.");
43 output.shouldContain("Error");
44 output.shouldHaveExitValue(1);
H A DTestParallelGC.java42 OutputAnalyzer output = new OutputAnalyzer(pb.start());
43 output.shouldNotContain("deprecated");
44 output.shouldNotContain("error");
45 output.shouldHaveExitValue(0);
H A DTestG1.java41 OutputAnalyzer output = new OutputAnalyzer(pb.start());
42 output.shouldNotContain("deprecated");
43 output.shouldNotContain("error");
44 output.shouldHaveExitValue(0);
/openjdk9/hotspot/test/runtime/logging/
H A DModulesTest.java26 * @summary -Xlog:module should emit logging output
47 OutputAnalyzer output = run(args);
48 output.shouldContain("define_javabase_module(): Definition of module:");
49 output.shouldContain("define_javabase_module(): creation of package");
50 output.shouldContain("define_module(): creation of module");
51 output.shouldContain("define_module(): creation of package");
52 output.shouldContain("set_bootloader_unnamed_module(): recording unnamed");
53 output.shouldContain("add_module_exports(): package");
54 output.shouldContain("add_reads_module(): Adding read from module");
55 output
[all...]
H A DOsCpuLoggingTest.java27 * @summary os+cpu output should contain some os,cpu information
42 static void analyzeOutputForOsLog(OutputAnalyzer output) throws Exception { argument
45 output.shouldContain("SafePoint Polling address");
47 output.shouldHaveExitValue(0);
50 static void analyzeOutputForOsCpuLog(OutputAnalyzer output) throws Exception { argument
51 output.shouldContain("CPU:total");
52 output.shouldHaveExitValue(0);
58 OutputAnalyzer output = new OutputAnalyzer(pb.start());
59 analyzeOutputForOsCpuLog(output);
62 output
[all...]
/openjdk9/hotspot/test/serviceability/logging/
H A DTestBasicLogOutput.java38 OutputAnalyzer output = new OutputAnalyzer(pb.start());
39 output.shouldMatch("\\[logging *\\]"); // expected tag(s)
40 output.shouldContain("Log configuration fully initialized."); // expected message
41 output.shouldHaveExitValue(0);
H A DTestMultipleXlogArgs.java44 OutputAnalyzer output = new OutputAnalyzer(pb.start());
48 output.shouldMatch(stdoutConfigLine + "logging=trace").shouldNotMatch(stdoutConfigLine + "logging=debug");
50 output.shouldMatch(stdoutConfigLine + "safepoint=info").shouldNotMatch(stdoutConfigLine + "safepoint=info.*safepoint=info");
52 output.shouldNotMatch(stdoutConfigLine + "defaultmethods");
53 output.shouldHaveExitValue(0);
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/
H A Dpackage-info.java29 package com.sun.xml.internal.bind.v2.runtime.output;
/openjdk9/hotspot/test/runtime/SharedArchiveFile/
H A DArchiveDoesNotExist.java55 OutputAnalyzer output = new OutputAnalyzer(pb.start());
56 output.shouldContain("Specified shared archive not found");
57 output.shouldHaveExitValue(1);
66 output = new OutputAnalyzer(pb.start());
67 output.shouldMatch("(java|openjdk) version");
68 output.shouldNotContain("sharing");
69 output.shouldHaveExitValue(0);
/openjdk9/hotspot/test/runtime/classFileParserBug/
H A DTestEmptyBootstrapMethodsAttr.java48 OutputAnalyzer output = new OutputAnalyzer(pb.start());
49 output.shouldHaveExitValue(0);
60 output = new OutputAnalyzer(pb.start());
61 output.shouldNotContain("java.lang.ClassFormatError");
62 output.shouldContain("Main method not found in class " + className);
63 output.shouldHaveExitValue(1);
74 output = new OutputAnalyzer(pb.start());
75 output.shouldNotContain("java.lang.ClassFormatError");
76 output.shouldContain("Main method not found in class " + className);
77 output
[all...]
/openjdk9/jdk/test/java/lang/instrument/PremainClass/
H A DCreateFiles.java36 static void output(FileOutputStream fos, String s) throws Exception { method in class:CreateFiles
49 output(fos, "import java.lang.instrument.Instrumentation;" );
50 output(fos, "public class " +name + " {" );
51 output(fos, " public static void premain(String ops, Instrumentation ins) {" );
52 output(fos, " System.out.println(\"premain running\"); ");
53 output(fos, " }");
54 output(fos, "}");
59 output(fos, "Manifest-Version: 1.0");
60 output(fos, "Premain-Class: " + name);
61 output(fo
[all...]
/openjdk9/jdk/test/sun/tools/jinfo/
H A DBasicJInfoTest.java49 OutputAnalyzer output = jinfo();
50 output.shouldContain("-XX");
51 output.shouldContain("test.jdk=");
52 output.shouldHaveExitValue(0);
56 OutputAnalyzer output = jinfo("-flag");
57 output.shouldHaveExitValue(1);
61 OutputAnalyzer output = jinfo("-flags");
62 output.shouldContain("-XX");
63 output.shouldHaveExitValue(0);
67 OutputAnalyzer output
[all...]
/openjdk9/hotspot/test/gc/logging/
H A DTestDeprecatedPrintFlags.java46 OutputAnalyzer output = new OutputAnalyzer(pb.start());
47 output.shouldContain("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead.");
48 output.shouldNotContain("PrintGCDetails");
49 output.stdoutShouldMatch("\\[info.*\\]\\[gc *\\]");
50 output.stdoutShouldNotMatch("\\[info.*\\]\\[gc\\,");
51 output.shouldHaveExitValue(0);
56 OutputAnalyzer output = new OutputAnalyzer(pb.start());
57 output.shouldContain("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.");
58 output.shouldNotContain("PrintGC is deprecated");
59 output
[all...]

Completed in 325 milliseconds

1234567891011>>