mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
876282fd69
92d1da28
unit_tests: fix build with GCC 5.4.0 on ubuntu (moneromooo-monero)
18 lines
336 B
C++
18 lines
336 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()) != boost::none);
|
|
}
|
|
#else
|
|
TEST(is_hdd, unknown_os)
|
|
{
|
|
std::string path = "";
|
|
EXPECT_FALSE(tools::is_hdd(path.c_str()) != boost::none);
|
|
}
|
|
#endif
|