ANDROID: fuse-bpf: Make fuse_test compile and pass

Remove ARRAY_SIZE definition
Uncomment FUSE_CANONICAL_PATH responses

Bug: 279912034
Test: fuse_test compiles and passes
Change-Id: I511bc0466a552261428347b1cf9f23f1088213e0
Signed-off-by: Paul Lawrence <paullawrence@google.com>
This commit is contained in:
Paul Lawrence
2023-04-27 08:31:20 -07:00
committed by Treehugger Robot
parent 30151e7f47
commit f880802e17

View File

@@ -175,8 +175,8 @@ static int basic_test(const char *mount_dir)
.open_flags = open_in->flags,
}));
//TESTFUSEINNULL(FUSE_CANONICAL_PATH);
//TESTFUSEOUTREAD("ignored", 7);
TESTFUSEINNULL(FUSE_CANONICAL_PATH);
TESTFUSEOUTREAD("ignored", 7);
TESTFUSEIN(FUSE_READ, read_in);
TESTFUSEOUTREAD(test_data, strlen(test_data));
@@ -631,8 +631,8 @@ static int bpf_test_creat(const char *mount_dir)
.open_flags = create_in->flags,
}));
//TESTFUSEINNULL(FUSE_CANONICAL_PATH);
//TESTFUSEOUTREAD("ignored", 7);
TESTFUSEINNULL(FUSE_CANONICAL_PATH);
TESTFUSEOUTREAD("ignored", 7);
TESTFUSEIN(FUSE_FLUSH, flush_in);
TESTFUSEOUTEMPTY();