From ce0d94ffec1923e25f488d42a1f30dfeabf15a90 Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Fri, 30 Oct 2009 14:05:48 +0300 Subject: [PATCH] 6894504: javax/swing/JFileChooser/6741890/bug6741890.java fails w/ RuntimeException Reviewed-by: malenkov --- jdk/test/javax/swing/JFileChooser/6741890/bug6741890.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jdk/test/javax/swing/JFileChooser/6741890/bug6741890.java b/jdk/test/javax/swing/JFileChooser/6741890/bug6741890.java index 1253acb1f6a..1e670e70404 100644 --- a/jdk/test/javax/swing/JFileChooser/6741890/bug6741890.java +++ b/jdk/test/javax/swing/JFileChooser/6741890/bug6741890.java @@ -29,6 +29,7 @@ */ import sun.awt.shell.ShellFolder; +import sun.awt.OSInfo; import java.io.File; import java.lang.reflect.Field; @@ -43,6 +44,12 @@ public class bug6741890 { private static final int COUNT = 100000; public static void main(String[] args) throws Exception { + if (OSInfo.getOSType() != OSInfo.OSType.WINDOWS) { + System.out.println("The test is applicable only for Windows. Skipped."); + + return; + } + String tmpDir = System.getProperty("java.io.tmpdir"); if (tmpDir.length() == 0) { //'java.io.tmpdir' isn't guaranteed to be defined