diff options
author | Garrett Regier <garrettregier@gmail.com> | 2015-11-21 20:07:03 -0800 |
---|---|---|
committer | Garrett Regier <garrettregier@gmail.com> | 2015-12-15 16:57:46 -0800 |
commit | fd59261b2f7e7ca7330e9891ed76681f1ba498dc (patch) | |
tree | e6768af1a7c0135692919cb8213e479392b50c47 /tests/libpeas | |
parent | fb7e9a509af15f880f4cb495a834b23d808a193d (diff) | |
download | libpeas-fd59261b2f7e7ca7330e9891ed76681f1ba498dc.tar.gz |
Keep PeasEngine:plugin-list better ordered
This is less confusing that the prior way of ordering.
Diffstat (limited to 'tests/libpeas')
-rw-r--r-- | tests/libpeas/engine.c | 6 | ||||
-rw-r--r-- | tests/libpeas/plugins/Makefile.am | 1 | ||||
-rw-r--r-- | tests/libpeas/plugins/two-deps.plugin | 7 |
3 files changed, 11 insertions, 3 deletions
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c index 8b297b9..26bdc43 100644 --- a/tests/libpeas/engine.c +++ b/tests/libpeas/engine.c @@ -286,9 +286,9 @@ test_engine_plugin_list (PeasEngine *engine) /* Verify that we are finding the furthest dependency in the list */ dependencies = peas_plugin_info_get_dependencies (two_deps_info); - g_assert_cmpint (loadable_index, <, builtin_index); - g_assert_cmpstr (dependencies[0], ==, "loadable"); - g_assert_cmpstr (dependencies[1], ==, "builtin"); + g_assert_cmpint (builtin_index, <, loadable_index); + g_assert_cmpstr (dependencies[0], ==, "builtin"); + g_assert_cmpstr (dependencies[1], ==, "loadable"); /* The two-deps plugin should be ordered after builtin and loadable */ g_assert_cmpint (builtin_index, <, two_deps_index); diff --git a/tests/libpeas/plugins/Makefile.am b/tests/libpeas/plugins/Makefile.am index 5db17a9..cb35f85 100644 --- a/tests/libpeas/plugins/Makefile.am +++ b/tests/libpeas/plugins/Makefile.am @@ -25,6 +25,7 @@ noinst_PLUGIN = \ nonexistent-dep.plugin \ not-loadable.plugin \ os-dependant-help.plugin \ + two-deps.plugin \ unkown-loader.plugin EXTRA_DIST = $(noinst_PLUGIN) diff --git a/tests/libpeas/plugins/two-deps.plugin b/tests/libpeas/plugins/two-deps.plugin new file mode 100644 index 0000000..0231c27 --- /dev/null +++ b/tests/libpeas/plugins/two-deps.plugin @@ -0,0 +1,7 @@ +[Plugin] +Module=two-deps +Depends=builtin;loadable +Name=Two Deps +Description=This plugin cannot be loaded and has two deps. +Authors=Garrett Regier +Copyright=Copyright © 2015 Garrett Regier |