Skip to content

Commit

Permalink
more vfs cleanup and test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ancientjpeg committed Feb 1, 2025
1 parent 03d9f7c commit 721ef30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions dev/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,12 @@ namespace sqlite_orm {
namespace internal {
inline const std::string& to_string(vfs_t v) {
static std::string res[] = {
#if defined(SQLITE_ORM_MAC) || defined(SQLITE_ORM_LINUX)

#ifdef SQLITE_ORM_UNIX
"unix",
"unix-dotfile"

"unix-dotfile",
#ifdef SQLITE_ORM_MAC
,
"unix-afp",

#elif defined(SQLITE_ORM_LINUX)

#endif

#endif

#ifdef SQLITE_ORM_WIN
Expand Down
4 changes: 2 additions & 2 deletions tests/vfs_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ TEST_CASE("vfs string conversion returns expected strings") {

TEST_CASE("vfs modes open successfully") {

#ifdef SQLITE_ORM_MAC
#if defined(SQLITE_ORM_MAC)
vfs_t vfs_enum = GENERATE(vfs_t::unix, vfs_t::unix_posix, vfs_t::unix_dotfile, vfs_t::unix_afp);
#elif defined(SQLITE_ORM_UNIX);
#elif defined(SQLITE_ORM_UNIX)
vfs_t vfs_enum = GENERATE(vfs_t::unix, vfs_t::unix_posix, vfs_t::unix_dotfile);
#elif defined(SQLITE_ORM_WINDOWS)
vfs_t vfs_enum = GENERATE(vfs_t::win32, vfs_t::win32_longpath);
Expand Down

0 comments on commit 721ef30

Please sign in to comment.