Merge pull request #4424

92d1da28 unit_tests: fix build with GCC 5.4.0 on ubuntu (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-09-29 22:11:50 +02:00
parent cd5638f894
commit 876282fd69
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 6 additions and 6 deletions

View file

@ -6,12 +6,12 @@
TEST(is_hdd, linux_os_root)
{
std::string path = "/";
EXPECT_TRUE(tools::is_hdd(path.c_str()));
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()));
EXPECT_FALSE(tools::is_hdd(path.c_str()) != boost::none);
}
#endif