Skip to content

Commit 68f74ac

Browse files
committed
...
1 parent 3d120c0 commit 68f74ac

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

core/src/tbox/inc/linux/tbox.config.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@
129129
#define TB_CONFIG_LIBM_HAVE_EXPF 1
130130

131131
// posix functions
132+
#ifdef __COSMOPOLITAN__
133+
/* #undef TB_CONFIG_POSIX_HAVE_POLL */
134+
#else
132135
#define TB_CONFIG_POSIX_HAVE_POLL 1
136+
#endif
133137
#define TB_CONFIG_POSIX_HAVE_SELECT 1
134138
#define TB_CONFIG_POSIX_HAVE_PTHREAD_MUTEX_INIT 1
135139
#define TB_CONFIG_POSIX_HAVE_PTHREAD_CREATE 1
@@ -143,7 +147,6 @@
143147
# define TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP 1
144148
#endif
145149
#define TB_CONFIG_POSIX_HAVE_SOCKET 1
146-
#define TB_CONFIG_POSIX_HAVE_POLL 1
147150
#define TB_CONFIG_POSIX_HAVE_OPENDIR 1
148151
#define TB_CONFIG_POSIX_HAVE_DLOPEN 1
149152
#define TB_CONFIG_POSIX_HAVE_OPEN 1

tests/run.lua

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if option.get("diagnosis") then table.insert(params, "-D") end
1212
function _run_test(script)
1313
assert(script:endswith("test.lua"))
1414
os.execv(os.programfile(), table.join("lua", params, path.join(os.scriptdir(), "runner.lua"), script))
15+
print("_run_test end")
1516
end
1617

1718
-- run test with the given name
@@ -47,6 +48,7 @@ function _run_test_filter(name)
4748
end
4849

4950
for _, v in ipairs(tests) do
51+
print("_run_test", v)
5052
_run_test(v)
5153
end
5254
cprint("> %d test(s) succeed", #tests)

0 commit comments

Comments
 (0)