From 81d2cea6902e70c8c29b8b09f56d0c626e093a40 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 1 Oct 2021 09:44:44 +0000 Subject: [PATCH] Revert "[libcxx][test] Use python specified by build rather than system default python" This reverts commit 9f641c96cb15c9752c976bff286bb57adf86acab. The "python" command in gdb uses the python gdb is linked to, not what "python" would give you if you used it directly in the shell. --- libcxx/utils/libcxx/test/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py index 94e4490..1204304 100644 --- a/libcxx/utils/libcxx/test/features.py +++ b/libcxx/utils/libcxx/test/features.py @@ -179,7 +179,7 @@ gdb.execute(\"quit\")""" try: stdout = subprocess.check_output( - [gdb_path, "-ex", sys.executable + " " + test_src, "--batch"], + [gdb_path, "-ex", "python " + test_src, "--batch"], stderr=subprocess.DEVNULL, universal_newlines=True) except subprocess.CalledProcessError: # We can't set breakpoint commands -- 2.7.4