[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.
This commit is contained in:
David Spickett 2021-10-07 13:36:01 +01:00
parent 73346f5848
commit 7ee133d3fc
1 changed files with 2 additions and 0 deletions

View File

@ -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