[libpeas: 9/18] Add a test for an invalid GKeyFile formatted PeasPluginInfo
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas: 9/18] Add a test for an invalid GKeyFile formatted PeasPluginInfo
- Date: Fri, 4 Mar 2011 09:40:35 +0000 (UTC)
commit 9ec6b2e505054ee203f8ea0c210df78bd5bd1f76
Author: Garrett Regier <alias301 gmail com>
Date: Thu Mar 3 04:27:08 2011 -0800
Add a test for an invalid GKeyFile formatted PeasPluginInfo
tests/libpeas/plugins/Makefile.am | 1 +
tests/libpeas/plugins/invalid.plugin | 1 +
tests/libpeas/testing/testing.c | 4 +++-
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/libpeas/plugins/Makefile.am b/tests/libpeas/plugins/Makefile.am
index 19df536..ff1be81 100644
--- a/tests/libpeas/plugins/Makefile.am
+++ b/tests/libpeas/plugins/Makefile.am
@@ -14,6 +14,7 @@ noinst_PLUGIN = \
info-missing-iage.plugin \
info-missing-module.plugin \
info-missing-name.plugin \
+ invalid.plugin \
loader-disabled.plugin \
nonexistent-dep.plugin \
nonexistent-loader.plugin \
diff --git a/tests/libpeas/plugins/invalid.plugin b/tests/libpeas/plugins/invalid.plugin
new file mode 100644
index 0000000..e232c66
--- /dev/null
+++ b/tests/libpeas/plugins/invalid.plugin
@@ -0,0 +1 @@
+This is to test for an invalid GKeyFile formatted PeasPluginInfo.
diff --git a/tests/libpeas/testing/testing.c b/tests/libpeas/testing/testing.c
index 66a8614..2ff5724 100644
--- a/tests/libpeas/testing/testing.c
+++ b/tests/libpeas/testing/testing.c
@@ -49,7 +49,9 @@ static const gchar *allowed_patterns[] = {
"*Error loading *info-missing-iage.plugin*",
"*Error loading *info-missing-module.plugin*",
"*Error loading *info-missing-name.plugin*",
- "*Could not find loader 'disabled'*"
+ "*Could not find loader 'disabled'*",
+ "*Bad plugin file: *invalid.plugin*",
+ "*Error loading *invalid.plugin*"
};
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]