Files
libfaketime/test/_use_lib_test.c
Daniel Kahn Gillmor 17522c5ba1 Overhaul testing library constructors
We want to make it easier to test a bunch of different functions that
might be invoked in constructors of other libraries.

It seems conceivable that with these snippets, we could design other
tests that also work across a wide range of intercepted functions.
2021-02-25 23:17:25 -05:00

8 lines
169 B
C

#include "snippets/include_headers.h"
extern void FUNC_NAME_as_needed();
#define where "program"
int main() {
FUNC_NAME_as_needed();
#include "snippets/FUNC_NAME.c"
}