Running the test suite for libupnp 1.6.21 built on Linux (CentOS 5+6, 32- and 64-bit) produces a failure for upnp/test_url - from upnp/test-suite.log:
=========================================
libupnp 1.6.21: upnp/test-suite.log
=========================================
# TOTAL: 2
# PASS: 1
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test_url
==============
test/test_url.c:60: 'http://www.libupnp.org/path1/' | 'http://www.libupnp.org/path1/path1' -> '(null)' != 'http://www.libupnp.org/path1/path1' (-108)
test/test_url.c:61: 'http://www.libupnp.org/path1/' | '' -> '(null)' != 'http://www.libupnp.org/path1/' (-108)
test/test_url.c:62: 'http://www.libupnp.org/path1/' | '//localhost/path2' -> '(null)' != 'http://localhost/path2' (-108)
test/test_url.c:63: 'http://www.libupnp.org/path1/path1' | '//localhost/path2' -> '(null)' != 'http://localhost/path2' (-108)
test/test_url.c:64: 'http://www.libupnp.org/path1/' | '/path3' -> '(null)' != 'http://www.libupnp.org/path3' (-108)
test/test_url.c:65: 'http://www.libupnp.org/path1/path1' | '/path3' -> '(null)' != 'http://www.libupnp.org/path3' (-108)
test/test_url.c:66: 'http://www.libupnp.org/path1/' | 'path4' -> '(null)' != 'http://www.libupnp.org/path1/path4' (-108)
test/test_url.c:67: 'http://www.libupnp.org/path1/path1' | 'path4' -> '(null)' != 'http://www.libupnp.org/path1/path4' (-108)
test/test_url.c:68: 'http://www.libupnp.org/path1/' | '../path5' -> '(null)' != 'http://www.libupnp.org/path5' (-108)
test/test_url.c:69: 'http://www.libupnp.org/path1/path1' | '../path5' -> '(null)' != 'http://www.libupnp.org/path5' (-108)
test/test_url.c:70: 'http://www.libupnp.org/path1/' | '#frag1' -> '(null)' != 'http://www.libupnp.org/path1/#frag1' (-108)
test/test_url.c:71: 'http://www.libupnp.org/path1/path1' | '#frag1' -> '(null)' != 'http://www.libupnp.org/path1/path1#frag1' (-108)
Build log attached.
Seems like we need a patch for those unit tests. I can't remember having compiled them even once, they must be really ancient code.
Regards,
Marcelo.
Can't be that ancient, because that particular test appeared somewhen after 1.6.19. ;-)
Well, you really should run your test suite yourself to detect such problems before...
The issue is as follows:
And
parse_hostport()tries to resolvewww.libupnp.org, where the domain libupnp.org does not exists anymore:So either change all URLs in
test_url.ctolocalhost, or choose something which will last, e.g.www.iana.orgor the like.Last edit: Peter Pramberger 2017-01-20
Fixed, thanks.