Skip to content

Commit

Permalink
Backport 9e451aa36586badc7be58804ae6f12e6b671445d
Browse files Browse the repository at this point in the history
  • Loading branch information
GoeLin committed Dec 11, 2024
1 parent 7e4185a commit 329801b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 2 additions & 7 deletions test/jdk/tools/jpackage/share/RuntimeImageTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -33,7 +33,6 @@
import jdk.jpackage.test.PackageType;
import jdk.jpackage.test.Functional;
import jdk.jpackage.test.Annotations.Test;
import jdk.jpackage.test.Annotations.Parameter;
import jdk.jpackage.test.PackageTest;
import jdk.jpackage.test.JPackageCommand;
import jdk.jpackage.test.JavaTool;
Expand All @@ -54,10 +53,7 @@
public class RuntimeImageTest {

@Test
@Parameter("0")
@Parameter("1")
@Parameter("2")
public static void test(String compression) throws Exception {
public static void test() throws Exception {
final Path workDir = TKit.createTempDirectory("runtime").resolve("data");
final Path jlinkOutputDir = workDir.resolve("temp.runtime");
Files.createDirectories(jlinkOutputDir.getParent());
Expand All @@ -67,7 +63,6 @@ public static void test(String compression) throws Exception {
.dumpOutput()
.addArguments(
"--output", jlinkOutputDir.toString(),
"--compress=" + compression,
"--add-modules", "ALL-MODULE-PATH",
"--strip-debug",
"--no-header-files",
Expand Down
3 changes: 1 addition & 2 deletions test/jdk/tools/jpackage/share/RuntimePackageTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -113,7 +113,6 @@ private static PackageTest init(Set<PackageType> types) {
.dumpOutput()
.addArguments(
"--output", runtimeImageDir.toString(),
"--compress=0",
"--add-modules", "ALL-MODULE-PATH",
"--strip-debug",
"--no-header-files",
Expand Down

0 comments on commit 329801b

Please sign in to comment.