campo-sirio/curl/tests/libtest/notexists.pl
bonazzi 60b07bded3 Patch level : 12.0 no patch
Files correlati     : 
Commento            :

Aggiunte le Librerie curl e ZeroMQ

git-svn-id: svn://10.65.10.50/branches/R_10_00@23243 c028cbd2-c16b-5b4b-a496-9718f37d4682
2016-09-09 20:55:46 +00:00

16 lines
329 B
Perl

#!/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;