[libc++] Move a few tests into more correct places (#147557)
This commit is contained in:
parent
9320d1d484
commit
03f6f48b73
10 changed files with 15 additions and 6 deletions
|
|
@ -11,6 +11,7 @@
|
|||
// appear to provide that behavior too.
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
using PtrdiffT = ::ptrdiff_t;
|
||||
4
libcxx/test/extensions/clang/lit.local.cfg
Normal file
4
libcxx/test/extensions/clang/lit.local.cfg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
# Only libc++ supports clang-specific extensions
|
||||
if "stdlib=libc++" not in config.available_features:
|
||||
config.unsupported = True
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# ===----------------------------------------------------------------------===##
|
||||
|
||||
# Test that all headers define the _LIBCPP_VERSION macro.
|
||||
# Test that all public headers define the _LIBCPP_VERSION macro.
|
||||
|
||||
# RUN: %{python} %s %{libcxx-dir}/utils
|
||||
|
||||
3
libcxx/test/extensions/libcxx/lit.local.cfg
Normal file
3
libcxx/test/extensions/libcxx/lit.local.cfg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
if "stdlib=libc++" not in config.available_features:
|
||||
config.unsupported = True
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
# The tests in this directory need to run Python
|
||||
import shlex
|
||||
import sys
|
||||
|
||||
config.substitutions.append(("%{python}", shlex.quote(sys.executable)))
|
||||
|
|
@ -28,6 +28,9 @@ for header in public_headers:
|
|||
{lit_header_restrictions.get(header, '')}
|
||||
{lit_header_undeprecations.get(header, '')}
|
||||
|
||||
// We're using compiler-specific flags in this test
|
||||
// REQUIRES: (gcc || clang)
|
||||
|
||||
// RUN: %{{cxx}} -c %s -o %t.first.o %{{flags}} %{{compile_flags}}
|
||||
// RUN: %{{cxx}} -c %s -o %t.second.o -DWITH_MAIN %{{flags}} %{{compile_flags}}
|
||||
// RUN: %{{cxx}} -o %t.exe %t.first.o %t.second.o %{{flags}} %{{link_flags}}
|
||||
|
|
@ -48,6 +48,9 @@ for header in public_headers:
|
|||
//--- {header}.compile.pass.cpp
|
||||
// UNSUPPORTED: FROZEN-CXX03-HEADERS-FIXME
|
||||
|
||||
// TODO: This is currently a libc++-specific way of testing the includes, but is a requirement for all implementation
|
||||
// REQUIRES: stdlib=libc++
|
||||
|
||||
{lit_header_restrictions.get(header, '')}
|
||||
{lit_header_undeprecations.get(header, '')}
|
||||
|
||||
Loading…
Reference in a new issue