Skip to content

Commit c02fd22

Browse files
committed
8343102: Remove --compress from jlink command lines from jpackage tests
Backport-of: 9e451aa36586badc7be58804ae6f12e6b671445d
1 parent 8600d8e commit c02fd22

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

test/jdk/tools/jpackage/share/RuntimeImageTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,7 +33,6 @@
3333
import jdk.jpackage.test.PackageType;
3434
import jdk.jpackage.test.Functional;
3535
import jdk.jpackage.test.Annotations.Test;
36-
import jdk.jpackage.test.Annotations.Parameter;
3736
import jdk.jpackage.test.PackageTest;
3837
import jdk.jpackage.test.JPackageCommand;
3938
import jdk.jpackage.test.JavaTool;
@@ -54,10 +53,7 @@
5453
public class RuntimeImageTest {
5554

5655
@Test
57-
@Parameter("0")
58-
@Parameter("1")
59-
@Parameter("2")
60-
public static void test(String compression) throws Exception {
56+
public static void test() throws Exception {
6157
final Path workDir = TKit.createTempDirectory("runtime").resolve("data");
6258
final Path jlinkOutputDir = workDir.resolve("temp.runtime");
6359
Files.createDirectories(jlinkOutputDir.getParent());
@@ -67,7 +63,6 @@ public static void test(String compression) throws Exception {
6763
.dumpOutput()
6864
.addArguments(
6965
"--output", jlinkOutputDir.toString(),
70-
"--compress=" + compression,
7166
"--add-modules", "ALL-MODULE-PATH",
7267
"--strip-debug",
7368
"--no-header-files",

test/jdk/tools/jpackage/share/RuntimePackageTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -113,7 +113,6 @@ private static PackageTest init(Set<PackageType> types) {
113113
.dumpOutput()
114114
.addArguments(
115115
"--output", runtimeImageDir.toString(),
116-
"--compress=0",
117116
"--add-modules", "ALL-MODULE-PATH",
118117
"--strip-debug",
119118
"--no-header-files",

0 commit comments

Comments
 (0)