aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test842
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-12-02 23:10:02 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-12-02 23:10:02 +0000
commite643c5c90837040bc74babeff058f8b879fb35fe (patch)
treedc23d802a619c3e60edf29f70004d5f5c53d5769 /tests/data/test842
parente7d8d8e257e7e75a7fc277f98e2ee2152a3b94c5 (diff)
downloadgnurl-e643c5c90837040bc74babeff058f8b879fb35fe.tar.gz
gnurl-e643c5c90837040bc74babeff058f8b879fb35fe.tar.bz2
gnurl-e643c5c90837040bc74babeff058f8b879fb35fe.zip
tests: Disable the OAUTHBEARER tests when using a non-default port number
Tests 842, 843, 844, 845, 887, 888, 889, 890, 946, 947, 948 and 949 fail if a custom port number is specified via the -b option of runtests.pl. Suggested by: Kamil Dudka Bug: http://curl.haxx.se/mail/lib-2015-12/0003.html
Diffstat (limited to 'tests/data/test842')
-rw-r--r--tests/data/test8424
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/data/test842 b/tests/data/test842
index 423335755..e0928e245 100644
--- a/tests/data/test842
+++ b/tests/data/test842
@@ -40,6 +40,10 @@ IMAP OAuth 2.0 (OAUTHBEARER) authentication
<command>
'imap://%HOSTIP:%IMAPPORT/842/;UID=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM
</command>
+# The data section doesn't do variable substitution, so we must assert this
+<precheck>
+perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%IMAPPORT' ne '9003' );"
+</precheck>
</client>
#