< prev index next >
test/jdk/tools/launcher/SourceMode.java
Print this page
rev 51031 : 8207766: [testbug] Adapt tests for Aix.
@@ -19,11 +19,11 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-/*
+/**
* @test
* @bug 8192920 8204588
* @summary Test source mode
* @modules jdk.compiler jdk.jlink
* @run main SourceMode
@@ -296,15 +296,15 @@
// #!.../java --source N -version
@Test
void testTerminalOptionInShebang() throws IOException {
starting("testTerminalOptionInShebang");
- if (skipShebangTest || isMacOSX || isSolaris) {
+ if (skipShebangTest || isAIX || isMacOSX || isSolaris) {
// On MacOSX, we cannot distinguish between terminal options on the
// shebang line and those on the command line.
// On Solaris, all options after the first on the shebang line are
- // ignored.
+ // ignored. Similar on AIX.
log.println("SKIPPED");
return;
}
Path base = Files.createDirectories(
Paths.get("testTerminalOptionInShebang"));
@@ -320,15 +320,15 @@
// #!.../java --source N @bad.at (contains -version)
@Test
void testTerminalOptionInShebangAtFile() throws IOException {
starting("testTerminalOptionInShebangAtFile");
- if (skipShebangTest || isMacOSX || isSolaris) {
+ if (skipShebangTest || isAIX || isMacOSX || isSolaris) {
// On MacOSX, we cannot distinguish between terminal options in a
// shebang @-file and those on the command line.
// On Solaris, all options after the first on the shebang line are
- // ignored.
+ // ignored. Similar on AIX.
log.println("SKIPPED");
return;
}
// Use a short directory name, to avoid line length limitations
Path base = Files.createDirectories(Paths.get("testBadAtFile"));
@@ -347,15 +347,15 @@
// #!.../java --source N HelloWorld
@Test
void testMainClassInShebang() throws IOException {
starting("testMainClassInShebang");
- if (skipShebangTest || isMacOSX || isSolaris) {
+ if (skipShebangTest || isAIX || isMacOSX || isSolaris) {
// On MacOSX, we cannot distinguish between a main class on the
// shebang line and one on the command line.
// On Solaris, all options after the first on the shebang line are
- // ignored.
+ // ignored. Similar on AIX.
log.println("SKIPPED");
return;
}
Path base = Files.createDirectories(Paths.get("testMainClassInShebang"));
Path bad = base.resolve("bad");
< prev index next >