< prev index next >

test/jdk/tools/jpackage/windows/WinConsoleTest.java

Print this page

        

*** 24,33 **** --- 24,34 ---- import java.nio.file.Path; import java.io.InputStream; import java.io.FileInputStream; import java.io.IOException; import jdk.jpackage.test.TKit; + import jdk.jpackage.test.HelloApp; import jdk.jpackage.test.JPackageCommand; import jdk.jpackage.test.Annotations.Test; import jdk.jpackage.test.Annotations.Parameter; /*
*** 56,65 **** --- 57,70 ---- if (!withWinConsole) { cmd.removeArgument("--win-console"); } cmd.executeAndAssertHelloAppImageCreated(); checkSubsystem(cmd.appLauncherPath(), withWinConsole); + + // Run launcher with a number of arguments to make sure they go through + // regardless the launcher has or doesn't have console. + HelloApp.executeLauncherAndVerifyOutput(cmd, "a", "b", "c"); } private static void checkSubsystem(Path path, boolean isConsole) throws IOException { final int subsystemGui = 2;
< prev index next >