Index: uspace/app/nav/test/panel.c
===================================================================
--- uspace/app/nav/test/panel.c	(revision 9ee55cdc2ae2e29ee5db013e5dedbe26adba492d)
+++ uspace/app/nav/test/panel.c	(revision 54ddb59be14baa078affd298a0ddbf53724d7b29)
@@ -1,4 +1,4 @@
 /*
- * Copyright (c) 2021 Jiri Svoboda
+ * Copyright (c) 2022 Jiri Svoboda
  * All rights reserved.
  *
@@ -81,41 +81,4 @@
 }
 
-/** Test panel_entry_paint() */
-PCUT_TEST(entry_paint)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-	attr.name = "a";
-	attr.size = 1;
-
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_entry_paint(panel_first(panel), 0);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
 /** Test panel_paint() */
 PCUT_TEST(paint)
@@ -205,91 +168,4 @@
 PCUT_TEST(pos_event)
 {
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	ui_evclaim_t claimed;
-	pos_event_t event;
-	gfx_rect_t rect;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 10;
-	panel_set_rect(panel, &rect);
-
-	panel_entry_attr_init(&attr);
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel->cursor = panel_first(panel);
-	panel->cursor_idx = 0;
-	panel->page = panel_first(panel);
-	panel->page_idx = 0;
-
-	event.pos_id = 0;
-	event.type = POS_PRESS;
-	event.btn_num = 1;
-
-	/* Clicking on the middle entry should select it */
-	event.hpos = 1;
-	event.vpos = 2;
-
-	claimed = panel_pos_event(panel, &event);
-	PCUT_ASSERT_EQUALS(ui_claimed, claimed);
-
-	PCUT_ASSERT_NOT_NULL(panel->cursor);
-	PCUT_ASSERT_STR_EQUALS("b", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor->size);
-
-	/* Clicking below the last entry should select it */
-	event.hpos = 1;
-	event.vpos = 4;
-	claimed = panel_pos_event(panel, &event);
-	PCUT_ASSERT_EQUALS(ui_claimed, claimed);
-
-	PCUT_ASSERT_NOT_NULL(panel->cursor);
-	PCUT_ASSERT_STR_EQUALS("c", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
-
-	/* Clicking on the top edge should do a page-up */
-	event.hpos = 1;
-	event.vpos = 0;
-	claimed = panel_pos_event(panel, &event);
-	PCUT_ASSERT_EQUALS(ui_claimed, claimed);
-
-	PCUT_ASSERT_NOT_NULL(panel->cursor);
-	PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
 }
 
@@ -318,27 +194,4 @@
 }
 
-/** panel_page_size() returns correct size */
-PCUT_TEST(page_size)
-{
-	panel_t *panel;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 10;
-	rect.p0.y = 20;
-	rect.p1.x = 30;
-	rect.p1.y = 40;
-
-	panel_set_rect(panel, &rect);
-
-	/* NOTE If page size changes, we have problems elsewhere in the tests */
-	PCUT_ASSERT_INT_EQUALS(18, panel_page_size(panel));
-
-	panel_destroy(panel);
-}
-
 /** panel_is_active() returns panel activity state */
 PCUT_TEST(is_active)
@@ -419,1161 +272,4 @@
 }
 
-/** panel_entry_append() appends new entry */
-PCUT_TEST(entry_append)
-{
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_INT_EQUALS(1, list_count(&panel->entries));
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_INT_EQUALS(2, list_count(&panel->entries));
-
-	panel_destroy(panel);
-}
-
-/** panel_entry_delete() deletes entry */
-PCUT_TEST(entry_delete)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_INT_EQUALS(2, list_count(&panel->entries));
-
-	entry = panel_first(panel);
-	panel_entry_delete(entry);
-
-	PCUT_ASSERT_INT_EQUALS(1, list_count(&panel->entries));
-
-	entry = panel_first(panel);
-	panel_entry_delete(entry);
-
-	PCUT_ASSERT_INT_EQUALS(0, list_count(&panel->entries));
-
-	panel_destroy(panel);
-}
-
-/** panel_clear_entries() removes all entries from panel */
-PCUT_TEST(clear_entries)
-{
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "a";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_INT_EQUALS(2, list_count(&panel->entries));
-
-	panel_clear_entries(panel);
-	PCUT_ASSERT_INT_EQUALS(0, list_count(&panel->entries));
-
-	panel_destroy(panel);
-}
-
-/** panel_read_dir() reads the contents of a directory */
-PCUT_TEST(read_dir)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	char buf[L_tmpnam];
-	char *fname;
-	char *p;
-	errno_t rc;
-	FILE *f;
-	int rv;
-
-	/* Create name for temporary directory */
-	p = tmpnam(buf);
-	PCUT_ASSERT_NOT_NULL(p);
-
-	/* Create temporary directory */
-	rc = vfs_link_path(p, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rv = asprintf(&fname, "%s/%s", p, "a");
-	PCUT_ASSERT_TRUE(rv >= 0);
-
-	f = fopen(fname, "wb");
-	PCUT_ASSERT_NOT_NULL(f);
-
-	rv = fprintf(f, "X");
-	PCUT_ASSERT_TRUE(rv >= 0);
-
-	rv = fclose(f);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_read_dir(panel, p);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_INT_EQUALS(2, list_count(&panel->entries));
-
-	entry = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("..", entry->name);
-
-	entry = panel_next(entry);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, entry->size);
-
-	panel_destroy(panel);
-
-	rv = remove(fname);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	rv = remove(p);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	free(fname);
-}
-
-/** When moving to parent directory from a subdir, we seek to the
- * coresponding entry
- */
-PCUT_TEST(read_dir_up)
-{
-	panel_t *panel;
-	char buf[L_tmpnam];
-	char *subdir_a;
-	char *subdir_b;
-	char *subdir_c;
-	char *p;
-	errno_t rc;
-	int rv;
-
-	/* Create name for temporary directory */
-	p = tmpnam(buf);
-	PCUT_ASSERT_NOT_NULL(p);
-
-	/* Create temporary directory */
-	rc = vfs_link_path(p, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Create some subdirectories */
-
-	rv = asprintf(&subdir_a, "%s/%s", p, "a");
-	PCUT_ASSERT_TRUE(rv >= 0);
-	rc = vfs_link_path(subdir_a, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rv = asprintf(&subdir_b, "%s/%s", p, "b");
-	PCUT_ASSERT_TRUE(rv >= 0);
-	rc = vfs_link_path(subdir_b, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rv = asprintf(&subdir_c, "%s/%s", p, "c");
-	PCUT_ASSERT_TRUE(rv >= 0);
-	rc = vfs_link_path(subdir_c, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Start in subdirectory "b" */
-	rc = panel_read_dir(panel, subdir_b);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Now go up (into p) */
-
-	rc = panel_read_dir(panel, "..");
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_NOT_NULL(panel->cursor);
-	PCUT_ASSERT_STR_EQUALS("b", panel->cursor->name);
-
-	panel_destroy(panel);
-
-	rv = remove(subdir_a);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	rv = remove(subdir_b);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	rv = remove(subdir_c);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	rv = remove(p);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	free(subdir_a);
-	free(subdir_b);
-	free(subdir_c);
-}
-
-/** panel_sort() sorts panel entries */
-PCUT_TEST(sort)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "b";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "a";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_sort(panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	entry = panel_first(panel);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_INT_EQUALS(2, entry->size);
-
-	entry = panel_next(entry);
-	PCUT_ASSERT_STR_EQUALS("b", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, entry->size);
-
-	entry = panel_next(entry);
-	PCUT_ASSERT_STR_EQUALS("c", entry->name);
-	PCUT_ASSERT_INT_EQUALS(3, entry->size);
-
-	panel_destroy(panel);
-}
-
-/** panel_entry_ptr_cmp compares two indirectly referenced entries */
-PCUT_TEST(entry_ptr_cmp)
-{
-	panel_t *panel;
-	panel_entry_t *a, *b;
-	panel_entry_attr_t attr;
-	int rel;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	a = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(a);
-	b = panel_next(a);
-	PCUT_ASSERT_NOT_NULL(b);
-
-	/* a < b */
-	rel = panel_entry_ptr_cmp(&a, &b);
-	PCUT_ASSERT_TRUE(rel < 0);
-
-	/* b > a */
-	rel = panel_entry_ptr_cmp(&b, &a);
-	PCUT_ASSERT_TRUE(rel > 0);
-
-	/* a == a */
-	rel = panel_entry_ptr_cmp(&a, &a);
-	PCUT_ASSERT_INT_EQUALS(0, rel);
-
-	panel_destroy(panel);
-}
-
-/** panel_first() returns valid entry or @c NULL as appropriate */
-PCUT_TEST(first)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	entry = panel_first(panel);
-	PCUT_ASSERT_NULL(entry);
-
-	/* Add one entry */
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Now try getting it */
-	entry = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, entry->size);
-
-	/* Add another entry */
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* We should still get the first entry */
-	entry = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, entry->size);
-
-	panel_destroy(panel);
-}
-
-/** panel_last() returns valid entry or @c NULL as appropriate */
-PCUT_TEST(last)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	entry = panel_last(panel);
-	PCUT_ASSERT_NULL(entry);
-
-	/* Add one entry */
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Now try getting it */
-	entry = panel_last(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, entry->size);
-
-	/* Add another entry */
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* We should get new entry now */
-	entry = panel_last(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-	attr.name = "b";
-	attr.size = 2;
-	PCUT_ASSERT_STR_EQUALS("b", entry->name);
-	PCUT_ASSERT_INT_EQUALS(2, entry->size);
-
-	panel_destroy(panel);
-}
-
-/** panel_next() returns the next entry or @c NULL as appropriate */
-PCUT_TEST(next)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	/* Add one entry */
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Now try getting its successor */
-	entry = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-
-	entry = panel_next(entry);
-	PCUT_ASSERT_NULL(entry);
-
-	/* Add another entry */
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Try getting the successor of first entry again */
-	entry = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-
-	entry = panel_next(entry);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("b", entry->name);
-	PCUT_ASSERT_INT_EQUALS(2, entry->size);
-
-	panel_destroy(panel);
-}
-
-/** panel_prev() returns the previous entry or @c NULL as appropriate */
-PCUT_TEST(prev)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	/* Add one entry */
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Now try getting its predecessor */
-	entry = panel_last(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-
-	entry = panel_prev(entry);
-	PCUT_ASSERT_NULL(entry);
-
-	/* Add another entry */
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Try getting the predecessor of the new entry */
-	entry = panel_last(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-
-	entry = panel_prev(entry);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, entry->size);
-
-	panel_destroy(panel);
-}
-
-/** panel_page_nth_entry() .. */
-PCUT_TEST(page_nth_entry)
-{
-	panel_t *panel;
-	panel_entry_t *entry;
-	panel_entry_attr_t attr;
-	size_t idx;
-	errno_t rc;
-
-	rc = panel_create(NULL, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel_entry_attr_init(&attr);
-
-	/* Add some entries */
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	panel->page = panel_next(panel_first(panel));
-	panel->page_idx = 1;
-
-	entry = panel_page_nth_entry(panel, 0, &idx);
-	PCUT_ASSERT_STR_EQUALS("b", entry->name);
-	PCUT_ASSERT_INT_EQUALS(1, idx);
-
-	entry = panel_page_nth_entry(panel, 1, &idx);
-	PCUT_ASSERT_STR_EQUALS("c", entry->name);
-	PCUT_ASSERT_INT_EQUALS(2, idx);
-
-	entry = panel_page_nth_entry(panel, 2, &idx);
-	PCUT_ASSERT_STR_EQUALS("c", entry->name);
-	PCUT_ASSERT_INT_EQUALS(2, idx);
-
-	entry = panel_page_nth_entry(panel, 3, &idx);
-	PCUT_ASSERT_STR_EQUALS("c", entry->name);
-	PCUT_ASSERT_INT_EQUALS(2, idx);
-
-	panel_destroy(panel);
-}
-
-/** panel_cursor_move() ... */
-PCUT_TEST(cursor_move)
-{
-}
-
-/** panel_cursor_up() moves cursor one entry up */
-PCUT_TEST(cursor_up)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 4; // XXX Assuming this makes page size 2
-	panel_set_rect(panel, &rect);
-
-	PCUT_ASSERT_INT_EQUALS(2, panel_page_size(panel));
-
-	/* Add tree entries (more than page size, which is 2) */
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Cursor to the last entry and page start to the next-to-last entry */
-	panel->cursor = panel_last(panel);
-	panel->cursor_idx = 2;
-	panel->page = panel_prev(panel->cursor);
-	panel->page_idx = 1;
-
-	/* Move cursor one entry up */
-	panel_cursor_up(panel);
-
-	/* Cursor and page start should now both be at the second entry */
-	PCUT_ASSERT_STR_EQUALS("b", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel->cursor, panel->page);
-	PCUT_ASSERT_INT_EQUALS(1, panel->page_idx);
-
-	/* Move cursor one entry up. This should scroll up. */
-	panel_cursor_up(panel);
-
-	/* Cursor and page start should now both be at the first entry */
-	PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(0, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel->cursor, panel->page);
-	PCUT_ASSERT_INT_EQUALS(0, panel->page_idx);
-
-	/* Moving further up should do nothing (we are at the top). */
-	panel_cursor_up(panel);
-
-	/* Cursor and page start should still be at the first entry */
-	PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(0, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel->cursor, panel->page);
-	PCUT_ASSERT_INT_EQUALS(0, panel->page_idx);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
-/** panel_cursor_down() moves cursor one entry down */
-PCUT_TEST(cursor_down)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 4; // XXX Assuming this makes page size 2
-	panel_set_rect(panel, &rect);
-
-	PCUT_ASSERT_INT_EQUALS(2, panel_page_size(panel));
-
-	/* Add tree entries (more than page size, which is 2) */
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Cursor and page start to the first entry */
-	panel->cursor = panel_first(panel);
-	panel->cursor_idx = 0;
-	panel->page = panel->cursor;
-	panel->page_idx = 0;
-
-	/* Move cursor one entry down */
-	panel_cursor_down(panel);
-
-	/* Cursor should now be at the second entry, page stays the same */
-	PCUT_ASSERT_STR_EQUALS("b", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel_first(panel), panel->page);
-	PCUT_ASSERT_INT_EQUALS(0, panel->page_idx);
-
-	/* Move cursor one entry down. This should scroll down. */
-	panel_cursor_down(panel);
-
-	/* Cursor should now be at the third and page at the second entry. */
-	PCUT_ASSERT_STR_EQUALS("c", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("b", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(1, panel->page_idx);
-
-	/* Moving further down should do nothing (we are at the bottom). */
-	panel_cursor_down(panel);
-
-	/* Cursor should still be at the third and page at the second entry. */
-	PCUT_ASSERT_STR_EQUALS("c", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("b", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(1, panel->page_idx);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
-/** panel_cursor_top() moves cursor to the first entry */
-PCUT_TEST(cursor_top)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 4; // XXX Assuming this makes page size 2
-	panel_set_rect(panel, &rect);
-
-	PCUT_ASSERT_INT_EQUALS(2, panel_page_size(panel));
-
-	/* Add tree entries (more than page size, which is 2) */
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Cursor to the last entry and page start to the next-to-last entry */
-	panel->cursor = panel_last(panel);
-	panel->cursor_idx = 2;
-	panel->page = panel_prev(panel->cursor);
-	panel->page_idx = 1;
-
-	/* Move cursor to the top. This should scroll up. */
-	panel_cursor_top(panel);
-
-	/* Cursor and page start should now both be at the first entry */
-	PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(0, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel->cursor, panel->page);
-	PCUT_ASSERT_INT_EQUALS(0, panel->page_idx);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
-/** panel_cursor_bottom() moves cursor to the last entry */
-PCUT_TEST(cursor_bottom)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 4; // XXX Assuming this makes page size 2
-	panel_set_rect(panel, &rect);
-
-	PCUT_ASSERT_INT_EQUALS(2, panel_page_size(panel));
-
-	/* Add tree entries (more than page size, which is 2) */
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Cursor and page start to the first entry */
-	panel->cursor = panel_first(panel);
-	panel->cursor_idx = 0;
-	panel->page = panel->cursor;
-	panel->page_idx = 0;
-
-	/* Move cursor to the bottom. This should scroll down. */
-	panel_cursor_bottom(panel);
-
-	/* Cursor should now be at the third and page at the second entry. */
-	PCUT_ASSERT_STR_EQUALS("c", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("b", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(1, panel->page_idx);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
-/** panel_page_up() moves one page up */
-PCUT_TEST(page_up)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 4; // XXX Assuming this makes page size 2
-	panel_set_rect(panel, &rect);
-
-	PCUT_ASSERT_INT_EQUALS(2, panel_page_size(panel));
-
-	/* Add five entries (2 full pages, one partial) */
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "d";
-	attr.size = 4;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "e";
-	attr.size = 5;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Cursor to the last entry and page start to the next-to-last entry */
-	panel->cursor = panel_last(panel);
-	panel->cursor_idx = 4;
-	panel->page = panel_prev(panel->cursor);
-	panel->page_idx = 3;
-
-	/* Move one page up */
-	panel_page_up(panel);
-
-	/* Page should now start at second entry and cursor at third */
-	PCUT_ASSERT_STR_EQUALS("c", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("b", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(2, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(1, panel->page_idx);
-
-	/* Move one page up again. */
-	panel_page_up(panel);
-
-	/* Cursor and page start should now both be at the first entry */
-	PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(0, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel->cursor, panel->page);
-	PCUT_ASSERT_INT_EQUALS(0, panel->page_idx);
-
-	/* Moving further up should do nothing (we are at the top). */
-	panel_page_up(panel);
-
-	/* Cursor and page start should still be at the first entry */
-	PCUT_ASSERT_STR_EQUALS("a", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(1, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(0, panel->cursor_idx);
-	PCUT_ASSERT_EQUALS(panel->cursor, panel->page);
-	PCUT_ASSERT_INT_EQUALS(0, panel->page_idx);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
-/** panel_page_up() moves one page down */
-PCUT_TEST(page_down)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_attr_t attr;
-	gfx_rect_t rect;
-	errno_t rc;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rect.p0.x = 0;
-	rect.p0.y = 0;
-	rect.p1.x = 10;
-	rect.p1.y = 4; // XXX Assuming this makes page size 2
-	panel_set_rect(panel, &rect);
-
-	PCUT_ASSERT_INT_EQUALS(2, panel_page_size(panel));
-
-	/* Add five entries (2 full pages, one partial) */
-
-	panel_entry_attr_init(&attr);
-
-	attr.name = "a";
-	attr.size = 1;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "b";
-	attr.size = 2;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "c";
-	attr.size = 3;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "d";
-	attr.size = 4;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	attr.name = "e";
-	attr.size = 5;
-	rc = panel_entry_append(panel, &attr);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Cursor and page to the first entry */
-	panel->cursor = panel_first(panel);
-	panel->cursor_idx = 0;
-	panel->page = panel->cursor;
-	panel->page_idx = 0;
-
-	/* Move one page down */
-	panel_page_down(panel);
-
-	/* Page and cursor should point to the third entry */
-	PCUT_ASSERT_STR_EQUALS("c", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(2, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("c", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(3, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(2, panel->page_idx);
-
-	/* Move one page down again. */
-	panel_page_down(panel);
-
-	/* Cursor should point to last and page to next-to-last entry */
-	PCUT_ASSERT_STR_EQUALS("e", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(5, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(4, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("d", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(4, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(3, panel->page_idx);
-
-	/* Moving further down should do nothing (we are at the bottom). */
-	panel_page_down(panel);
-
-	/* Cursor should still point to last and page to next-to-last entry */
-	PCUT_ASSERT_STR_EQUALS("e", panel->cursor->name);
-	PCUT_ASSERT_INT_EQUALS(5, panel->cursor->size);
-	PCUT_ASSERT_INT_EQUALS(4, panel->cursor_idx);
-	PCUT_ASSERT_STR_EQUALS("d", panel->page->name);
-	PCUT_ASSERT_INT_EQUALS(4, panel->page->size);
-	PCUT_ASSERT_INT_EQUALS(3, panel->page_idx);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-}
-
-/** panel_open() opens a directory entry */
-PCUT_TEST(open)
-{
-	ui_t *ui;
-	ui_window_t *window;
-	ui_wnd_params_t params;
-	panel_t *panel;
-	panel_entry_t *entry;
-	char buf[L_tmpnam];
-	char *sdname;
-	char *p;
-	errno_t rc;
-	int rv;
-
-	rc = ui_create_disp(NULL, &ui);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	ui_wnd_params_init(&params);
-	params.caption = "Test";
-
-	rc = ui_window_create(ui, &params, &window);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	/* Create name for temporary directory */
-	p = tmpnam(buf);
-	PCUT_ASSERT_NOT_NULL(p);
-
-	/* Create temporary directory */
-	rc = vfs_link_path(p, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rv = asprintf(&sdname, "%s/%s", p, "a");
-	PCUT_ASSERT_TRUE(rv >= 0);
-
-	/* Create sub-directory */
-	rc = vfs_link_path(sdname, KIND_DIRECTORY, NULL);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_create(window, true, &panel);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	rc = panel_read_dir(panel, p);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-	PCUT_ASSERT_STR_EQUALS(p, panel->dir);
-
-	PCUT_ASSERT_INT_EQUALS(2, list_count(&panel->entries));
-
-	entry = panel_first(panel);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("..", entry->name);
-
-	entry = panel_next(entry);
-	PCUT_ASSERT_NOT_NULL(entry);
-	PCUT_ASSERT_STR_EQUALS("a", entry->name);
-	PCUT_ASSERT_TRUE(entry->isdir);
-
-	rc = panel_open(panel, entry);
-	PCUT_ASSERT_ERRNO_VAL(EOK, rc);
-
-	PCUT_ASSERT_STR_EQUALS(sdname, panel->dir);
-
-	panel_destroy(panel);
-	ui_window_destroy(window);
-	ui_destroy(ui);
-
-	rv = remove(sdname);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	rv = remove(p);
-	PCUT_ASSERT_INT_EQUALS(0, rv);
-
-	free(sdname);
-}
-
 /** panel_activate_req() sends activation request */
 PCUT_TEST(activate_req)
