mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
17 lines
306 B
C++
17 lines
306 B
C++
#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()));
|
|
}
|
|
#else
|
|
TEST(is_hdd, unknown_os)
|
|
{
|
|
std::string path = "";
|
|
EXPECT_FALSE(tools::is_hdd(path.c_str()));
|
|
}
|
|
#endif
|