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 acd883a9148e58927b6cffea598ba21df3c07d69

Prevent crashes of tests on Windows
Author: xaizek
Author date (UTC): 2016-01-01 13:53
Committer name: xaizek
Committer date (UTC): 2016-01-01 13:53
Parent(s): 63217bed74a470e34007c0bbe38afa1e320ea112
Signing key:
Tree: 52ad4e2e61af38cde2cf6b44c7d49ae98f54071f
File Lines added Lines deleted
tests/misc/dcache.c 7 0
tests/misc/sort.c 4 0
File tests/misc/dcache.c changed (mode: 100644) (index f1c12a562..0807a37c4)
6 6
7 7 #include "../../src/cfg/config.h" #include "../../src/cfg/config.h"
8 8 #include "../../src/ui/ui.h" #include "../../src/ui/ui.h"
9 #include "../../src/utils/str.h"
9 10 #include "../../src/status.h" #include "../../src/status.h"
10 11
11 12 #include "utils.h" #include "utils.h"
12 13
13 14 SETUP() SETUP()
14 15 { {
16 update_string(&cfg.shell, "");
15 17 assert_success(init_status(&cfg)); assert_success(init_status(&cfg));
16 18 } }
17 19
20 TEARDOWN()
21 {
22 update_string(&cfg.shell, NULL);
23 }
24
18 25 TEST(size_does_not_clobber_nitems) TEST(size_does_not_clobber_nitems)
19 26 { {
20 27 uint64_t size; uint64_t size;
File tests/misc/sort.c changed (mode: 100644) (index 507bc0f72..dbae10897)
... ... SETUP()
44 44 rwin.dir_entry[0].type = FT_REG; rwin.dir_entry[0].type = FT_REG;
45 45 rwin.dir_entry[1].name = strdup("АААААААААА"); rwin.dir_entry[1].name = strdup("АААААААААА");
46 46 rwin.dir_entry[1].type = FT_REG; rwin.dir_entry[1].type = FT_REG;
47
48 update_string(&cfg.shell, "");
47 49 } }
48 50
49 51 TEARDOWN() TEARDOWN()
50 52 { {
53 update_string(&cfg.shell, NULL);
54
51 55 view_teardown(&lwin); view_teardown(&lwin);
52 56 view_teardown(&rwin); view_teardown(&rwin);
53 57 } }
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