From dbbd423b4a57267ded4fab80bdd54b5eca2cedb3 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 16 Jun 2026 13:04:23 -0400 Subject: tests: Do not print the reason message for tests that passed when a failure occurs --- tests/include/testing.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/include') diff --git a/tests/include/testing.h b/tests/include/testing.h index d11398c..393ab0b 100644 --- a/tests/include/testing.h +++ b/tests/include/testing.h @@ -76,6 +76,7 @@ inline void stasis_testing_record_result_summary() { do_message = 1; #endif strcpy(status_msg, "PASS"); + do_reason = 0; passed++; } if (do_message) { -- cgit From 1ff5ae0d28c5525c50ce0962dd20725b4e8ad7c2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 22 Jun 2026 00:20:37 -0400 Subject: Replace __FUNCTION__ with __func__ --- tests/include/testing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/include') 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 -- cgit