tests 1334 to 1363 revisited.

Add a postcheck section to verify unintended file creation.

Remove needless <file> checks in verify section. Renumbering where appropriate.
This commit is contained in:
Yang Tse
2012-06-05 20:19:27 +02:00
parent 62f374b19e
commit 2b56e4c1bb
23 changed files with 89 additions and 113 deletions

15
tests/libtest/notexists.pl Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env perl
# Check that given arguments do not exist on filesystem.
my $code = 0;
if ($#ARGV < 0) {
print "Usage: $0 file1 [fileN]\n";
exit 2;
}
while (@ARGV) {
my $fname = shift @ARGV;
if (-e $fname) {
print "Found '$fname' when not supposed to exist.\n";
$code = 1;
}
}
exit $code;