aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-03-17 00:17:06 +0200
committerkaotisk <kaotisk@arching-kaos.org>2025-03-17 00:17:06 +0200
commit1e529830cb1407b13bb0dc86587ec5618a3698f6 (patch)
treef10f6ac9b7a02727b6a8d458407be4ca9d5bacd4 /src/tests
parentef8bcf3241f66bb507d2b926b0c8feaf08d0e682 (diff)
downloadarching-kaos-tools-1e529830cb1407b13bb0dc86587ec5618a3698f6.tar.gz
arching-kaos-tools-1e529830cb1407b13bb0dc86587ec5618a3698f6.tar.bz2
arching-kaos-tools-1e529830cb1407b13bb0dc86587ec5618a3698f6.zip
implemented: int ak_log_write_to_file(char* message)
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_aklog.c6
-rw-r--r--src/tests/test_aklogwrite.c13
2 files changed, 19 insertions, 0 deletions
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 <aklog.h>
+
+void test_write()
+{
+ ak_log_info(__func__, "test message info");
+}
+
+int main (void)
+{
+ test_write();
+ return 0;
+}
+