[PATCH] [libcxxabi] Refactor test timing logic and disable by default.

Eric Fiselier eric at efcs.ca
Mon Nov 24 12:57:51 PST 2014


Hi mclow.lists, danalbert, jroelofs,

When using LIT the timing output is entirely unused but introduces a dependency on `<chrono>`. When libc++ is built without a montonic clock this causes some of the tests to fail.
This patch factors out all of the timing logic into `support/timer.hpp` and disables it by default. To enable the timing you must define `LIBCXXABI_TIME_TESTS`.

http://reviews.llvm.org/D6391

Files:
  test/dynamic_cast14.cpp
  test/dynamic_cast3.cpp
  test/dynamic_cast5.cpp
  test/dynamic_cast_stress.cpp
  test/support/timer.hpp
  test/test_demangle.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6391.16577.patch
Type: text/x-patch
Size: 5651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141124/d8db341f/attachment.bin>


More information about the cfe-commits mailing list