diff options
author | Uli Schlachter <psychon@znc.in> | 2022-05-04 14:51:35 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2022-05-04 14:51:35 +0200 |
commit | fff49b23fca69721dca669ff4fb3289bc7c24660 (patch) | |
tree | 588134218ed9f49403c9c2946ce2bfe4a1011f62 /test/libmallocintercept.c | |
parent | 6e0f978079e2792c4f910ab8b2cc8e966350d2ab (diff) | |
download | libfaketime-fff49b23fca69721dca669ff4fb3289bc7c24660.tar.gz |
Add FAIL_PRE_INIT_CALLS define
This commit adds a new define FAIL_PRE_INIT_CALLS. When that define is
set, calls to clock_gettime() that occur before ftpl_init() was called
(due to being marked with __attribute__((constructor))) will just fail
and return -1.
After this commit, the test case added in the previous commit no longer
hangs. To make this actually work, this new define is enabled by
default.
Fixes: https://github.com/wolfcw/libfaketime/issues/365
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/libmallocintercept.c')
0 files changed, 0 insertions, 0 deletions