ctest
ctest copied to clipboard
ctest is a unit test framework for software written in C.
If I define fixture with my own static variables, and use CTEST_SETUP / CTEST_TEARDOWN without CTEST_DATA, it will report conflict in expansion of macro 'CTEST_SETUP' in ctest.h:140:17: note: in expansion...
I added string compare test utility ASSERT_STRSTR and ASSERT_NOT_STRSTR. I found it really usefull for testing json string output. Enjoy!
Hi, first, thank you for this project is really nice!!!! I have a couple of questions: 1) there's a "nice way" without changing the ctest.h header to redefine the vsnprintf...
This commit is a continuation of commit 2230e3e ("ignore sanitizer"), which added the "no_sanitize_address" attribute to ctest_main to prevent ASan from flagging reads while discovering the registered test structs. Clang's...
Hello, This PR adds another assertion, same as `ASSERT_STR` but accepts and compares `wchar_t *` types instead of `char *`.
MSVC support
The changes here are based in part on #29 for which I thank @uael. This is a minimal set of changes needed to make use of ctest with recent versions...
In certain test-cases it's necessary to test for an exact float-point value. `ASSERT_EQUAL` is not suitable for this because it assumes arguments to be integers. `ASSERT_FLT_NEAR` is not suitable either,...
This fixes the detection of test-functions (makes it more robust). The strides are in general not constant between each ctest struct stored in memory, so we need to search specifically...
Hello. Can't manage to make it build since a mac os X update makefile ``` cmake_minimum_required(VERSION 3.14) set(BIN athena_core) project(athena_core C) enable_testing() set(TEST_SOURCES tests/test_core.c) add_executable(athena_core_test ${TEST_SOURCES}) add_test(NAME athena_core_test COMMAND athena_core_test)...