Get tests compiling with -Wunused-local-typedef
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@346914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,7 +32,6 @@ TEST_SUITE(directory_iterator_increment_tests)
|
||||
|
||||
TEST_CASE(test_increment_signatures)
|
||||
{
|
||||
using D = directory_iterator;
|
||||
directory_iterator d; ((void)d);
|
||||
std::error_code ec; ((void)ec);
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ TEST_SUITE(directory_iterator_begin_end_tests)
|
||||
|
||||
TEST_CASE(test_function_signatures)
|
||||
{
|
||||
using D = directory_iterator;
|
||||
directory_iterator d; ((void)d);
|
||||
|
||||
ASSERT_SAME_TYPE(decltype(begin(d)), directory_iterator);
|
||||
|
||||
@@ -31,7 +31,6 @@ TEST_SUITE(recursive_directory_iterator_increment_tests)
|
||||
|
||||
TEST_CASE(test_increment_signatures)
|
||||
{
|
||||
using D = recursive_directory_iterator;
|
||||
recursive_directory_iterator d; ((void)d);
|
||||
std::error_code ec; ((void)ec);
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ TEST_SUITE(recursive_directory_iterator_begin_end_tests)
|
||||
|
||||
TEST_CASE(test_function_signatures)
|
||||
{
|
||||
using D = recursive_directory_iterator;
|
||||
recursive_directory_iterator d; ((void)d);
|
||||
|
||||
ASSERT_SAME_TYPE(decltype(begin(d)), recursive_directory_iterator);
|
||||
|
||||
@@ -108,7 +108,6 @@ struct Times {
|
||||
};
|
||||
|
||||
Times GetTimes(path const& p) {
|
||||
using Clock = file_time_type::clock;
|
||||
StatT st;
|
||||
if (::stat(p.c_str(), &st) == -1) {
|
||||
std::error_code ec(errno, std::generic_category());
|
||||
@@ -127,7 +126,6 @@ TimeSpec LastAccessTime(path const& p) { return GetTimes(p).access; }
|
||||
TimeSpec LastWriteTime(path const& p) { return GetTimes(p).write; }
|
||||
|
||||
std::pair<TimeSpec, TimeSpec> GetSymlinkTimes(path const& p) {
|
||||
using Clock = file_time_type::clock;
|
||||
StatT st;
|
||||
if (::lstat(p.c_str(), &st) == -1) {
|
||||
std::error_code ec(errno, std::generic_category());
|
||||
@@ -510,7 +508,6 @@ TEST_CASE(last_write_time_symlink_test)
|
||||
|
||||
TEST_CASE(test_write_min_time)
|
||||
{
|
||||
using Clock = file_time_type::clock;
|
||||
scoped_test_env env;
|
||||
const path p = env.create_file("file", 42);
|
||||
const file_time_type old_time = last_write_time(p);
|
||||
@@ -545,10 +542,6 @@ TEST_CASE(test_write_min_time)
|
||||
}
|
||||
|
||||
TEST_CASE(test_write_max_time) {
|
||||
using Clock = file_time_type::clock;
|
||||
using Sec = std::chrono::seconds;
|
||||
using Hours = std::chrono::hours;
|
||||
|
||||
scoped_test_env env;
|
||||
const path p = env.create_file("file", 42);
|
||||
const file_time_type old_time = last_write_time(p);
|
||||
|
||||
Reference in New Issue
Block a user