Skip to content

Commit

Permalink
8320348: test/jdk/java/io/File/GetAbsolutePath.windowsDriveRelative f…
Browse files Browse the repository at this point in the history
…ails if working directory is not on drive C

Reviewed-by: alanb, mbaesken
  • Loading branch information
Brian Burkhalter committed Nov 20, 2023
1 parent a2c0fa6 commit 32098ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/jdk/java/io/File/GetAbsolutePath.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public void windowsDriveRelative() throws IOException {
File f = new File(z + ":.");
if (f.exists()) {
String zUSER_DIR = f.getCanonicalPath();
assertEquals(z + ":foo", zUSER_DIR + "\\foo");
File path = new File(z + ":foo");
String p = path.getAbsolutePath();
String ans = zUSER_DIR + "\\foo";
assertEquals(0, p.compareToIgnoreCase(ans));
}
}
}
Expand Down

1 comment on commit 32098ce

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.