diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2023-11-27 23:35:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 23:35:41 +0200 |
commit | 2b5f2e24527f04f4255161965ae4099192714b73 (patch) | |
tree | b8edd8485dfcd64c68b12da4221a356acd54a0fa /tests/internals/test_common.h | |
parent | 47f4cac457c3583548c0d7dba402568a1e0871b8 (diff) | |
parent | 95936b647c0283cc6ebd2b685cc5b72889cda8bd (diff) | |
download | bindfs-2b5f2e24527f04f4255161965ae4099192714b73.tar.gz |
Merge pull request #150 from hartwork/macos-ci
Cover macOS in CI + make CI use the right compiler + fix more compile warnings
Diffstat (limited to 'tests/internals/test_common.h')
-rw-r--r-- | tests/internals/test_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/internals/test_common.h b/tests/internals/test_common.h index 1688add..055fc38 100644 --- a/tests/internals/test_common.h +++ b/tests/internals/test_common.h @@ -10,8 +10,8 @@ extern int failures; #define TEST_ASSERT(expr) do { if (!(expr)) { printf("Assertion failed: %s:%d: `%s'\n", __FILE__, __LINE__, #expr); ++failures; } } while (0); #define NEAR(a, b, eps) (fabs((a) - (b)) < (eps)) -int run_suite(void (*suite)()); +int run_suite(void (*suite)(void)); -#define TEST_MAIN(suite) int main() { return run_suite(suite); } +#define TEST_MAIN(suite) int main(void) { return run_suite(suite); } #endif |