aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/is_hdd.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-29 22:11:50 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-29 22:19:44 +0200
commit876282fd6956ee6a39447f189b5ab82c1f388bac (patch)
tree2b26c10af10f938fbbb50a6212472e05ca4da150 /tests/unit_tests/is_hdd.cpp
parentMerge pull request #4417 (diff)
downloadmonero-876282fd6956ee6a39447f189b5ab82c1f388bac.tar.xz
Merge pull request #4424
92d1da28 unit_tests: fix build with GCC 5.4.0 on ubuntu (moneromooo-monero)
Diffstat (limited to 'tests/unit_tests/is_hdd.cpp')
-rw-r--r--tests/unit_tests/is_hdd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_tests/is_hdd.cpp b/tests/unit_tests/is_hdd.cpp
index 1be670e5e..040af4f47 100644
--- a/tests/unit_tests/is_hdd.cpp
+++ b/tests/unit_tests/is_hdd.cpp
@@ -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