parent
7f8365811f
commit
aa41fb3a6e
@ -1,8 +1,16 @@
|
||||
#ifndef _WSFS_FUSE_H
|
||||
#define _WSFS_FUSE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define FUSE_USE_VERSION 31
|
||||
#include <fuse.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include "wsfs/server.h"
|
||||
|
||||
TEST(server, create_dispose)
|
||||
{
|
||||
wsfs_server_config config = {nullptr, nullptr, nullptr, nullptr, 0};
|
||||
wsfs_server * server = wsfs_server_create(&config);
|
||||
ASSERT_NE(nullptr, server);
|
||||
|
||||
wsfs_server_dispose(server);
|
||||
}
|
Loading…
Reference in new issue