pipewire/test
Alyssa Ross 49ce385c44
test: move SPA_NORETURN attributes to header
Otherwise, when building with fortify-headers, I get an error because
the compiler doesn't know pwtest_ptr_notnull will not return if the
passed pointer is null, so it doesn't know the pointer subsequently
passed to memmove via pw_array_remove will be non-null.

	In file included from ../spa/include/spa/utils/defs.h:11,
	                 from ../spa/include/spa/utils/string.h:15,
	                 from ../test/pwtest.h:15,
	                 from ../test/test-array.c:7:
	In function ‘memmove’,
	    inlined from ‘array_test’ at ../test/test-array.c:66:2:
	/nix/store/9031y56lsf4mq177s68ql1axsf241r7j-fortify-headers-3.0.1/include/string.h:77:16: error: argument 1 is null but the corresponding size argument 3 value is [8, 18446744073709551615] [-Werror=nonnull]
	   77 |         return __orig_memmove(__d, __s, __n);
	      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	/nix/store/9031y56lsf4mq177s68ql1axsf241r7j-fortify-headers-3.0.1/include/string.h:77:16: warning: ‘__orig_memmove’ reading 8 or more bytes from a region of size 0 [-Wstringop-overread]
	In function ‘array_test’:
	cc1: note: source object is likely at address zero
	In file included from /nix/store/9031y56lsf4mq177s68ql1axsf241r7j-fortify-headers-3.0.1/include/stdlib.h:33,
	                 from ../spa/include/spa/utils/string.h:11:
	/nix/store/9031y56lsf4mq177s68ql1axsf241r7j-fortify-headers-3.0.1/include/string.h:69:1: note: in a call to function ‘__orig_memmove’ declared with attribute ‘access (read_only, 2, 3)’
	   69 | _FORTIFY_FN(memmove) void *memmove(void * _FORTIFY_POS0 __d,
	      | ^~~~~~~~~~~
2026-05-04 17:51:58 +02:00
..
data json: fix high surrogate escapes 2024-05-05 15:15:54 +03:00
avb-bugs.md test: add AECP/AEM entity model tests and document new bugs 2026-04-09 07:43:19 +00:00
meson.build milan-avb: aecp-vendor-unique-milan-v12: dispatch via per-cmd table per Milan v1.2 Section 5.4.4 2026-04-27 10:56:44 +00:00
pwtest-compat.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
pwtest-implementation.h test: move SPA_NORETURN attributes to header 2026-05-04 17:51:58 +02:00
pwtest.c test: move SPA_NORETURN attributes to header 2026-05-04 17:51:58 +02:00
pwtest.h *: unify config.h handling 2025-05-30 10:24:13 +00:00
test-array.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-avb-utils.h milan-avb: rework mrp join/begin: 2026-04-27 10:56:44 +00:00
test-avb.c milan-avb: rework mrp join/begin: 2026-04-27 10:56:44 +00:00
test-client.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-config.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-context.c tests: fix test 2026-02-20 10:35:31 +01:00
test-example.c examples: surround loop_iterate() with enter() and leave() 2025-01-20 12:00:02 +01:00
test-functional.c test: fix test library path and fix test-functional with ASAN 2025-08-04 08:34:02 +00:00
test-lib.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-logger.c test: fix assigment and compare error 2025-09-16 10:42:44 +02:00
test-loop.c keys: add and use some loop keys 2024-04-23 11:49:12 +02:00
test-map.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-mempool.c mem: handle overflow in pw_map_range_init() 2026-04-08 09:47:57 +02:00
test-properties.c tools: port various tools to the new json-builder 2026-02-26 10:51:17 +01:00
test-pwtest.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-buffer.c meta: add explicit sync metadata and data type 2024-04-25 09:55:19 +02:00
test-spa-control.c control: improve UMP to Midi conversiom 2025-08-19 18:33:59 +02:00
test-spa-format.c spa: param: add size checks for spa_audio_info* structs 2025-10-26 18:23:17 +02:00
test-spa-json.c json: Use state machine and fix 1E10 parsing 2026-03-09 18:17:04 +01:00
test-spa-log.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-node.c spa: revert peer_enum_params node event again 2024-06-20 10:22:45 +02:00
test-spa-pod.c spa: ensure enum always has 2 values 2025-11-04 09:23:26 +01:00
test-spa-utils.c spa: add Capability and PeerCapability 2025-11-21 10:08:46 +01:00
test-support.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-utils.c test: add two minimal tests for pw_strv_parse() 2024-04-27 15:21:05 +02:00