| 1 |
# t303 --- rlog w/ non-'a', non-'d' dispatch in edit script |
| 2 |
# |
| 3 |
# Copyright (C) 2022 Thien-Thi Nguyen |
| 4 |
# |
| 5 |
# This program is free software: you can redistribute it and/or |
| 6 |
# modify it under the terms of the GNU General Public License as |
| 7 |
# published by the Free Software Foundation, either version 3 of |
| 8 |
# the License, or (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty |
| 12 |
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
# See the GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
## |
| 19 |
# Check that rlog aborts w/ correct line number diagnostic. |
| 20 |
## |
| 21 |
|
| 22 |
. $srcdir/common |
| 23 |
split_std_out_err |
| 24 |
|
| 25 |
rerr=$wd/rerr |
| 26 |
|
| 27 |
must 'sed "58s/^/X/" `bundled_commav stdio-sync` > $v' |
| 28 |
rlog $v 2>$rerr \ |
| 29 |
&& problem 'rlog did not abort' |
| 30 |
|
| 31 |
test -s $rerr \ |
| 32 |
|| problem 'no diagnostic output' |
| 33 |
|
| 34 |
grep ':58: unexpected .*0x58' \ |
| 35 |
$rerr 1>/dev/null \ |
| 36 |
|| problem 'incorrect diagnostic' |
| 37 |
|
| 38 |
exit 0 |
| 39 |
|
| 40 |
# t303 ends here |