[tracker/tracker-0.10] tests: Fix tracker-monitor test to reflect changes in 35bdcb09



commit e1179db3f0a3f8c42d1b65817b5d4d9f217059d8
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Jun 16 16:57:08 2011 +0200

    tests: Fix tracker-monitor test to reflect changes in 35bdcb09
    
    CREATE+MOVE != CREATE from now on, but UPDATE. Reflect this in the
    unit test

 tests/libtracker-miner/tracker-monitor-test.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/libtracker-miner/tracker-monitor-test.c b/tests/libtracker-miner/tracker-monitor-test.c
index 26c2447..c3ff7f2 100644
--- a/tests/libtracker-miner/tracker-monitor-test.c
+++ b/tests/libtracker-miner/tracker-monitor-test.c
@@ -975,11 +975,11 @@ test_monitor_file_event_blacklisting_created_moved (TrackerMonitorTestFixture *f
 	/* Get events in the dest file */
 	file_events = GPOINTER_TO_UINT (g_hash_table_lookup (fixture->events, dest_file));
 
-	/* Fail if we didn't get the CREATED signal */
-	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_CREATED), >, 0);
+	/* Fail if we didn't get the UPDATED signal */
+	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_UPDATED), >, 0);
 
 	/* Fail if we got a CREATE, UPDATE, DELETE or MOVE signal */
-	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_UPDATED), ==, 0);
+	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_CREATED), ==, 0);
 	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_ATTRIBUTE_UPDATED), ==, 0);
 	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_MOVED_FROM), ==, 0);
 	g_assert_cmpuint ((file_events & MONITOR_SIGNAL_ITEM_MOVED_TO), ==, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]