xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit c6007343c5ef29d783d67cd6f2987a32ea12b5ef

Add more files to misc/flist_reload tests
Will be useful for a new test.
Author: xaizek
Author date (UTC): 2026-10-04 13:06
Committer name: xaizek
Committer date (UTC): 2026-10-18 13:19
Parent(s): 58327fd08a519ee8923e970753496472f4f4a792
Signing key: 99DC5E4DB05F6BE2
Tree: 0be693ae512de11c5142b41fac8749b9ff55b013
File Lines added Lines deleted
tests/misc/flist_reload.c 9 5
File tests/misc/flist_reload.c changed (mode: 100644) (index 01feddba0..85e48f352)
... ... SETUP()
32 32 assert_success(os_mkdir("1", 0000)); assert_success(os_mkdir("1", 0000));
33 33 assert_success(os_mkdir("2", 0000)); assert_success(os_mkdir("2", 0000));
34 34 assert_success(os_mkdir("3", 0000)); assert_success(os_mkdir("3", 0000));
35 assert_success(os_mkdir("4", 0000));
36 assert_success(os_mkdir("5", 0000));
35 37
36 38 populate_dir_list(view, 0); populate_dir_list(view, 0);
37 39 } }
 
... ... TEARDOWN()
44 46 (void)rmdir("1"); (void)rmdir("1");
45 47 (void)rmdir("2"); (void)rmdir("2");
46 48 (void)rmdir("3"); (void)rmdir("3");
49 (void)rmdir("4");
50 (void)rmdir("5");
47 51
48 52 update_string(&cfg.slow_fs_list, NULL); update_string(&cfg.slow_fs_list, NULL);
49 53 } }
 
... ... TEST(closest_match_below_is_choosen)
72 76
73 77 TEST(closest_match_above_is_choosen) TEST(closest_match_above_is_choosen)
74 78 { {
75 view->list_pos = 3;
76 (void)rmdir("3");
77 (void)rmdir("4");
79 view->list_pos = 5;
80 (void)rmdir("5");
81 (void)rmdir("6");
78 82
79 assert_string_equal("3", view->dir_entry[view->list_pos].name);
83 assert_string_equal("5", view->dir_entry[view->list_pos].name);
80 84 populate_dir_list(view, 1); populate_dir_list(view, 1);
81 assert_string_equal("2", view->dir_entry[view->list_pos].name);
85 assert_string_equal("4", view->dir_entry[view->list_pos].name);
82 86 } }
83 87
84 88 TEST(selection_is_preserved) TEST(selection_is_preserved)
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master