mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 20:22:11 +01:00
tests: Add PathBuf.new_from_path() coverage
This commit is contained in:
parent
d0ee88078b
commit
7e62d01053
@ -67,6 +67,12 @@ test_pathbuf_init (void)
|
||||
g_assert_null (g_path_buf_to_path (allocated));
|
||||
g_assert_null (g_path_buf_free_to_path (allocated));
|
||||
|
||||
allocated = g_path_buf_new_from_path ("/bin/sh");
|
||||
g_path_buf_init_from_path (&cmp, "/bin/sh");
|
||||
g_assert_path_buf_equal (allocated, &cmp);
|
||||
g_path_buf_clear (&cmp);
|
||||
g_path_buf_free (allocated);
|
||||
|
||||
g_path_buf_init_from_path (&buf, "/usr/bin/bash");
|
||||
allocated = g_path_buf_copy (&buf);
|
||||
g_assert_path_buf_equal (allocated, allocated);
|
||||
|
Loading…
x
Reference in New Issue
Block a user