spdlog/tests
David Yip 288ea11534 Use _FILE_OFFSET_BITS=64 when building tests on Linux 32-bit systems
When cross-compiling spdlog from x86-64 to armhf, I ran spdlog-utests
via qemu-arm and noticed that the "daily_logger rotate" test was failing
because count_files always returned zero.

Investigation of count_files revealed that readdir was returning nullptr
immediately and setting errno to 75, i.e. "value too large for defined
data type".  I suspected this had something to do with some 64 vs.
32-bit thing, so I added _FILE_OFFSET_BITS=64 to the build and that
seems to have made readdir happy.

It might be safe to add _FILE_OFFSET_BITS=64 for all Linux builds, but
it only seems to be necessary for the 32-bit case (which is a pretty
small audience these days -- I'm only building for armhf to target a
Raspberry Pi 3 running Raspbian, which runs in 32-bit mode).
2019-10-28 13:23:01 -05:00
..
catch.hpp Updated tests to catch v2.8.0 2019-06-04 16:35:34 +03:00
catch.license Updated tests to catch v2.8.0 2019-06-04 16:35:34 +03:00
CMakeLists.txt Use _FILE_OFFSET_BITS=64 when building tests on Linux 32-bit systems 2019-10-28 13:23:01 -05:00
includes.h Updated tests to catch v2.8.0 2019-06-04 16:35:34 +03:00
main.cpp Added unit tests (catch based) 2015-05-15 20:30:37 +03:00
meson.build auto create log dir 2019-10-20 17:40:56 +03:00
test_async.cpp auto create log dir 2019-10-20 17:40:56 +03:00
test_backtrace.cpp Update test_backtrace.cpp 2019-08-28 15:59:58 +03:00
test_create_dir.cpp update tests 2019-10-25 16:20:24 +03:00
test_daily_logger.cpp auto create log dir 2019-10-20 17:40:56 +03:00
test_dup_filter.cpp Fixed dup_filter test 2019-06-28 00:48:30 +03:00
test_errors.cpp auto create log dir 2019-10-20 17:40:56 +03:00
test_file_helper.cpp clang-format 2019-10-25 16:05:12 +03:00
test_file_logging.cpp auto create log dir 2019-10-20 17:40:56 +03:00
test_fmt_helper.cpp Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
test_macros.cpp auto create log dir 2019-10-20 17:40:56 +03:00
test_misc.cpp wip backtracer 2019-09-05 01:25:00 +03:00
test_mpmc_q.cpp Update test_mpmc_q.cpp 2019-09-21 15:49:54 +03:00
test_pattern_formatter.cpp Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
test_registry.cpp Fix some spelling errors. 2019-10-19 09:42:38 +02:00
test_sink.h Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
test_stdout_api.cpp clang-format 2019-09-23 12:38:19 +03:00
test_systemd.cpp Updated systemd sink and tests 2019-06-28 17:29:52 +03:00
utils.cpp Update utils.cpp 2019-10-20 17:55:13 +03:00
utils.h Implemented daily sink rotation #661 2019-09-15 18:34:29 +03:00