From 1e529830cb1407b13bb0dc86587ec5618a3698f6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 17 Mar 2025 00:17:06 +0200 Subject: implemented: int ak_log_write_to_file(char* message) --- src/tests/test_aklog.c | 6 ++++++ src/tests/test_aklogwrite.c | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/tests/test_aklogwrite.c (limited to 'src/tests') diff --git a/src/tests/test_aklog.c b/src/tests/test_aklog.c index a2408a9..dad065f 100644 --- a/src/tests/test_aklog.c +++ b/src/tests/test_aklog.c @@ -50,6 +50,11 @@ void test_info() ak_log_info(__func__, "test message info"); } +void test_write() +{ + ak_log_info(__func__, "test message info"); +} + int main (void) { test_follow(); @@ -62,5 +67,6 @@ int main (void) test_log_message(); test_rotate(); test_grep(); + test_write(); return 0; } diff --git a/src/tests/test_aklogwrite.c b/src/tests/test_aklogwrite.c new file mode 100644 index 0000000..a6267b0 --- /dev/null +++ b/src/tests/test_aklogwrite.c @@ -0,0 +1,13 @@ +#include + +void test_write() +{ + ak_log_info(__func__, "test message info"); +} + +int main (void) +{ + test_write(); + return 0; +} + -- cgit v1.2.3