equal
deleted
inserted
replaced
22 # or visit www.oracle.com if you need additional information or have any |
22 # or visit www.oracle.com if you need additional information or have any |
23 # questions. |
23 # questions. |
24 # |
24 # |
25 |
25 |
26 # @test |
26 # @test |
27 # @bug 4630463 4630971 4636448 4701617 4721296 4710890 6247817 |
27 # @bug 4630463 4630971 4636448 4701617 4721296 4710890 6247817 7021987 |
28 # @summary Tests miscellaneous native2ascii bugfixes and regressions |
28 # @summary Tests miscellaneous native2ascii bugfixes and regressions |
29 |
29 |
30 |
30 |
31 if [ "${TESTSRC}" = "" ]; then TESTSRC=.; fi |
31 if [ "${TESTSRC}" = "" ]; then TESTSRC=.; fi |
32 if [ "${TESTJAVA}" = "" ]; then TESTJAVA=$1; shift; fi |
32 if [ "${TESTJAVA}" = "" ]; then TESTJAVA=$1; shift; fi |
98 |
98 |
99 rm -f x.* |
99 rm -f x.* |
100 $N2A -reverse -encoding MS932 $TESTSRC/A2N_4701617 x.out |
100 $N2A -reverse -encoding MS932 $TESTSRC/A2N_4701617 x.out |
101 check 4701617 $TESTSRC/A2N_4701617.expected x.out |
101 check 4701617 $TESTSRC/A2N_4701617.expected x.out |
102 |
102 |
|
103 # Check that the inputfile appears in the error message when not found |
|
104 |
|
105 badin="DoesNotExist" |
|
106 $N2A $badin x.out | grep "$badin" > /dev/null |
|
107 if [ $? != 0 ]; then |
|
108 echo "\"$badin\" expected to appear in error message" |
|
109 exit 1 |
|
110 fi |
|
111 |
103 # for win32 only ensure when output file pre-exists that |
112 # for win32 only ensure when output file pre-exists that |
104 # native2ascii tool will simply overwrite with the expected |
113 # native2ascii tool will simply overwrite with the expected |
105 # output file (fixed bugID 4710890) |
114 # output file (fixed bugID 4710890) |
106 |
115 |
107 if [ OS = Windows ]; then |
116 if [ OS = Windows ]; then |