# HG changeset patch # User andrew # Date 1316650571 -3600 # Node ID efae8bfbb940a6fcdea5a8c597b5927e1dc09a89 # Parent 13b32b29aab8446f736c554a8098b7eb2cf1c113 [TEST] Handle case where nothing is read from native2ascii. diff -r 13b32b29aab8 -r efae8bfbb940 test/sun/tools/native2ascii/NativeErrors.java --- 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) {