mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-25 10:16:53 +02:00
tests: tr: add test for invalid character class name
* tests/tr/tr.pl (invalid-class): New test. Identified : https://github.com/uutils/coreutils/pull/11398 https://github.com/coreutils/coreutils/pull/225
This commit is contained in:
committed by
Pádraig Brady
parent
67b8aaae8d
commit
939def75f3
@@ -158,6 +158,10 @@ my @Tests =
|
||||
|
||||
# Up to coreutils-6.9, this would provoke a failed assertion.
|
||||
['no-abort-1', qw(-c a '[b*256]'), {IN=>'abc'}, {OUT=>'abb'}],
|
||||
|
||||
# Reject unknown character class name.
|
||||
['invalid-class', qw('[:fooclass:]' x), {IN=>'abc'}, {OUT=>''}, {EXIT=>1},
|
||||
{ERR=>"$prog: invalid character class 'fooclass'\n"}],
|
||||
);
|
||||
|
||||
@Tests = triple_test \@Tests;
|
||||
|
||||
Reference in New Issue
Block a user