summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/filesystem
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-07-25 21:58:37 +0000
committerEric Fiselier <eric@efcs.ca>2018-07-25 21:58:37 +0000
commitceb33cd5191a426717eb1d1072c3b35abd1c61eb (patch)
tree79ab98b657b255b564493e0b8dab2d0f85549293 /libcxx/test/std/experimental/filesystem
parentce34437cc87cc7080e266b853db2765806b12f40 (diff)
downloadbcm5719-llvm-ceb33cd5191a426717eb1d1072c3b35abd1c61eb.tar.gz
bcm5719-llvm-ceb33cd5191a426717eb1d1072c3b35abd1c61eb.zip
Remove test which shouldn't have been committed
llvm-svn: 337971
Diffstat (limited to 'libcxx/test/std/experimental/filesystem')
-rw-r--r--libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp b/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
index b216c5f17cb..8404900f57b 100644
--- a/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
+++ b/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
@@ -567,23 +567,4 @@ TEST_CASE(test_exists_fails)
TEST_CHECK_THROW_RESULT(filesystem_error, Checker, last_write_time(file));
}
-TEST_CASE(my_test) {
- scoped_test_env env;
- const path p = env.create_file("file", 42);
- using namespace std::chrono;
- using TimeSpec = struct ::timespec;
- TimeSpec ts[2];
- ts[0].tv_sec = 0;
- ts[0].tv_nsec = UTIME_OMIT;
- ts[1].tv_sec = -1;
- ts[1].tv_nsec =
- duration_cast<nanoseconds>(seconds(1) - nanoseconds(13)).count();
- if (::utimensat(AT_FDCWD, p.c_str(), ts, 0) == -1) {
- TEST_CHECK(false);
- }
- TimeSpec new_ts = LastWriteTime(p);
- TEST_CHECK(ts[1].tv_sec == new_ts.tv_sec);
- TEST_CHECK(ts[1].tv_nsec == new_ts.tv_nsec);
-}
-
TEST_SUITE_END()
OpenPOWER on IntegriCloud