changeset 4556:efae8bfbb940

[TEST] Handle case where nothing is read from native2ascii.
author andrew
date Thu, 22 Sep 2011 01:16:11 +0100
parents 13b32b29aab8
children 1aad084f039f
files test/sun/tools/native2ascii/NativeErrors.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/tools/native2ascii/NativeErrors.java	Thu Sep 22 01:13:26 2011 +0100
+++ b/test/sun/tools/native2ascii/NativeErrors.java	Thu Sep 22 01:16:11 2011 +0100
@@ -104,8 +104,8 @@
         }
         //System.out.println("received: " + errorReceived);
         //System.out.println("expected: " + errorExpected);
-        if (!errorReceived.endsWith(errorExpected))
-            throw new RuntimeException("Native2ascii bad arg error broken.");
+        if (errorReceived == null || !errorReceived.endsWith(errorExpected))
+            throw new RuntimeException("Native2ascii " + errorExpected + " broken.");
     }
 
     private static String[] getComString(String arg2) {