aboutsummaryrefslogtreecommitdiff
path: root/c_implementation
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-04-24 01:50:53 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-04-24 01:50:53 +0300
commit07d2b7e430e17cceaab2715a816e4182f299f441 (patch)
treef5a47196a27dde7523f1d882bd6dc0c738bbc1d4 /c_implementation
parente875d8cf70b74f6a5ce8bbc80e1ed67881e193d8 (diff)
downloadarching-kaos-tools-07d2b7e430e17cceaab2715a816e4182f299f441.tar.gz
arching-kaos-tools-07d2b7e430e17cceaab2715a816e4182f299f441.tar.bz2
arching-kaos-tools-07d2b7e430e17cceaab2715a816e4182f299f441.zip
[libaklog] tests updates
Diffstat (limited to 'c_implementation')
-rw-r--r--c_implementation/tests/test_aklog.c36
-rw-r--r--c_implementation/tests/test_aklogwrite.c2
2 files changed, 22 insertions, 16 deletions
diff --git a/c_implementation/tests/test_aklog.c b/c_implementation/tests/test_aklog.c
index 7e3f6a3..fba4ad2 100644
--- a/c_implementation/tests/test_aklog.c
+++ b/c_implementation/tests/test_aklog.c
@@ -1,56 +1,61 @@
#include <libaklog.h>
-void test_message_output()
+static void test_message_output()
{
ak_log_print_log_line("1731664790 <TEST> [INFO] test message info");
}
-void test_follow()
+static void test_follow()
{
ak_log_follow();
}
-void test_grep()
+static void test_grep()
{
ak_log_grep("-h");
}
-void test_rotate()
+static void test_rotate()
{
ak_log_rotate();
}
-void test_log_message()
+static void test_log_message()
{
ak_log_message(__func__, DEBUG, "test message info");
}
-void test_exit()
+static void test_exit()
{
- ak_log_exit(__func__, "test message info");
+ ak_log_exit(__func__, "test message exit");
}
-void test_warning()
+static void test_warning()
{
- ak_log_warning(__func__, "test message info");
+ ak_log_warning(__func__, "test message WARNING");
}
-void test_debug()
+static void test_debug()
{
- ak_log_debug(__func__, "test message info");
+ ak_log_debug(__func__, "test message debug");
}
-void test_error()
+static void test_error()
{
- ak_log_error(__func__, "test message info");
+ ak_log_error(__func__, "test message error");
}
-void test_info()
+static void test_info()
{
ak_log_info(__func__, "test message info");
}
-void test_one_word()
+static void test_test()
+{
+ ak_log_test(__func__, "test message test");
+}
+
+static void test_one_word()
{
ak_log_info(__func__, "test");
}
@@ -64,6 +69,7 @@ int main (void)
test_error();
test_debug();
test_warning();
+ test_test();
test_log_message();
test_rotate();
test_grep();
diff --git a/c_implementation/tests/test_aklogwrite.c b/c_implementation/tests/test_aklogwrite.c
index 0fc5d5b..2362e35 100644
--- a/c_implementation/tests/test_aklogwrite.c
+++ b/c_implementation/tests/test_aklogwrite.c
@@ -1,6 +1,6 @@
#include <libaklog.h>
-void test_write()
+static void test_write()
{
ak_log_info(__func__, "test message info");
ak_log_warning(__func__, "test message warning");