diff options
author | CismonX <admin@cismon.net> | 2025-08-19 08:05:45 +0800 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-08-19 20:07:15 +0200 |
commit | d9e500c1acae30d809ade8197f015b8437305e65 (patch) | |
tree | d1947da6527e7d04a57af30255d92ca7d669bbec /test/test_abi.c | |
parent | af48907c0b534f7f81f639f546bfcea6bc8e99b1 (diff) | |
download | libfuse-d9e500c1acae30d809ade8197f015b8437305e65.tar.gz |
tests: move struct size assertions into a test
These checks are meant for libfuse maintainers only,
and should not be exposed to users.
Signed-off-by: CismonX <admin@cismon.net>
(cherry picked from commit a63fc71a55038f49671eb56d0ade99a48ad8d7ab)
Diffstat (limited to 'test/test_abi.c')
-rw-r--r-- | test/test_abi.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_abi.c b/test/test_abi.c new file mode 100644 index 0000000..99daa09 --- /dev/null +++ b/test/test_abi.c @@ -0,0 +1,18 @@ +#define FUSE_USE_VERSION 30 + +#include "fuse.h" + +#include <stdio.h> +#include <stdlib.h> + +int main(void) +{ + if (sizeof(struct fuse_file_info) != 64) { + fprintf(stderr, "struct fuse_file_info size mismatch\n"); + exit(1); + } + if (sizeof(struct fuse_conn_info) != 128) { + fprintf(stderr, "struct fuse_conn_info size mismatch\n"); + exit(1); + } +} |