mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
disable some uri tests if --disable-networking
* test-suite/tests/web-uri.test: Disable some tests if we don't have inet-pton.
This commit is contained in:
parent
24dd9f6fe1
commit
5d312f3c2c
1 changed files with 36 additions and 33 deletions
|
@ -94,6 +94,7 @@
|
|||
(uri=? (build-uri 'http #:host "1.good.host")
|
||||
#:scheme 'http #:host "1.good.host" #:path ""))
|
||||
|
||||
(when (memq 'socket *features*)
|
||||
(pass-if "http://192.0.2.1"
|
||||
(uri=? (build-uri 'http #:host "192.0.2.1")
|
||||
#:scheme 'http #:host "192.0.2.1" #:path ""))
|
||||
|
@ -104,7 +105,7 @@
|
|||
|
||||
(pass-if "http://[::ffff:192.0.2.1]"
|
||||
(uri=? (build-uri 'http #:host "::ffff:192.0.2.1")
|
||||
#:scheme 'http #:host "::ffff:192.0.2.1" #:path ""))
|
||||
#:scheme 'http #:host "::ffff:192.0.2.1" #:path "")))
|
||||
|
||||
(pass-if-uri-exception "http://foo:not-a-port"
|
||||
"Expected.*port"
|
||||
|
@ -155,6 +156,7 @@
|
|||
(uri=? (string->uri "http://1.good.host")
|
||||
#:scheme 'http #:host "1.good.host" #:path ""))
|
||||
|
||||
(when (memq 'socket *features*)
|
||||
(pass-if "http://192.0.2.1"
|
||||
(uri=? (string->uri "http://192.0.2.1")
|
||||
#:scheme 'http #:host "192.0.2.1" #:path ""))
|
||||
|
@ -172,7 +174,7 @@
|
|||
|
||||
(pass-if "http://[::ffff:192.0.2.1]"
|
||||
(uri=? (string->uri "http://[::ffff:192.0.2.1]")
|
||||
#:scheme 'http #:host "::ffff:192.0.2.1" #:path ""))
|
||||
#:scheme 'http #:host "::ffff:192.0.2.1" #:path "")))
|
||||
|
||||
(pass-if "http://foo:"
|
||||
(uri=? (string->uri "http://foo:")
|
||||
|
@ -227,6 +229,7 @@
|
|||
(equal? "ftp://foo@bar:22/baz"
|
||||
(uri->string (string->uri "ftp://foo@bar:22/baz"))))
|
||||
|
||||
(when (memq 'socket *features*)
|
||||
(pass-if "http://192.0.2.1"
|
||||
(equal? "http://192.0.2.1"
|
||||
(uri->string (string->uri "http://192.0.2.1"))))
|
||||
|
@ -237,7 +240,7 @@
|
|||
|
||||
(pass-if "http://[::ffff:192.0.2.1]"
|
||||
(equal? "http://[::ffff:192.0.2.1]"
|
||||
(uri->string (string->uri "http://[::ffff:192.0.2.1]"))))
|
||||
(uri->string (string->uri "http://[::ffff:192.0.2.1]")))))
|
||||
|
||||
(pass-if "http://foo:"
|
||||
(equal? "http://foo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue