1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00
curl/tests/libtest/delay.pl
Yang Tse 72c58b0d1d test 1001 needs a small delay between client part execution and test
result file verifications to allow the test server to completely write
out all files
2008-04-18 17:17:14 +00:00

17 lines
232 B
Perl
Executable File

#!/usr/bin/env perl
# sleep for a number of seconds
if ( $#ARGV != 0 )
{
print "Usage: $0 seconds\n";
exit 1;
}
if ( $ARGV[0] =~ /(\d+)/ ) {
sleep $1;
exit 0;
}
else {
print "Usage: $0 seconds\n";
exit 1;
}