summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorIvan Frade <ivan.frade@gmail.com>2011-10-27 12:27:21 +0300
committerIvan Frade <ivan.frade@gmail.com>2011-10-28 14:42:08 +0300
commitbf090287e3781fca863e40b550e80e86c0154fbd (patch)
treee8401eb13cbd677f98425b9a0741b5f0d435e5de /tests/common
parent78ca6c2e8de318c4c48c717fe0dc25d28e749505 (diff)
downloadtracker-bf090287e3781fca863e40b550e80e86c0154fbd.tar.gz
tests: Use g_assert_cmpstr instead of our own implementation
tracker_test_helpers_cmpstr_equals was written when g_assert_cmpstr didn't exist but both had the same intention.
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/tracker-test-helpers.c22
-rw-r--r--tests/common/tracker-test-helpers.h2
2 files changed, 0 insertions, 24 deletions
diff --git a/tests/common/tracker-test-helpers.c b/tests/common/tracker-test-helpers.c
index 65f7cf265..793d3a4ea 100644
--- a/tests/common/tracker-test-helpers.c
+++ b/tests/common/tracker-test-helpers.c
@@ -20,28 +20,6 @@
static gchar *nonutf8_str = NULL;
-gboolean
-tracker_test_helpers_cmpstr_equal (const gchar *obtained,
- const gchar *expected)
-{
- gboolean result;
-
- if (expected == obtained) {
- return TRUE;
- }
-
- if (expected && obtained) {
- result = !g_utf8_collate (expected, obtained);
- if (!result) {
- g_warning ("Expected %s - obtained %s", expected, obtained);
- }
- return result;
- } else {
- g_warning ("\n Only one of the strings is NULL\n");
- return FALSE;
- }
-}
-
const gchar *
tracker_test_helpers_get_nonutf8 (void)
{
diff --git a/tests/common/tracker-test-helpers.h b/tests/common/tracker-test-helpers.h
index 09698e387..2b7b83a6e 100644
--- a/tests/common/tracker-test-helpers.h
+++ b/tests/common/tracker-test-helpers.h
@@ -23,8 +23,6 @@
G_BEGIN_DECLS
-gboolean tracker_test_helpers_cmpstr_equal (const gchar *obtained,
- const gchar *expected);
const gchar *tracker_test_helpers_get_nonutf8 (void);
void tracker_test_helpers_free_nonutf8 (void);