Skip to content

Commit a401819

Browse files
committed
update CMakeLists.txt, increase default stack size
-
1 parent 99a2f0f commit a401819

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ find_package(raii QUIET)
2626
if(NOT raii_FOUND)
2727
FetchContent_Declare(raii
2828
URL https://github.com/zelang-dev/c-raii/archive/refs/heads/main.zip
29-
URL_MD5 f84394c9118f04b38854a8851542c7fc
29+
URL_MD5 151ef3f598f62c286fca0f9d2af5de8b
3030
)
3131
FetchContent_MakeAvailable(raii)
3232
endif()

src/uv_coro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,6 @@ main(int argc, char **argv) {
21662166
RAII_INFO("%s, %s\n\n", uv_coro_uname(), uv_coro_hostname());
21672167
coro_interrupt_setup((call_interrupter_t)uv_run, uv_create_loop,
21682168
uv_coro_shutdown, (call_timer_t)uv_coro_sleep, nullptr);
2169-
coro_stacksize_set(Kb(32));
2169+
coro_stacksize_set(Kb(64));
21702170
return coro_start((coro_sys_func)uv_main, argc, argv, 0);
21712171
}

tests/test-fs_watch.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ TEST(fs_watch) {
3131

3232
snprintf(filepath, SCRAPE_SIZE, "%s/file%d.txt", watch_path, 1);
3333
ASSERT_EQ(5, fs_writefile(filepath, "hello"));
34-
35-
sleepfor(10);
36-
ASSERT_EQ(0, fs_unlink(filepath));
37-
38-
sleepfor(10);
39-
ASSERT_EQ(0, fs_writefile(filepath, ""));
40-
41-
sleepfor(100);
4234
ASSERT_EQ(0, fs_unlink(filepath));
4335

4436
sleepfor(10);

0 commit comments

Comments
 (0)