[libpeas] Don't test properites for things that should fail
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Don't test properites for things that should fail
- Date: Mon, 7 Mar 2011 17:20:57 +0000 (UTC)
commit e8a73351d9b520420605f59df2c2b9feef02c923
Author: Garrett Regier <alias301 gmail com>
Date: Mon Mar 7 08:02:47 2011 -0800
Don't test properites for things that should fail
This has issues when the log is redirected like in the Python loader.
tests/libpeas/testing/testing-extension.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/tests/libpeas/testing/testing-extension.c b/tests/libpeas/testing/testing-extension.c
index 9b29761..661e39e 100644
--- a/tests/libpeas/testing/testing-extension.c
+++ b/tests/libpeas/testing/testing-extension.c
@@ -342,9 +342,6 @@ testing_extension_properties_construct_only_ (PeasEngine *engine)
PeasExtension *extension;
gchar *construct_only;
- testing_util_push_log_hook ("*property \"construct-only\" * "
- "can't be set after construction");
-
info = peas_engine_get_plugin_info (engine, extension_plugin);
g_assert (peas_engine_load_plugin (engine, info));
@@ -358,8 +355,6 @@ testing_extension_properties_construct_only_ (PeasEngine *engine)
g_assert_cmpstr (construct_only, ==, "my-construct-only");
g_free (construct_only);
- g_object_set (extension, "construct-only", "other-construct-only", NULL);
-
g_object_unref (extension);
}
@@ -370,8 +365,6 @@ testing_extension_properties_read_only_ (PeasEngine *engine)
PeasExtension *extension;
gchar *read_only;
- testing_util_push_log_hook ("*property `read-only' * is not writable");
-
info = peas_engine_get_plugin_info (engine, extension_plugin);
g_assert (peas_engine_load_plugin (engine, info));
@@ -384,8 +377,6 @@ testing_extension_properties_read_only_ (PeasEngine *engine)
g_assert_cmpstr (read_only, ==, "read-only");
g_free (read_only);
- g_object_set (extension, "read-only", "my-read-only", NULL);
-
g_object_unref (extension);
}
@@ -394,9 +385,6 @@ testing_extension_properties_write_only_ (PeasEngine *engine)
{
PeasPluginInfo *info;
PeasExtension *extension;
- gchar *write_only = NULL;
-
- testing_util_push_log_hook ("*property `write-only' * is not readable");
info = peas_engine_get_plugin_info (engine, extension_plugin);
@@ -406,7 +394,6 @@ testing_extension_properties_write_only_ (PeasEngine *engine)
INTROSPECTION_TYPE_PROPERTIES,
NULL);
- g_object_get (extension, "write-only", &write_only, NULL);
g_object_set (extension, "write-only", "my-write-only", NULL);
g_object_unref (extension);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]