Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8285523: Improve test java/io/FileOutputStream/OpenNUL.java
Backport-of: f42631e354d4abf7994abd92aa5def6b2ceeab3a
  • Loading branch information
mrserb committed May 20, 2022
1 parent 4f29d1e commit eb2d6b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jdk/java/io/FileOutputStream/OpenNUL.java
Expand Up @@ -26,7 +26,9 @@
* @bug 8285445
* @requires (os.family == "windows")
* @summary Verify behavior of opening "NUL:" with ADS enabled and disabled.
* @run main/othervm OpenNUL
* @run main/othervm -Djdk.io.File.enableADS OpenNUL
* @run main/othervm -Djdk.io.File.enableADS=FalsE OpenNUL
* @run main/othervm -Djdk.io.File.enableADS=true OpenNUL
*/

Expand All @@ -36,7 +38,7 @@

public class OpenNUL {
public static void main(String args[]) throws IOException {
String enableADS = System.getProperty("jdk.io.File.enableADS");
String enableADS = System.getProperty("jdk.io.File.enableADS", "true");
boolean fails = enableADS.equalsIgnoreCase(Boolean.FALSE.toString());

FileOutputStream fos;
Expand Down

1 comment on commit eb2d6b8

@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.