From: Fabian Keil Date: Sun, 18 Nov 2012 13:55:29 +0000 (+0100) Subject: Add a HOSTIP precheck for tests 31 and 1105 X-Git-Tag: curl-7_28_1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=276452ca1096c40c886eee3ea461d462b7bcdadc;p=curl Add a HOSTIP precheck for tests 31 and 1105 They currently only work for 127.0.0.1 which is hardcoded and can't be easily changed. --- diff --git a/tests/data/test1105 b/tests/data/test1105 index 1b2bf564a..922346ff0 100644 --- a/tests/data/test1105 +++ b/tests/data/test1105 @@ -34,6 +34,9 @@ HTTP with cookie parser and header recording "http://%HOSTIP:%HTTPPORT/we/want/1105?parm1=this*that/other/thing&parm2=foobar/1105" -c log/cookie1105.txt -d "userid=myname&password=mypassword" + +perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 127.0.0.1"; exit(1)}' + # Verify data after the test has been "shot" diff --git a/tests/data/test31 b/tests/data/test31 index ef05f7cd3..b1171d81d 100644 --- a/tests/data/test31 +++ b/tests/data/test31 @@ -72,6 +72,9 @@ TZ=GMT http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt + +perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 127.0.0.1"; exit(1)}' + # Verify data after the test has been "shot"