aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/include/testing.h2
-rw-r--r--tests/test_str.c2
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);
}