Fix a couple of warnings present in the filesystem tests.
llvm-svn: 273035
This commit is contained in:
parent
c79795874a
commit
7b677ee0de
|
@ -24,6 +24,12 @@
|
|||
#include "rapid-cxx-test.hpp"
|
||||
#include "filesystem_test_helper.hpp"
|
||||
|
||||
// The filesystem specification explicitly allows for self-move on
|
||||
// the directory iterators. Turn off this warning so we can test it.
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wself-move"
|
||||
#endif
|
||||
|
||||
using namespace std::experimental::filesystem;
|
||||
|
||||
TEST_SUITE(directory_iterator_move_assign_tests)
|
||||
|
|
|
@ -47,10 +47,10 @@ const ReplaceExtensionTestcase TestCases[] =
|
|||
};
|
||||
const ReplaceExtensionTestcase NoArgCases[] =
|
||||
{
|
||||
{"", ""}
|
||||
, {"foo", "foo"}
|
||||
, {"foo.cpp", "foo"}
|
||||
, {"foo..cpp", "foo."}
|
||||
{"", "", ""}
|
||||
, {"foo", "foo", ""}
|
||||
, {"foo.cpp", "foo", ""}
|
||||
, {"foo..cpp", "foo.", ""}
|
||||
};
|
||||
|
||||
int main()
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
#include "rapid-cxx-test.hpp"
|
||||
#include "filesystem_test_helper.hpp"
|
||||
|
||||
// The filesystem specification explicitly allows for self-move on
|
||||
// the directory iterators. Turn off this warning so we can test it.
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wself-move"
|
||||
#endif
|
||||
|
||||
using namespace std::experimental::filesystem;
|
||||
|
||||
TEST_SUITE(recursive_directory_iterator_move_assign_tests)
|
||||
|
|
Loading…
Reference in New Issue