diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 00:20:37 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 11:57:05 -0400 |
| commit | 1ff5ae0d28c5525c50ce0962dd20725b4e8ad7c2 (patch) | |
| tree | d0591aa1030f540b202486507ab2714ba3b97959 | |
| parent | dbbd423b4a57267ded4fab80bdd54b5eca2cedb3 (diff) | |
| download | stasis-1ff5ae0d28c5525c50ce0962dd20725b4e8ad7c2.tar.gz | |
Replace __FUNCTION__ with __func__
| -rw-r--r-- | tests/include/testing.h | 2 | ||||
| -rw-r--r-- | tests/test_str.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/include/testing.h b/tests/include/testing.h index 393ab0b..a669b5d 100644 --- a/tests/include/testing.h +++ b/tests/include/testing.h @@ -11,7 +11,7 @@ #ifdef STASIS_TEST_VERBOSE #define STASIS_TEST_MSG(MSG, ...) do { \ -fprintf(stderr, "%s:%d:%s(): ", path_basename(__FILE__), __LINE__, __FUNCTION__); \ +fprintf(stderr, "%s:%d:%s(): ", path_basename(__FILE__), __LINE__, __func__); \ fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \ } while (0) #else diff --git a/tests/test_str.c b/tests/test_str.c index 09d8809..3c66386 100644 --- a/tests/test_str.c +++ b/tests/test_str.c @@ -16,7 +16,7 @@ void test_to_short_version() { for (size_t i = 0; i < sizeof(tc) / sizeof(*tc); i++) { char *result = to_short_version(tc[i].data); STASIS_ASSERT_FATAL(result != NULL, "should not be NULL"); - //printf("%s[%zu], result: %s, expected: %s\n", __FUNCTION__, i, result, tc[i].expected); + printf("%s[%zu], result: %s, expected: %s\n", __func__, i, result, tc[i].expected); STASIS_ASSERT(strcmp(result, tc[i].expected) == 0, "unexpected result"); guard_free(result); } |
