diff --git a/test/TemporaryDirectory.cpp b/test/TemporaryDirectory.cpp index e13be7b02eaa..e84cfa873eb3 100644 --- a/test/TemporaryDirectory.cpp +++ b/test/TemporaryDirectory.cpp @@ -43,8 +43,8 @@ TemporaryDirectory::~TemporaryDirectory() { // A few paranoid sanity checks just to be extra sure we're not deleting someone's homework. assert(m_path.string().find(fs::temp_directory_path().string()) == 0); - assert(m_path != fs::temp_directory_path()); - assert(m_path != m_path.root_path()); + assert(!fs::equivalent(m_path, fs::temp_directory_path())); + assert(!fs::equivalent(m_path, m_path.root_path())); assert(!m_path.empty()); boost::system::error_code errorCode;