[libcxx] r349886 - Fix copy paste error in file_clock tests
Eric Fiselier
eric at efcs.ca
Thu Dec 20 20:27:45 PST 2018
Author: ericwf
Date: Thu Dec 20 20:27:45 2018
New Revision: 349886
URL: http://llvm.org/viewvc/llvm-project?rev=349886&view=rev
Log:
Fix copy paste error in file_clock tests
Modified:
libcxx/trunk/test/std/utilities/time/time.clock/time.clock.file/consistency.pass.cpp
Modified: libcxx/trunk/test/std/utilities/time/time.clock/time.clock.file/consistency.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.clock/time.clock.file/consistency.pass.cpp?rev=349886&r1=349885&r2=349886&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.clock/time.clock.file/consistency.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.clock/time.clock.file/consistency.pass.cpp Thu Dec 20 20:27:45 2018
@@ -25,11 +25,11 @@ void test(const T &) {}
int main()
{
- typedef std::chrono::system_clock C;
+ typedef std::chrono::file_clock C;
static_assert((std::is_same<C::rep, C::duration::rep>::value), "");
static_assert((std::is_same<C::period, C::duration::period>::value), "");
static_assert((std::is_same<C::duration, C::time_point::duration>::value), "");
static_assert((std::is_same<C::time_point::clock, C>::value), "");
- static_assert((C::is_steady || !C::is_steady), "");
- test(std::chrono::system_clock::is_steady);
+ static_assert(!C::is_steady, "");
+ test(std::chrono::file_clock::is_steady);
}
More information about the libcxx-commits
mailing list