sourcemod/extensions/curl/curl-src/tests/libtest/test75.pl

14 lines
243 B
Perl
Raw Normal View History

2009-01-09 00:31:00 +01:00
#!/usr/bin/env perl
# Check that the length of a given URL is correct
2013-03-18 01:55:59 +01:00
if ( $#ARGV != 1 )
2009-01-09 00:31:00 +01:00
{
2013-03-18 01:55:59 +01:00
print "Usage: $0 string length\n";
exit 3;
2009-01-09 00:31:00 +01:00
}
if (length(@ARGV[0]) != @ARGV[1])
{
2013-03-18 01:55:59 +01:00
print "Given host IP and port not supported\n";
exit 1;
2009-01-09 00:31:00 +01:00
}
exit 0;