[librsvg: 12/29] Test the noop functions rsvg_init(), rsvg_term(), rsvg_cleanup()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 12/29] Test the noop functions rsvg_init(), rsvg_term(), rsvg_cleanup()
- Date: Tue, 6 Feb 2018 21:05:05 +0000 (UTC)
commit 039a7e4af6964f0caa1b00385bb2664a81c7fa12
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Feb 6 10:26:32 2018 -0600
Test the noop functions rsvg_init(), rsvg_term(), rsvg_cleanup()
tests/api.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/tests/api.c b/tests/api.c
index 61245b9..dc8c520 100644
--- a/tests/api.c
+++ b/tests/api.c
@@ -11,10 +11,6 @@
#include "test-utils.h"
/*
-RSVG_G_TYPE_INIT
-rsvg_init
-rsvg_term
-rsvg_cleanup
rsvg_error_quark
rsvg_handle_free
rsvg_handle_close
@@ -187,6 +183,15 @@ test_pixbuf (gconstpointer data) {
g_object_unref (pixbuf);
}
+static void
+noops (void)
+{
+ /* Just to test that these functions are present in the binary, I guess */
+ rsvg_init ();
+ rsvg_term ();
+ g_assert (rsvg_cleanup != NULL); /* shouldn't call this one! */
+}
+
int
main (int argc, char **argv)
{
@@ -199,6 +204,7 @@ main (int argc, char **argv)
}
g_test_add_func ("/api/handle_has_gtype", handle_has_gtype);
+ g_test_add_func ("/api/noops", noops);
return g_test_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]