[libpeas] Unsubprocess a Lua test
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Unsubprocess a Lua test
- Date: Tue, 20 Jan 2015 09:24:22 +0000 (UTC)
commit a8bc168308f839c8263a3bc8ccd81b4cf2d57a36
Author: Garrett Regier <garrettregier gmail com>
Date: Sun Jan 18 06:12:32 2015 -0800
Unsubprocess a Lua test
This was copied from the Python tests but
is not needed as Lua doesn't warn to stderr.
tests/libpeas/extension-lua.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/tests/libpeas/extension-lua.c b/tests/libpeas/extension-lua.c
index f8ae82b..3d42556 100644
--- a/tests/libpeas/extension-lua.c
+++ b/tests/libpeas/extension-lua.c
@@ -149,17 +149,7 @@ test_extension_lua_activatable_subject_refcount (PeasEngine *engine,
}
static void
-test_extension_lua_nonexistent (void)
-{
- g_test_trap_subprocess (EXTENSION_TEST_NAME (lua5.1,
- "nonexistent/subprocess"),
- 0, G_TEST_SUBPROCESS_INHERIT_STDERR);
- g_test_trap_assert_passed ();
- g_test_trap_assert_stderr ("");
-}
-
-static void
-test_extension_lua_nonexistent_subprocess (PeasEngine *engine)
+test_extension_lua_nonexistent (PeasEngine *engine)
{
PeasPluginInfo *info;
@@ -201,9 +191,7 @@ main (int argc,
EXTENSION_TEST (lua5.1, "instance-refcount", instance_refcount);
EXTENSION_TEST (lua5.1, "activatable-subject-refcount",
activatable_subject_refcount);
-
- EXTENSION_TEST_FUNC (lua5.1, "nonexistent", nonexistent);
- EXTENSION_TEST (lua5.1, "nonexistent/subprocess", nonexistent_subprocess);
+ EXTENSION_TEST (lua5.1, "nonexistent", nonexistent);
return testing_extension_run_tests ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]