llvm-project/libcxx/test/libcxx
David Spickett 0a36c72dee [libcxx][pretty printers] Check GDB Python scripting support
I found this after upgrading from Ubuntu bionic (gdb 8.1.1) to
Focal (gdb 9.2). (where this test fails, but that's for a
different patch)

9.2 allows you to set breakpoint commands from
Python, which was added in 8.3.
(bintutils a913fffbdee21fdd50e8de0596358be425775678
"Allow breakpoint commands to be set from Python")

The reason this test never failed before was because it did so
silently. "source <python file>" doesn't fail even if that script
raises an Exception.

To fix this extend the gdb lit feature to check that:
* gdb exists
* has Python support
* allows you to set breakpoint commands

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D110334
2021-09-24 08:32:11 +00:00
..
algorithms [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
atomics [libc++] XFAIL align.pass.cpp for PowerPC LE 2021-08-26 13:21:40 -04:00
containers [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
debug [libc++] [c++2b] [P2166] Prohibit string and string_view construction from nullptr. 2021-07-27 16:20:21 +02:00
depr [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
diagnostics [libc++][spaceship] Implement std::pair::operator<=> 2021-09-22 22:36:46 -07:00
experimental [libcxx] [test] Fix experimental/memory.resource.adaptor.mem/db_deallocate on Windows 2021-07-16 23:02:47 +03:00
extensions [libc++] Remove workaround for .fail.cpp tests that don't have clang-verify markup 2020-04-15 10:53:37 -04:00
fuzzing [libc++] Add a libc++ configuration that does not support localization 2020-10-27 14:56:30 -04:00
gdb [libcxx][pretty printers] Check GDB Python scripting support 2021-09-24 08:32:11 +00:00
inclusions [libc++] Disable incomplete library features. 2021-07-27 22:37:35 +02:00
input.output [libc++] Remove support for CloudABI, which has been abandoned 2021-08-24 14:11:32 -04:00
iterators [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
language.support [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
library/description/conventions/expos.only.func [libc++][spaceship] Implement std::pair::operator<=> 2021-09-22 22:36:46 -07:00
localization [libc++] Add missing short wchar handling for codecvt_utf8, codecvt_utf16 and codecvt_utf8_utf16 2021-09-09 16:20:36 -04:00
memory [libc++] Disallow volatile types in std::allocator 2021-09-22 11:47:38 -04:00
numerics [libc++][NFC] Remove uses of 'using namespace std;' in the test suite 2021-09-03 13:15:10 -04:00
ranges [libc++] Do not require movability in __non_propagating_cache::__emplace_deref 2021-08-17 11:32:40 -04:00
selftest [libc++] Remove uses of _LIBCPP_HAS_NO_VARIABLE_TEMPLATES 2021-09-23 08:53:59 -04:00
strings [libcxx][test] Attempt to make debug mode tests more bulletproof 2021-05-18 14:52:34 +02:00
thread [libc++] Remove test-suite annotations for unsupported Clang versions 2021-08-20 15:05:13 -04:00
type_traits [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
utilities [libc++][format] Adds parser std-format-spec. 2021-09-21 18:29:58 +02:00
double_include.sh.cpp [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
include_as_c.sh.cpp [libc++] Add a CI configuration for the modular build 2021-06-08 13:32:08 -04:00
libcpp_alignof.pass.cpp Support tests in freestanding 2019-02-04 20:31:13 +00:00
libcpp_freestanding.sh.cpp [libc++] Fix incorrect usage of __STDC_HOSTED__ 2020-09-02 12:26:37 -04:00
libcpp_version.pass.cpp Support tests in freestanding 2019-02-04 20:31:13 +00:00
min_max_macros.compile.pass.cpp [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00
minimal_cxx11_configuration.pass.cpp [libc++][NFC] Fix minor errors and inconsistencies in the test suite 2021-08-20 12:14:24 -04:00
no_assert_include.compile.pass.cpp [libc++] Remove Lit annotations for unsupported GCC versions from the test suite 2021-08-12 13:30:47 -04:00