MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / setup

Function setup

test/stat/test_stat.c:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39#define TEST_TIME (1ll << 34)
40void setup() {
41 struct utimbuf t = {TEST_TIME, TEST_TIME};
42
43 mkdir("folder", 0777);
44 create_file("folder/file", "abcdef", 0777);
45 symlink("file", "folder/file-link");
46
47 utime("folder/file", &t);
48 utime("folder", &t);
49}
50
51void test() {
52 int err;

Callers 1

mainFunction · 0.70

Calls 4

create_fileFunction · 0.70
mkdirFunction · 0.50
symlinkFunction · 0.50
utimeFunction · 0.50

Tested by

no test coverage detected