summaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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-11-24Clean up and strengthen warning flagsDavid Robillard1-6/+14
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 Robillard3-2/+3
2024-11-24Add zix_expand_environment_strings()David Robillard3-0/+142
2024-11-24Improve test coverageDavid Robillard1-7/+6
2024-11-23Use angle brackets for library includesDavid Robillard16-70/+70
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 Robillard1-0/+2
This appeases GCC's static analyzer.
2024-11-15Update clang-format configurationDavid Robillard5-32/+16
2024-10-06Clean up test definitionsDavid Robillard1-45/+36
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-18Suppress new warnings in clang and clang-tidy 18David Robillard1-2/+3
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 Robillard2-1/+120
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-22Clean up whitespace and clang-format configurationDavid Robillard2-10/+20
2024-06-22Avoid cppcheck warning about self-assignmentDavid Robillard1-1/+0
2024-06-22Remove redundant conditionalsDavid Robillard1-1/+0
2024-06-22Add missing const qualifierDavid Robillard1-1/+0
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 Robillard1-0/+28
2024-06-22Fix whitespace and add code formatting testDavid Robillard1-1/+12
2024-06-04Fix calloc() argument orderDavid Robillard1-1/+1
2024-03-14Fix ring unit test when mlock() is unavailableDavid Robillard1-1/+1
2023-12-02Fix warnings in strict MinGW buildDavid Robillard1-2/+4
2023-11-17Test zix_copy_file() in WasmDavid Robillard1-9/+10
2023-09-23Format meson.build files with muonDavid Robillard1-2/+2
The less time wasted with manual code formatting, the better.
2023-09-22Improve test suite code coverageDavid Robillard10-524/+460
2023-09-21Use anonymous namespace in C++ testDavid Robillard1-8/+12
2023-08-23Clean up C++ test configuration and documentationDavid Robillard1-5/+1
2023-08-23Improve test coverageDavid Robillard2-5/+7
2023-05-29Fix inappropriate use of PRIuPTR for size_tDavid Robillard1-1/+1
2023-05-12Fix emscripten warningsDavid Robillard2-1/+4
2023-05-01Split up main meson fileDavid Robillard1-0/+246
2023-02-05Add missing includeDavid Robillard1-0/+1
2023-02-04Suppress/fix clang-tidy warnings on WindowsDavid Robillard6-10/+24
2023-02-04Use a more realistic scenario for file locking testDavid Robillard1-1/+1
2023-02-04Check zix_ring_mlock() return valueDavid Robillard1-1/+2
2023-02-03Suppress/fix new warnings in clang-tidy 15David Robillard2-5/+4
2022-11-25Clean up test conditionsDavid Robillard1-20/+17
2022-11-25Constrain test parameters to reasonable limitsDavid Robillard4-8/+31
2022-11-25Avoid truncating test random seedDavid Robillard1-5/+6
2022-11-25Avoid dereference after null checkDavid Robillard1-3/+4
2022-11-25Consistently check write_to_path() return value in testsDavid Robillard1-1/+1
2022-11-25Fix potential use of close() on invalid file descriptorsDavid Robillard1-1/+15
2022-11-25Remove dead codeDavid Robillard1-6/+0