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
parent b35a061824
commit c5044e240d
2 changed files with 4 additions and 6 deletions

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();

View File

@@ -157,8 +157,6 @@ _TEST_OPERATOR(cp, char *, "%px")
/* For testing a syscall that returns 0 on success and sets errno otherwise */
#define TESTSYSCALL(statement) TESTCONDERR((statement) == 0)
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
static inline void print_bytes(const void *data, size_t size)
{
const char *bytes = data;