Skip to content

Commit 1cdf8ca

Browse files
ensure usage of anomaly_count
1 parent 6c8648d commit 1cdf8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/logic/testing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ void fossil_test_assert_internal(bool condition, const char *message, const char
568568
last_line == line &&
569569
last_func && strcmp(last_func, func) == 0) {
570570
anomaly_count++;
571-
printf(FOSSIL_TEST_COLOR_YELLOW "Duplicate or similar assertion detected: %s (%s:%d in %s)\n" FOSSIL_TEST_COLOR_RESET, message, file, line, func);
571+
printf(FOSSIL_TEST_COLOR_YELLOW "Duplicate or similar assertion detected: %s (%s:%d in %s) [Anomaly Count: %d]\n" FOSSIL_TEST_COLOR_RESET, message, file, line, func, anomaly_count);
572572
} else {
573573
anomaly_count = 0; // Reset anomaly count for new assertion
574574
last_message = message;

0 commit comments

Comments
 (0)