Simon McVittie
ba367cb659
tests: Add macros to assert that a copied string has a desired value
...
Suggested by Patrick during review of #5691 .
Signed-off-by: Simon McVittie <smcv@collabora.com >
2024-04-25 17:23:25 +01:00
Simon McVittie
ad1dc62f26
testlib: Remove local backport of g_assert_no_errno()
...
libglnx now provides this.
Signed-off-by: Simon McVittie <smcv@collabora.com >
2022-10-24 16:10:49 +01:00
Simon McVittie
c652d538eb
tests: Redirect stdout to stderr for flatpak_installation_launch
...
This avoids polluting stdout with the output of the launched app,
which would corrupt the test's TAP output. With Autotools, we get away
with it, because Automake's TAP parser is permissive, but Meson's TAP
parser is more strict.
Signed-off-by: Simon McVittie <smcv@collabora.com >
2022-05-03 13:54:23 +02:00
Simon McVittie
412c15772f
portal: Add some test coverage
...
This exercises Spawn() and reproduces #4286 .
Signed-off-by: Simon McVittie <smcv@collabora.com >
2021-05-25 11:11:03 +02:00
Simon McVittie
6b2cb74a94
tests: Improve error handling for isolated directory setup
...
If these simple libc function wrappers fail during setup, we want to
crash out.
Signed-off-by: Simon McVittie <smcv@collabora.com >
2021-04-06 11:53:23 +02:00
Simon McVittie
a5960d4e7b
tests: Factor out test setup from test-exports
...
Signed-off-by: Simon McVittie <smcv@collabora.com >
2021-04-06 11:53:23 +02:00