[glib: 1/4] bookmarkfile: test that moving to the same name works
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib: 1/4] bookmarkfile: test that moving to the same name works
- Date: Tue,  6 Nov 2018 12:21:36 +0000 (UTC)
commit 94edafb5fab7fb2f59e0022dc4b55e78be191ae6
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Mon Nov 5 17:06:52 2018 -0600
    bookmarkfile: test that moving to the same name works
    
    Verify that we can move a bookmark item to the same name, but actually this
    causes a crash right now.
 glib/tests/bookmarkfile.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/glib/tests/bookmarkfile.c b/glib/tests/bookmarkfile.c
index c81561ea2..cc922c0fc 100644
--- a/glib/tests/bookmarkfile.c
+++ b/glib/tests/bookmarkfile.c
@@ -94,6 +94,13 @@ test_move_item (void)
   g_assert (res);
   g_assert_no_error (error);
 
+  res = g_bookmark_file_move_item (bookmark,
+                                   "file:///tmp/schedule.ps",
+                                   "file:///tmp/schedule.ps",
+                                   &error);
+  g_assert (res);
+  g_assert_no_error (error);
+
   res = g_bookmark_file_move_item (bookmark,
                                    "file:///no-such-file.xbel",
                                    "file:///tmp/schedule.ps",
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]