[libcxx-commits] [libcxx] 7ee133d - [libcxx][pretty printers] Correct tests run detection
David Spickett via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 7 05:37:52 PDT 2021
Author: David Spickett
Date: 2021-10-07T13:36:01+01:00
New Revision: 7ee133d3fce730d39dba68b81d8ab2285ba8b349
URL: https://github.com/llvm/llvm-project/commit/7ee133d3fce730d39dba68b81d8ab2285ba8b349
DIFF: https://github.com/llvm/llvm-project/commit/7ee133d3fce730d39dba68b81d8ab2285ba8b349.diff
LOG: [libcxx][pretty printers] Correct tests run detection
Missing "global" meant that we set a local "has_run_tests"
so the global was False by the time everything has run.
Added:
Modified:
libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py b/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
index 484ac9018945..c64efa3a6931 100644
--- a/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
+++ b/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
@@ -37,6 +37,8 @@ def __init__(self):
"print_and_compare", gdb.COMMAND_DATA)
def invoke(self, arg, from_tty):
+ global has_run_tests
+
try:
has_run_tests = True
More information about the libcxx-commits
mailing list