initial import of Monero base code

This commit is contained in:
Some Random Crypto Guy
2023-07-16 22:00:52 +01:00
parent 2af40522f9
commit bf78bd79a1
1294 changed files with 659699 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "common/util.h"
#include <string>
#include <gtest/gtest.h>
#if defined(__GLIBC__)
TEST(is_hdd, linux_os_root)
{
std::string path = "/";
EXPECT_TRUE(tools::is_hdd(path.c_str()) != boost::none);
}
#else
TEST(is_hdd, unknown_os)
{
std::string path = "";
EXPECT_FALSE(tools::is_hdd(path.c_str()) != boost::none);
}
#endif