summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoaquim Rocha <jrocha@endlessm.com>2016-10-17 13:59:39 +0200
committerJoaquim Rocha <jrocha@endlessm.com>2016-10-17 13:59:39 +0200
commit3631e32fa7c667257e27380c095a0a0410b1b8f3 (patch)
tree8026457443dccab6593668c2ac35419d073f0a2f
parenteb05100b24706a3f060bccb89c4db19722c90c03 (diff)
downloadappstream-glib-wip/jrocha/attribute-changes.tar.gz
Update the monitor{file} testswip/jrocha/attribute-changes
This change is necessary now that a changed signal is emitted on more file changes than before.
-rw-r--r--libappstream-glib/as-self-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c
index 835ebd9..d4dde24 100644
--- a/libappstream-glib/as-self-test.c
+++ b/libappstream-glib/as-self-test.c
@@ -187,7 +187,7 @@ as_test_monitor_dir_func (void)
as_test_loop_quit ();
g_assert_cmpint (cnt_added, ==, 0);
g_assert_cmpint (cnt_removed, ==, 0);
- g_assert_cmpint (cnt_changed, ==, 0);
+ g_assert_cmpint (cnt_changed, ==, 1);
/* delete it */
cnt_added = cnt_removed = cnt_changed = 0;
@@ -272,7 +272,7 @@ as_test_monitor_file_func (void)
as_test_loop_quit ();
g_assert_cmpint (cnt_added, ==, 1);
g_assert_cmpint (cnt_removed, ==, 0);
- g_assert_cmpint (cnt_changed, ==, 0);
+ g_assert_cmpint (cnt_changed, ==, 1);
/* just change the mtime */
cnt_added = cnt_removed = cnt_changed = 0;
@@ -283,7 +283,7 @@ as_test_monitor_file_func (void)
as_test_loop_quit ();
g_assert_cmpint (cnt_added, ==, 0);
g_assert_cmpint (cnt_removed, ==, 0);
- g_assert_cmpint (cnt_changed, ==, 0);
+ g_assert_cmpint (cnt_changed, ==, 1);
/* delete it */
cnt_added = cnt_removed = cnt_changed = 0;