aboutsummaryrefslogtreecommitdiff
path: root/test/io.c
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-10-20 14:11:31 -0400
committernodist <kevin.comas.git@gmail.com>2026-10-20 14:11:31 -0400
commit689719e0a1f139e28e57a4df334d5fde354b3379 (patch)
tree2b5e0d0c4aced4886ff3c67729adceba45cac3b0 /test/io.c
parentbaa6f9cdea938c06435635f906b128f7940a59ec (diff)
config parse cli arguments
Diffstat (limited to 'test/io.c')
-rw-r--r--test/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/io.c b/test/io.c
index 8a269fa..3dba03e 100644
--- a/test/io.c
+++ b/test/io.c
@@ -11,8 +11,10 @@ KPL_TEST(statx) {
task->io_res = 1;
KPL_ASSERT(kpl_io_uring_statx(&io_uring, task, AT_FDCWD, linux_version, 0, STATX_ALL, &statx_object),
"should add statx operation");
+ KPL_ASSERT(task->object_flags & KPL_OBJECT_FLAGS_IO_PENDING , "task should have io pending flag");
KPL_ASSERT(kpl_io_uring_submit(&io_uring) == 1, "should submit one io operation");
KPL_ASSERT(task == kpl_io_uring_get_completed(&io_uring), "should return a task");
+ KPL_ASSERT(!(task->object_flags & KPL_OBJECT_FLAGS_IO_PENDING) , "task should not have io pending flag");
KPL_ASSERT(task->io_res == 0, "io_res should have success stax return");
KPL_ASSERT(statx_object.stx_nlink > 0, "should have one or more hard link(s)");
free(task);