--- 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) {