[libcxx-commits] [libcxx] 9f4b888 - [libc++] NFC: Remove unused includes from the test suite
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 23 12:52:05 PDT 2020
Author: Louis Dionne
Date: 2020-10-23T15:51:54-04:00
New Revision: 9f4b888c32161ac32cd10df3897e35bf66bba396
URL: https://github.com/llvm/llvm-project/commit/9f4b888c32161ac32cd10df3897e35bf66bba396
DIFF: https://github.com/llvm/llvm-project/commit/9f4b888c32161ac32cd10df3897e35bf66bba396.diff
LOG: [libc++] NFC: Remove unused includes from the test suite
- <iostream> include from a <chrono> test
- <regex> include from the filesystem tests
Added:
Modified:
libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp
libcxx/test/support/filesystem_test_helper.h
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp
index 6b557d8dd44d..73cec3b7607f 100644
--- a/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp
+++ b/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/minus.pass.cpp
@@ -27,8 +27,6 @@
#include "test_macros.h"
-#include <iostream>
-
int main(int, char**)
{
using year = std::chrono::year;
@@ -79,7 +77,6 @@ int main(int, char**)
for (int j = 1; j <= 12; ++j)
{
months
diff = year_month{y, month(i)} - year_month{y, month(j)};
- std::cout << "i: " << i << " j: " << j << " -> " <<
diff .count() << std::endl;
assert(
diff .count() == i - j);
}
diff --git a/libcxx/test/support/filesystem_test_helper.h b/libcxx/test/support/filesystem_test_helper.h
index ac2014fa34d1..7c3a6fc0e645 100644
--- a/libcxx/test/support/filesystem_test_helper.h
+++ b/libcxx/test/support/filesystem_test_helper.h
@@ -18,7 +18,6 @@
#include <string>
#include <chrono>
#include <vector>
-#include <regex>
#include "test_macros.h"
#include "rapid-cxx-test.h"
More information about the libcxx-commits
mailing list