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 commit 00177db989)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit ae3c676594)
This commit is contained in:
Tuomas Vaarala
2026-04-24 10:24:50 +03:00
committed by Qt Cherry-pick Bot
parent 89722e4a1b
commit e09102be0c
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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