[libpeas] Test calling call_multi_args() with peas_extension_call()
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Test calling call_multi_args() with peas_extension_call()
- Date: Thu, 29 Mar 2012 01:08:13 +0000 (UTC)
commit 7bf3ff9a5f7c1300b8be5ffab24fcf090620439c
Author: Garrett Regier <garrettregier gmail com>
Date: Wed Mar 21 18:53:55 2012 -0700
Test calling call_multi_args() with peas_extension_call()
The other call tests test that it works with peas_extension_call().
tests/libpeas/testing/testing-extension.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas/testing/testing-extension.c b/tests/libpeas/testing/testing-extension.c
index 03be1be..795804d 100644
--- a/tests/libpeas/testing/testing-extension.c
+++ b/tests/libpeas/testing/testing-extension.c
@@ -364,6 +364,16 @@ test_extension_call_multi_args (PeasEngine *engine,
inout = g_random_int ();
inout_saved = inout;
+ g_assert (peas_extension_call (extension, "call_multi_args",
+ in, &out, &inout));
+
+ g_assert_cmpint (inout_saved, ==, out);
+ g_assert_cmpint (in, ==, inout);
+
+ in = g_random_int ();
+ inout = g_random_int ();
+ inout_saved = inout;
+
introspection_callable_call_multi_args (callable, in, &out, &inout);
g_assert_cmpint (inout_saved, ==, out);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]