Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
8285523: Improve test java/io/FileOutputStream/OpenNUL.java
Browse files Browse the repository at this point in the history
Reviewed-by: bae
Backport-of: f42631e354d4abf7994abd92aa5def6b2ceeab3a
  • Loading branch information
Olga Mikhaltsova authored and Andrew Brygin committed Jun 29, 2022
1 parent cb07ad2 commit c05358d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jdk/test/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 c05358d

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