Author: ericwf Date: Wed Jul 25 14:58:37 2018 New Revision: 337971 URL: http://llvm.org/viewvc/llvm-project?rev=337971&view=rev Log: Remove test which shouldn't have been committed
Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp?rev=337971&r1=337970&r2=337971&view=diff ============================================================================== --- libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp (original) +++ libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp Wed Jul 25 14:58:37 2018 @@ -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() _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits