summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-12-11Support building for Windows with or without UNICODEDavid Robillard8-43/+284
2024-12-11Add option to build for older Windows versionsDavid Robillard7-36/+129
Adds configuration checks for Windows API functions, and a win_ver configuration option to change the targeted API version.
2024-12-11Fix meson file formattingDavid Robillard3-17/+20
As dictated by muon.
2024-12-11Clean up platform C flagsDavid Robillard3-3/+6
Remove platform flags from executable (test program) builds, since they shouldn't be needed there (that being the whole point of a portability library), and replace POSIX flags in WIndows with WIN32_LEAN_AND_MEAN.
2024-12-11Keep test paths within created temporary directoryDavid Robillard1-3/+9
Creates a subdirectory for testing ".." to stay within the created test directory for compatibility with sandboxing.
2024-12-11Use DeleteFile() instead of remove()David Robillard1-4/+3
2024-12-11Use CreateDirectory() instead of _mkdir()David Robillard1-4/+3
2024-12-11Fix widening conversions after arithmeticDavid Robillard4-11/+11
2024-12-02Fix benchmark scriptDavid Robillard1-3/+3
2024-12-02Fix benchmark build on WindowsDavid Robillard1-10/+6
Since these benchmarks depend on glib anyway (for comparison), portability hassles can be avoided here by just using glib for timing as well.
2024-12-02Use BenchmarkTime typedef everywhereDavid Robillard2-17/+15
This isolates the implementation details of benchmark time stamps from benchmark code.
2024-11-24Clean up and strengthen warning flagsDavid Robillard3-25/+25
Some previously global suppressions were only actually needed in benchmarks or tests, so move them there to keep the main set as small as possible.
2024-11-24Clean up includesDavid Robillard7-9/+9
2024-11-24Add zix_expand_environment_strings()David Robillard11-5/+356
2024-11-24Improve test coverageDavid Robillard1-7/+6
2024-11-23Remove duplicate branchDavid Robillard1-6/+1
2024-11-23Use angle brackets for library includesDavid Robillard56-169/+181
2024-11-15Avoid potential memory leak in testDavid Robillard1-1/+1
2024-11-15Avoid potential open file leak in testDavid Robillard1-1/+2
2024-11-15Assert that allocation and file opening succeeds in testsDavid Robillard3-0/+11
This appeases GCC's static analyzer.
2024-11-15Improve ring documentationDavid Robillard2-10/+61
2024-11-15Update clang-format configurationDavid Robillard29-372/+183
2024-10-06Clean up test definitionsDavid Robillard1-45/+36
2024-10-06Remove redundant default value for meson optionsDavid Robillard1-8/+8
2024-09-28Improve test allocator APIDavid Robillard8-18/+35
Add a simple API for setting up the failing allocator to avoid manually tinkering with its members. Conveniently, this also avoids confusing cppcheck.
2024-09-28Fix cppcheck test on older systemsDavid Robillard1-1/+1
This fixes the test on the lv2plugin/debian-x64 image in particular, which is based on Debian 11 with cppcheck 2.3.
2024-07-18Simplify logging code in tree benchmarkDavid Robillard1-19/+14
2024-07-18Add missing includeDavid Robillard1-0/+1
2024-07-18Suppress new warnings in clang and clang-tidy 18David Robillard4-4/+8
2024-07-15Add missing pure function attributesDavid Robillard1-0/+2
2024-07-15Add missing includeDavid Robillard1-0/+1
2024-06-26Improve test coverageDavid Robillard1-3/+1
This situation probably should be reported, but 100% line coverage is very convenient since it makes coverage regression more obvious. I don't think a test being skipped on an esoteric system configuration is worth losing that.
2024-06-26Add zix_string_view_equals()David Robillard5-4/+155
2024-06-23Skip socket file type test with absurdly long TMPDIRDavid Robillard1-8/+12
If TMPDIR is so long that it doesn't fit in the socket address field, then it's impossible to create a socket in the temporary directory. This is a pretty weird situation that would never happen on a normal system, so I think the test can just be skipped without the reduced coverage being a problem.
2024-06-23Update tested platform versions in READMEDavid Robillard1-3/+3
2024-06-23Fix build on POSIX systems without PATH_MAX definedDavid Robillard2-4/+7
2024-06-22Add ZIX_NODISCARD attribute to allocating, accessor, and pure APIDavid Robillard8-3/+19
2024-06-22Add ZIX_NODISCARD attributeDavid Robillard5-4/+9
2024-06-22Consistently use ZIX_MALLOC_API and ZIX_MALLOC_FUNCDavid Robillard5-7/+10
2024-06-22Clean up whitespace and clang-format configurationDavid Robillard4-14/+27
2024-06-22Avoid cppcheck warning about self-assignmentDavid Robillard2-5/+5
2024-06-22Remove redundant conditionalsDavid Robillard3-5/+5
2024-06-22Add missing const qualifierDavid Robillard2-2/+1
2024-06-22Avoid cppcheck warning for assertions with side-effects in testsDavid Robillard2-3/+7
2024-06-22Fix mismatched printf argument typeDavid Robillard2-3/+2
2024-06-22Add cppcheck testDavid Robillard2-0/+29
2024-06-22Fix whitespace and add code formatting testDavid Robillard3-5/+16
2024-06-04Fix calloc() argument orderDavid Robillard1-1/+1
2024-06-04Suppress new warnings in clang-tidy 17David Robillard1-0/+2
2024-06-04Add missing includeDavid Robillard1-0/+1