[libcxx-commits] [PATCH] D57704: [libcxx] Tests cleanup: use UNSUPPORTED instead of TEST_STD_VER.

Andrey Maksimov via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 4 11:50:26 PST 2019


amakc11 created this revision.
Herald added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, ldionne.

Some older tests use, for example, the following template:

  #if TEST_STD_VER > 11
  <do something useful testing>
  #else
  int main() {}
  #endif

It yields building and running an "empty" test if the condition on `TEST_STD_VER` evaluates to `false`. This patch replaces this template with appropriate `UNSUPPORTED` directive which prevents spending time on building and running such tests in unsupported environment.


Repository:
  rCXX libc++

https://reviews.llvm.org/D57704

Files:
  test/std/input.output/iostream.format/quoted.manip/quoted.pass.cpp
  test/std/utilities/allocator.adaptor/allocator.adaptor.types/allocator_pointers.pass.cpp
  test/std/utilities/memory/default.allocator/allocator_pointers.pass.cpp
  test/std/utilities/meta/meta.unary/meta.unary.cat/nullptr.pass.cpp
  test/std/utilities/tuple/tuple.tuple/TupleFunction.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57704.185105.patch
Type: text/x-patch
Size: 3812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190204/fb0ff2eb/attachment.bin>


More information about the libcxx-commits mailing list