From aff64937000fbce5c55b49bee98f0120e09e399e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 May 2026 15:16:48 -0400 Subject: Implement logging facility WARN, INFO, DEBUG * The original macros have been updated * Default log level is WARN * Log level increases per `-v` CLI argument * Tests always use DEBUG level --- tests/include/testing.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/include/testing.h b/tests/include/testing.h index e446908..728b6a6 100644 --- a/tests/include/testing.h +++ b/tests/include/testing.h @@ -214,6 +214,7 @@ inline void stasis_testing_teardown_workspace() { SYSERROR("%s", "Unable to determine current working directory"); \ exit(1); \ } \ + LOG_LEVEL = LOG_LEVEL_DEBUG; \ atexit(stasis_testing_record_result_summary); \ atexit(stasis_testing_teardown_workspace); \ stasis_testing_setup_workspace(); \ -- cgit From dfc38629724eb4f6718cb73ff3de108871e377bd Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 May 2026 15:19:44 -0400 Subject: Fix up includes --- tests/test_wheel.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_wheel.c b/tests/test_wheel.c index a1623e8..525251d 100644 --- a/tests/test_wheel.c +++ b/tests/test_wheel.c @@ -1,3 +1,4 @@ +#include "conda.h" #include "delivery.h" #include "testing.h" #include "str.h" -- cgit From 3f10306c6ac67eaccbc11b22eed26f6ce2725bfe Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 May 2026 15:31:06 -0400 Subject: Update SYS* macro calls --- tests/test_artifactory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_artifactory.c b/tests/test_artifactory.c index fadc9f1..7090fa6 100644 --- a/tests/test_artifactory.c +++ b/tests/test_artifactory.c @@ -115,7 +115,7 @@ int main(int argc, char *argv[]) { // Skip this suite if we're not configured to use it if (jfrt_auth_init(&gauth)) { - SYSERROR("%s", "Not configured to test Artifactory. Skipping."); + SYSERROR("Not configured to test Artifactory. Skipping."); guard_free(basedir); return STASIS_TEST_SUITE_SKIP; } -- cgit