From: David Spickett Date: Thu, 7 Oct 2021 12:36:01 +0000 (+0100) Subject: [libcxx][pretty printers] Correct tests run detection X-Git-Tag: upstream/15.0.7~29350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ee133d3fce730d39dba68b81d8ab2285ba8b349;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py b/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py index 484ac901..c64efa3 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 @@ class CheckResult(gdb.Command): "print_and_compare", gdb.COMMAND_DATA) def invoke(self, arg, from_tty): + global has_run_tests + try: has_run_tests = True