mirror of
https://github.com/json-c/json-c.git
synced 2026-04-09 15:29:07 +08:00
build: make strerror() override-able
If we want to override `strerror()` in libjson-c to make tests consistent across platforms, we need to do it build-wide as configure/build option. Apple linkers make it really hard to override functions at link-time, and this seems to be locked down on travis-ci.org [ for security reasons I assume ]. While I got it to work locally, it did not work when running on travis. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -52,7 +52,7 @@ EXTRA_DIST+= test2Formatted_plain.expected
|
||||
EXTRA_DIST+= test2Formatted_pretty.expected
|
||||
EXTRA_DIST+= test2Formatted_spaced.expected
|
||||
|
||||
test_util_file_SOURCES = test_util_file.c strerror_override.c
|
||||
test_util_file_SOURCES = test_util_file.c
|
||||
|
||||
testsubdir=testSubDir
|
||||
TESTS_ENVIRONMENT = top_builddir=$(top_builddir)
|
||||
|
||||
Reference in New Issue
Block a user