8000 Move `test_umask` unit test file to `other` · emscripten-core/emscripten@9619d38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9619d38

Browse files
committed
Move test_umask unit test file to other
1 parent 75827a0 commit 9619d38

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

test/stat/test_umask.c renamed to test/other/test_umask.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ void create_file(const char *path, const char *buffer) {
3333
close(fd);
3434
}
3535

36-
void cleanup() {
37-
unlink("umask_test_file");
38-
}
39-
40-
void test() {
36+
int main() {
4137
// Get the default umask
4238
mode_t default_umask = get_umask();
4339
printf("default umask: %o\n", default_umask);
@@ -65,10 +61,5 @@ void test() {
6561
umask(old_umask);
6662

6763
puts("success");
68-
}
69-
70-
int main() {
71-
signal(SIGABRT, cleanup);
72-
test();
7364
return EXIT_SUCCESS;
7465
}

test/test_other.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7676,8 +7676,7 @@ def test_umask_0(self):
76767676
@crossplatform
76777677
@also_with_wasmfs
76787678
def test_umask(self):
7679-
self.set_setting("FORCE_FILESYSTEM")
7680-
self.do_runf('stat/test_umask.c', 'success')
7679+
self.do_runf('other/test_umask.c', 'success')
76817680

76827681
def test_no_missing_symbols(self):
76837682
# simple hello world should not show any missing symbols

0 commit comments

Comments
 (0)
0