[grilo-plugins/tmdb-test] tests: tmdb: Use g_assert_no_error()
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/tmdb-test] tests: tmdb: Use g_assert_no_error()
- Date: Wed, 14 Nov 2012 10:29:26 +0000 (UTC)
commit 80603547df874af1540a8422239f1f000ee21789
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Nov 14 11:29:20 2012 +0100
tests: tmdb: Use g_assert_no_error()
test/test_tmdb_fast_resolution.c | 2 +-
test/test_tmdb_full_resolution.c | 2 +-
test/test_tmdb_missing_configuration.c | 2 +-
test/test_tmdb_preconditions.c | 4 ++--
test/test_tmdb_utils.c | 6 +++---
5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/test/test_tmdb_fast_resolution.c b/test/test_tmdb_fast_resolution.c
index 55803df..163fa96 100644
--- a/test/test_tmdb_fast_resolution.c
+++ b/test/test_tmdb_fast_resolution.c
@@ -72,7 +72,7 @@ test (void)
&error);
/* Fast resolution must not result in an error if the details are missing */
- g_assert (error == NULL);
+ g_assert_no_error (error);
/* Check if we have everything we need */
g_assert (compare_floats (grl_media_get_rating (media), 3.8f));
diff --git a/test/test_tmdb_full_resolution.c b/test/test_tmdb_full_resolution.c
index 7b031ee..ac3e37e 100644
--- a/test/test_tmdb_full_resolution.c
+++ b/test/test_tmdb_full_resolution.c
@@ -106,7 +106,7 @@ test (void)
grl_source_supported_keys (source),
options,
&error);
- g_assert (error == NULL);
+ g_assert_no_error (error);
/* Check if we got everything we need for the fast resolution */
g_assert (compare_floats (grl_media_get_rating (media), 3.8f));
diff --git a/test/test_tmdb_missing_configuration.c b/test/test_tmdb_missing_configuration.c
index fee49ca..fd1c033 100644
--- a/test/test_tmdb_missing_configuration.c
+++ b/test/test_tmdb_missing_configuration.c
@@ -53,7 +53,7 @@ test (void)
/* Check that the plugin didn't even try to resolve data, otherwise the mock
* file would have resulted in an error */
- g_assert (error != NULL);
+ g_assert_no_error (error);
g_object_unref (media);
media = NULL;
diff --git a/test/test_tmdb_preconditions.c b/test/test_tmdb_preconditions.c
index e869da9..904542f 100644
--- a/test/test_tmdb_preconditions.c
+++ b/test/test_tmdb_preconditions.c
@@ -51,7 +51,7 @@ test (void)
/* Check that the plugin didn't even try to resolve data, otherwise the mock
* file would have resulted in an error */
- g_assert (error == NULL);
+ g_assert_no_error (error);
g_object_unref (local_media);
@@ -76,7 +76,7 @@ test (void)
grl_source_supported_keys (source),
options,
&error);
- g_assert (error == NULL);
+ g_assert_no_error (error);
g_object_unref (media);
media = NULL;
diff --git a/test/test_tmdb_utils.c b/test/test_tmdb_utils.c
index 0918c35..20fbb88 100644
--- a/test/test_tmdb_utils.c
+++ b/test/test_tmdb_utils.c
@@ -43,10 +43,10 @@ test_setup_tmdb (void)
registry = grl_registry_get_default ();
grl_registry_add_config (registry, config, &error);
- g_assert (error == NULL);
+ g_assert_no_error (error);
grl_registry_load_plugin_by_id (registry, TMDB_PLUGIN_ID, &error);
- g_assert (error == NULL);
+ g_assert_no_error (error);
source = GRL_SOURCE (grl_registry_lookup_source (registry, TMDB_PLUGIN_ID));
g_assert (source != NULL);
@@ -67,6 +67,6 @@ test_shutdown_tmdb (void)
registry = grl_registry_get_default ();
grl_registry_unload_plugin (registry, TMDB_PLUGIN_ID, &error);
- g_assert (error == NULL);
+ g_assert_no_error (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]