jdk/test/java/io/File/NulFile.java
changeset 18807 7d65f90d7348
parent 18157 ee3bda8e26c6
child 21426 65335399143c
--- a/jdk/test/java/io/File/NulFile.java	Thu Jul 11 11:14:06 2013 -0700
+++ b/jdk/test/java/io/File/NulFile.java	Thu Jul 11 13:40:25 2013 -0700
@@ -612,8 +612,13 @@
             try {
                 File.createTempFile(prefix, suffix, directory);
             } catch (IOException ex) {
-                if (ExceptionMsg.equals(ex.getMessage()))
+                String err = "Unable to create temporary file";
+                if (err.equals(ex.getMessage()))
                     exceptionThrown = true;
+                else {
+                    throw new RuntimeException("Get IOException with message, "
+                            + ex.getMessage() + ", expect message, "+ err);
+                }
             }
         }
         if (!exceptionThrown) {