[libpeas] Cleanup testing comments
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Cleanup testing comments
- Date: Wed, 23 Mar 2011 21:42:30 +0000 (UTC)
commit 2a9380688d07e42446c24646c3e1e45ca5e2046f
Author: Garrett Regier <alias301 gmail com>
Date: Fri Mar 18 09:01:54 2011 -0700
Cleanup testing comments
tests/libpeas/engine.c | 9 ++-------
tests/testing-util/testing-util.c | 4 ++--
2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c
index 37cef29..df45520 100644
--- a/tests/libpeas/engine.c
+++ b/tests/libpeas/engine.c
@@ -68,7 +68,7 @@ test_engine_new (PeasEngine *engine)
g_assert (engine != NULL);
g_assert (new_engine != NULL);
- /* Does not return the same engine*/
+ /* Does not return the same engine */
g_assert (engine != new_engine);
/* peas_engine_new() sets the default engine */
g_assert (engine == peas_engine_get_default ());
@@ -93,11 +93,6 @@ test_engine_dispose (PeasEngine *engine)
static void
test_engine_get_default (void)
{
- /* testing_engine_new() uses peas_engine_new()
- * so this makes sure that peas_engine_get_default()
- * acutally sets the default engine
- */
-
g_assert (peas_engine_get_default () == peas_engine_get_default ());
g_object_unref (peas_engine_get_default ());
@@ -421,7 +416,7 @@ test_engine_shutdown (void)
peas_engine_shutdown ();
peas_engine_shutdown ();
- /* Cannot get the default as libpeas has been shutdown */
+ /* Cannot create an engine because libpeas has been shutdown */
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR))
{
peas_engine_new ();
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index 7360ffa..f8c67b5 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -44,7 +44,7 @@ static GPtrArray *log_hooks = NULL;
* for testing purposes and as such we don't want to abort on them.
*
* If the warnings are for specific tests use
- * testing_push_log_hook() and testing_pop_log_hook() which
+ * testing_util_push_log_hook() and testing_util_pop_log_hook() which
* will assert that the warning or critical actually happened.
*
* Don't bother putting errors in here as GLib always aborts on errors.
@@ -163,7 +163,7 @@ testing_util_engine_new (void)
void
testing_util_engine_free (PeasEngine *engine_)
{
- /* Incase a test needs to free the engine */
+ /* In case a test needs to free the engine */
if (engine != NULL)
{
g_object_unref (engine_);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]