aboutsummaryrefslogtreecommitdiff
path: root/tests/include/testing.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-05-12 12:37:27 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-05-12 12:37:27 -0400
commit96bc699d269ff79bf31dad182f1a2b96226e8ce5 (patch)
tree9af5549537afa7e0083e1811f70371069dbde62f /tests/include/testing.h
parent9b7a784099f11fa20312a118c74d08a2c25572fc (diff)
downloadstasis-96bc699d269ff79bf31dad182f1a2b96226e8ce5.tar.gz
Replace __FUNCTION__ with __func__ (portable)
Diffstat (limited to 'tests/include/testing.h')
-rw-r--r--tests/include/testing.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/include/testing.h b/tests/include/testing.h
index 728b6a6..d11398c 100644
--- a/tests/include/testing.h
+++ b/tests/include/testing.h
@@ -224,7 +224,7 @@ inline void stasis_testing_teardown_workspace() {
#define STASIS_ASSERT(COND, REASON) do { \
stasis_testing_record_result((struct stasis_test_result_t) { \
.filename = __FILE_NAME__, \
- .funcname = __FUNCTION__, \
+ .funcname = __func__, \
.lineno = __LINE__, \
.status = (COND), \
.msg_assertion = "ASSERT(" #COND ")", \
@@ -234,7 +234,7 @@ inline void stasis_testing_teardown_workspace() {
#define STASIS_ASSERT_FATAL(COND, REASON) do { \
stasis_testing_record_result((struct stasis_test_result_t) { \
.filename = __FILE_NAME__, \
- .funcname = __FUNCTION__, \
+ .funcname = __func__, \
.lineno = __LINE__, \
.status = (COND), \
.msg_assertion = "ASSERT FATAL (" #COND ")", \
@@ -248,7 +248,7 @@ inline void stasis_testing_teardown_workspace() {
#define STASIS_SKIP_IF(COND, REASON) do { \
stasis_testing_record_result((struct stasis_test_result_t) { \
.filename = __FILE_NAME__, \
- .funcname = __FUNCTION__, \
+ .funcname = __func__, \
.lineno = __LINE__, \
.status = true, \
.skip = (COND), \