Skip to content

Commit 03f6f48

Browse files
authored
[libc++] Move a few tests into more correct places (#147557)
1 parent 9320d1d commit 03f6f48

File tree

10 files changed

+15
-6
lines changed

10 files changed

+15
-6
lines changed

libcxx/test/libcxx/language.support/support.types/cstddef.compile.pass.cpp renamed to libcxx/test/extensions/all/cstddef.compile.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// appear to provide that behavior too.
1212

1313
#include <cstddef>
14+
1415
#include "test_macros.h"
1516

1617
using PtrdiffT = ::ptrdiff_t;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# Only libc++ supports clang-specific extensions
3+
if "stdlib=libc++" not in config.available_features:
4+
config.unsupported = True

libcxx/test/libcxx/libcpp_version.gen.py renamed to libcxx/test/extensions/libcxx/libcpp_version.gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# ===----------------------------------------------------------------------===##
88

9-
# Test that all headers define the _LIBCPP_VERSION macro.
9+
# Test that all public headers define the _LIBCPP_VERSION macro.
1010

1111
# RUN: %{python} %s %{libcxx-dir}/utils
1212

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
if "stdlib=libc++" not in config.available_features:
3+
config.unsupported = True

libcxx/test/selftest/lit.local.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

libcxx/test/libcxx/double_include.gen.py renamed to libcxx/test/std/double_include.gen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
{lit_header_restrictions.get(header, '')}
2929
{lit_header_undeprecations.get(header, '')}
3030
31+
// We're using compiler-specific flags in this test
32+
// REQUIRES: (gcc || clang)
33+
3134
// RUN: %{{cxx}} -c %s -o %t.first.o %{{flags}} %{{compile_flags}}
3235
// RUN: %{{cxx}} -c %s -o %t.second.o -DWITH_MAIN %{{flags}} %{{compile_flags}}
3336
// RUN: %{{cxx}} -o %t.exe %t.first.o %t.second.o %{{flags}} %{{link_flags}}

libcxx/test/libcxx/header_inclusions.gen.py renamed to libcxx/test/std/header_inclusions.gen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
//--- {header}.compile.pass.cpp
4949
// UNSUPPORTED: FROZEN-CXX03-HEADERS-FIXME
5050
51+
// TODO: This is currently a libc++-specific way of testing the includes, but is a requirement for all implementation
52+
// REQUIRES: stdlib=libc++
53+
5154
{lit_header_restrictions.get(header, '')}
5255
{lit_header_undeprecations.get(header, '')}
5356

0 commit comments

Comments
 (0)