[gobject-introspection] fix invoke tests
- From: Johan Dahlin <johan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gobject-introspection] fix invoke tests
- Date: Tue, 15 Dec 2009 13:03:29 +0000 (UTC)
commit 27c66d0e1320f54aada9766ace988729c7183056
Author: Saleem Abdulrasool <compnerd compnerd org>
Date: Sun Dec 13 11:56:45 2009 -0800
fix invoke tests
retval should be a valid pointer
https://bugzilla.gnome.org/show_bug.cgi?id=604472
tests/invoke/invoke.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/invoke/invoke.c b/tests/invoke/invoke.c
index dc64253..9d915cd 100644
--- a/tests/invoke/invoke.c
+++ b/tests/invoke/invoke.c
@@ -111,7 +111,7 @@ main (int argc, char *argv[])
function = (GIFunctionInfo *)info;
in_args[0].v_pointer = "hello world\n";
- if (!g_function_info_invoke (function, in_args, 1, NULL, 0, NULL, &error))
+ if (!g_function_info_invoke (function, in_args, 1, NULL, 0, &retval, &error))
g_print ("Invokation of %s failed: %s\n",
g_base_info_get_name (info),
error->message);
@@ -128,7 +128,7 @@ main (int argc, char *argv[])
len = 0;
out_args[0].v_pointer = &blurb;
out_args[1].v_pointer = &len;
- if (!g_function_info_invoke (function, NULL, 0, out_args, 2, NULL, &error))
+ if (!g_function_info_invoke (function, NULL, 0, out_args, 2, &retval, &error))
g_print ("Invokation of %s failed: %s\n",
g_base_info_get_name (info),
error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]