qemu-cr16/tests
Cédric Le Goater e37a0d514a tests/vhost-user-bridge.c: Fix const qualifier build errors with recent glibc
A recent change in glibc 2.42.9000 [1] changes the return type of
strstr() and other string functions to be 'const char *' when the
input is a 'const char *'. This breaks the build in :

../tests/vhost-user-bridge.c: In function ‘vubr_parse_host_port’:
../tests/vhost-user-bridge.c:749:15: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  749 |     char *p = strchr(buf, ':');
      |               ^~~~~~

Fix this by using the glib g_strsplit() routine instead of strdup().

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Yodel Eldar <yodel.eldar@yodel.dev>
Tested-by: Yodel Eldar <yodel.eldar@yodel.dev>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251215101937.281722-3-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2025-12-16 14:28:30 +01:00
..
bench tests/bench: Rename test_akcipher_keys.inc -> test_akcipher_keys.c.inc 2024-09-20 10:08:24 +03:00
data tests/qtest/bios-tables-test: Update DSDT blobs after GPEX _DSM change 2025-11-09 08:24:29 -05:00
decode decodetree: Infer argument set before inferring format 2025-07-25 10:31:45 +01:00
docker tests/docker: drop --disable-[tools|system] from all-test-cross 2025-12-05 15:26:19 +00:00
fp fpu: allow flushing of output denormals to be after rounding 2025-02-11 16:22:07 +00:00
functional tests/functional/aarch64/test_rme_sbsaref: Silence issues reported by pylint 2025-11-21 08:33:15 +01:00
guest-debug tests, scripts: Don't import print_function from __future__ 2025-09-16 17:31:53 +01:00
image-fuzzer
include meson: fix Windows build 2025-06-16 13:16:27 -04:00
keys
lcitool tests/docker: drop --disable-[tools|system] from all-test-cross 2025-12-05 15:26:19 +00:00
migration-stress guestperf: Add test result data into report 2025-02-14 15:19:07 -03:00
multiboot
perf/block/qcow2
qapi-schema qapi: Add documentation format validation 2025-11-04 13:55:27 +01:00
qemu-iotests tests/qemu-iotests: Check for a functional "secret" object before using it 2025-12-05 15:26:06 +00:00
qtest hw/nvme: Validate PMR memory size 2025-11-25 09:21:41 +01:00
rocker
tcg tests/tcg/s390x: Test SET CLOCK COMPARATOR 2025-11-03 08:27:59 +01:00
tracetool tracetool/syslog: add Rust support 2025-10-01 11:22:07 -04:00
tsan system/physmem: Drop 'cpu_' prefix in Physical Memory API 2025-10-07 05:03:56 +02:00
uefi-test-tools uefi-test-tools:: Add LoongArch64 support 2025-06-01 06:38:53 -04:00
unit tests: Clean up includes 2025-11-14 13:18:04 +00:00
vm tests/docker: add coreutils to the package list 2025-11-17 15:51:00 +00:00
dbus-vmstate-daemon.sh
Makefile.include tests/tcg: honour the available QEMU binaries when running check-tcg 2025-12-05 15:25:51 +00:00
meson.build tracetool: add test suite for tracetool with reference output 2025-09-16 13:31:40 -04:00
test-qht-par.c
vhost-user-bridge.c tests/vhost-user-bridge.c: Fix const qualifier build errors with recent glibc 2025-12-16 14:28:30 +01:00