[libpeas: 8/18] Add a test for an nonexistent search path
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas: 8/18] Add a test for an nonexistent search path
- Date: Fri, 4 Mar 2011 09:40:30 +0000 (UTC)
commit 2aff50dd0bbac0fff4e29427b1fae8ed6310336b
Author: Garrett Regier <alias301 gmail com>
Date: Thu Mar 3 04:19:46 2011 -0800
Add a test for an nonexistent search path
tests/libpeas/engine.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c
index c084844..3a56ad5 100644
--- a/tests/libpeas/engine.c
+++ b/tests/libpeas/engine.c
@@ -333,6 +333,14 @@ test_engine_enable_loader (PeasEngine *engine)
}
static void
+test_engine_nonexistent_search_path (PeasEngine *engine)
+{
+ /* We use /nowhere as it is also used in configure.ac */
+ peas_engine_add_search_path (engine, "/nowhere", NULL);
+}
+
+
+static void
test_engine_shutdown (PeasEngine *engine)
{
testing_engine_free (engine);
@@ -384,6 +392,8 @@ main (int argc,
TEST ("nonexistent-loader", nonexistent_loader);
TEST ("enable-loader", enable_loader);
+ TEST ("nonexistent-search-path", nonexistent_search_path);
+
/* MUST be last */
TEST ("shutdown", shutdown);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]