summaryrefslogtreecommitdiff
path: root/tests/testlibrary.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-04-16 10:40:42 +0100
committerAlexander Larsson <alexander.larsson@gmail.com>2021-04-19 09:09:04 +0200
commit3a85ceecfc1d36d9dd175a5273ea8f9c6f6db052 (patch)
tree9d220b65d235164d7f199d712d7c88d1a32851ac /tests/testlibrary.c
parent2a01318e15ea9c38583480bea9eb9b949b4d424d (diff)
downloadflatpak-3a85ceecfc1d36d9dd175a5273ea8f9c6f6db052.tar.gz
testlibrary: Fix an assertion
scan-build detected that res was written but never read. Presumably the use of ref here (carried over from the previous test) is a copy/paste error. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'tests/testlibrary.c')
-rw-r--r--tests/testlibrary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c
index aaa37a3d..748879e6 100644
--- a/tests/testlibrary.c
+++ b/tests/testlibrary.c
@@ -4035,7 +4035,7 @@ test_overrides (void)
res = flatpak_installation_launch (inst, "org.test.Hello", NULL, "master", NULL, NULL, &error);
g_assert_no_error (error);
- g_assert_nonnull (ref);
+ g_assert_true (res);
data = flatpak_installation_load_app_overrides (inst, "org.test.Hello", NULL, &error);
g_assert_no_error (error);