diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-05-05 17:04:15 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-05-08 14:47:22 +0200 |
commit | 384d09cd3d2e62bae19b59b615bc57b7a23d0b0a (patch) | |
tree | 3b6ba748a07d8e7e1b687314517e3379c59a69e3 /tests/unit/test_op_call.c | |
parent | c29157e78df7fa335c56d0d7f2cca7dc50bfffd6 (diff) | |
download | seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.gz seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.bz2 seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.lz seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.xz seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.zst seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.zip |
test: fix operations
Adjust the tests after the refactoring and to use struct gluten_offset
Diffstat (limited to 'tests/unit/test_op_call.c')
-rw-r--r-- | tests/unit/test_op_call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_op_call.c b/tests/unit/test_op_call.c index 9a89599..7f4b367 100644 --- a/tests/unit/test_op_call.c +++ b/tests/unit/test_op_call.c @@ -17,7 +17,7 @@ #include <check.h> -#include "gluten.h" +#include "common/gluten.h" #include "operations.h" struct args_write_file { @@ -122,7 +122,7 @@ START_TEST(test_with_open_read_ns) call.context.ns[i].type = NS_NONE; call.context.ns[NS_MOUNT].type = NS_SPEC_PID; pid = create_func_ns(write_file_clone, (void *)&args, call.context.ns); - call.context.ns[NS_MOUNT].pid = pid; + call.context.ns[NS_MOUNT].id.pid = pid; call.nr = SYS_open; call.args[0] = (void *)&test_file; call.args[1] = (void *)(long)flags; |