You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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).
6 years ago
..
CMakeLists.txt Use _FILE_OFFSET_BITS=64 when building tests on Linux 32-bit systems 6 years ago
catch.hpp Updated tests to catch v2.8.0 6 years ago
catch.license Updated tests to catch v2.8.0 6 years ago
includes.h Updated tests to catch v2.8.0 6 years ago
main.cpp Added unit tests (catch based) 10 years ago
meson.build auto create log dir 6 years ago
test_async.cpp auto create log dir 6 years ago
test_backtrace.cpp Update test_backtrace.cpp 6 years ago
test_create_dir.cpp update tests 6 years ago
test_daily_logger.cpp auto create log dir 6 years ago
test_dup_filter.cpp Fixed dup_filter test 6 years ago
test_errors.cpp auto create log dir 6 years ago
test_file_helper.cpp clang-format 6 years ago
test_file_logging.cpp auto create log dir 6 years ago
test_fmt_helper.cpp Unified usage of fmt::memory_buffer across the codebase 6 years ago
test_macros.cpp auto create log dir 6 years ago
test_misc.cpp wip backtracer 6 years ago
test_mpmc_q.cpp Update test_mpmc_q.cpp 6 years ago
test_pattern_formatter.cpp Unified usage of fmt::memory_buffer across the codebase 6 years ago
test_registry.cpp Fix some spelling errors. 6 years ago
test_sink.h Unified usage of fmt::memory_buffer across the codebase 6 years ago
test_stdout_api.cpp clang-format 6 years ago
test_systemd.cpp Updated systemd sink and tests 6 years ago
utils.cpp Update utils.cpp 6 years ago
utils.h Implemented daily sink rotation #661 6 years ago