mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
mktemp: enhance test to catch just-fixed typo behavior
Penance for botching the conflict resolution while rebasing my series. * tests/misc/mktemp (check_tmp): Test for the bug when wrong parameter is used.
This commit is contained in:
1 parent
22e4276ed1
commit
20e5a0d562
1 file changed
+2
-1
+2
-1
@@ -85,9 +85,10 @@ my @Tests =
|
||||
|
||||
# Use a template consisting solely of X's
|
||||
['1d-allX', '-d XXXX', {OUT => "ZZZZ\n"},
|
||||
{PRE => sub {mkdir 'XXXX',0755 or die "XXXX: $!\n"}},
|
||||
{OUT_SUBST => 's,^....$,ZZZZ,'},
|
||||
{POST => sub { my ($f) = @_; defined $f or return; chomp $f;
|
||||
check_tmp $f, 'D'; }}
|
||||
check_tmp $f, 'D'; rmdir 'XXXX' or die "rmdir XXXX: $!\n"; }}
|
||||
],
|
||||
|
||||
# Test -u
|
||||
|
||||
Reference in new issue
Block a user