about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-05-26 21:06:27 +0300
committerMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-05-26 21:06:27 +0300
commit0cff111249ae60f7b9b6662fc7beaed1b5ec8dde (patch)
tree0822004fdb20bf6f0badf20ffc1c423ec2cb3f38 /tests
parent6a44e188537ee2d70226ad9dba4ae89c15437e2b (diff)
downloadprofani-tty-0cff111249ae60f7b9b6662fc7beaed1b5ec8dde.tar.gz
Add checks for whether gdk-pixbuf exists before using avatar set
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/xmpp/stub_avatar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittests/xmpp/stub_avatar.c b/tests/unittests/xmpp/stub_avatar.c
index 453d1863..9f07c334 100644
--- a/tests/unittests/xmpp/stub_avatar.c
+++ b/tests/unittests/xmpp/stub_avatar.c
@@ -8,8 +8,11 @@ avatar_get_by_nick(const char* nick)
 {
     return TRUE;
 }
+
+#ifdef HAVE_PIXBUF
 gboolean
 avatar_set(const char* path)
 {
-    return FALSE;
+    return TRUE;
 }
+#endif