test/hotspot/jtreg/runtime/appcds/jigsaw/limitmods/LimitModsTests.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff test/hotspot/jtreg/runtime/appcds/jigsaw/limitmods/LimitModsTests.java
test/hotspot/jtreg/runtime/appcds/jigsaw/limitmods/LimitModsTests.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2015, 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2015, 2018, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 148,164 ****
} else {
limitMods = LIMIT_MODULES[includeModIdx];
}
}
}
! output = TestCommon.exec(
! appJar + File.pathSeparator + helperJar,
"-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", bootClassPath,
"--limit-modules", limitMods,
"LimitModsHelper",
BOOT_ARCHIVE_CLASS, PLATFORM_ARCHIVE_CLASS, APP_ARCHIVE_CLASS,
! Integer.toString(excludeModIdx)); // last 4 args passed to test
! TestCommon.checkExec(output);
limitMods = null;
}
}
}
--- 148,166 ----
} else {
limitMods = LIMIT_MODULES[includeModIdx];
}
}
}
! TestCommon.run(
! "-cp", appJar + File.pathSeparator + helperJar,
"-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", bootClassPath,
"--limit-modules", limitMods,
"LimitModsHelper",
BOOT_ARCHIVE_CLASS, PLATFORM_ARCHIVE_CLASS, APP_ARCHIVE_CLASS,
! Integer.toString(excludeModIdx)) // last 4 args passed to test
! .assertSilentlyDisabledCDS(out -> {
! out.shouldHaveExitValue(0);
! });
limitMods = null;
}
}
}
test/hotspot/jtreg/runtime/appcds/jigsaw/limitmods/LimitModsTests.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File