aboutsummaryrefslogtreecommitdiff
path: root/tests/tuktest.h (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-02-14Tests: tuktest.h: Treat Clang separately from GCC.Lasse Collin1-3/+3
Don't assume that Clang defines __GNUC__ as the extensions are available in clang-cl as well (and possibly in some other Clang variants?).
2024-02-14Tests: tuktest.h: Add a missing word to a comment.Lasse Collin1-2/+2
2024-02-14Tests: tuktest.h: Fix the comment about STest.Lasse Collin1-1/+2
2024-02-14Add SPDX license identifier into 0BSD source code files.Lasse Collin1-0/+2
2024-02-14Change most public domain parts to 0BSD.Lasse Collin1-3/+0
Translations and doc/xz-file-format.txt and doc/lzma-file-format.txt were not touched. COPYING.0BSD was added.
2023-01-08Tests: tuktest.h: Support tuktest_malloc(0).Lasse Collin1-2/+2
It's not needed in XZ Utils at least for now. It's good to support it still because if such use is needed later, it wouldn't be caught on GNU/Linux since malloc(0) from glibc returns non-NULL.
2022-09-09Tests: Silence warnings about unused functions from tuktest.h.Lasse Collin1-0/+10
Warnings about unused tuktest_run_test conveniently tell which test programs haven't been converted to tuktest.h yet but I silenced that warning too for now anyway. It is fine to use __attribute__((__unused__)) even when the function is actually used because the attribute only means that the function might be unused.
2022-06-16Tests: tuktest.h: Add tuktest_error_impl to help with error conditions.Lasse Collin1-40/+32
2022-06-16Tests: tuktest.h: Rename file_from_* and use tuktest_malloc there.Lasse Collin1-28/+24
2022-06-16Tests: tuktest.h: Add malloc wrapper with automatic freeing.Lasse Collin1-0/+124
2022-06-16Tests: tuktest.h: Move a function.Lasse Collin1-22/+22
2022-06-14Tests: Add file reading helpers to tuktest.h.Lasse Collin1-7/+176
2022-06-14Tests: tuktest.h: Move a printf from a macro to a helper function.Lasse Collin1-8/+18
2022-06-02Tests: Add tuktest.h mini-test-framework.Lasse Collin1-0/+752