[glib/glib-2-56: 1/3] bookmarkfile: test that moving to the same name works



commit e46739f18cf99914d09494a3f879bb40556cec56
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]