mirror of
git://code.qt.io/qt/qt5.git
synced 2026-07-05 06:16:48 +08:00
Coin: QNX QEMU: add localhost to /etc/hosts
The Coin hosts file fully overrides the SDP default, which had 127.0.0.1 and ::1 entries. Combined with nsswitch "hosts: files mdnsd dns" and resolv.conf -> 172.31.1.1, any test resolving http(s)://localhost fell through to NXDOMAIN. Fixes tst_QHttpServer (229 HostNotFoundError asserts) and tst_abstractoauth2 (silent crash) on QNX 8.0 QEMU. Applied to 710/ too so the same latent issue can't surface there. Pick-to: 6.8 Change-Id: I2aaa782980cb44afe3499ba8bd35fd7d3c093043 Reviewed-by: Simo Fält <simo.falt@qt.io> Reviewed-by: Marianne Yrjänä <marianne.yrjana@qt.io> (cherry picked from commit00177db989) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commitae3c676594)
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
89722e4a1b
commit
e09102be0c
@@ -1,3 +1,9 @@
|
||||
# Loopback — the QNX SDP's default /etc/hosts ships these, but this
|
||||
# file overrides that default. Tests that connect to http(s)://localhost
|
||||
# (e.g. tst_qhttpserver, tst_abstractoauth2) need them present.
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
|
||||
# Need to add all testserver names statically
|
||||
# as current Docker uses Multicast DNS (mDNS) (avahi)
|
||||
# Which does not work with QNX qemu
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
# Loopback — the QNX SDP's default /etc/hosts ships these, but this
|
||||
# file overrides that default. Tests that connect to http(s)://localhost
|
||||
# (e.g. tst_qhttpserver, tst_abstractoauth2) need them present.
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
|
||||
# Need to add all testserver names statically
|
||||
# as current Docker uses Multicast DNS (mDNS) (avahi)
|
||||
# Which does not work with QNX qemu
|
||||
|
||||
Reference in New Issue
Block a user