[libcxx-commits] [libcxx] 81d2cea - Revert "[libcxx][test] Use python specified by build rather than system default python"

David Spickett via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 1 02:47:01 PDT 2021


Author: David Spickett
Date: 2021-10-01T09:45:44Z
New Revision: 81d2cea6902e70c8c29b8b09f56d0c626e093a40

URL: https://github.com/llvm/llvm-project/commit/81d2cea6902e70c8c29b8b09f56d0c626e093a40
DIFF: https://github.com/llvm/llvm-project/commit/81d2cea6902e70c8c29b8b09f56d0c626e093a40.diff

LOG: 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.

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/features.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py
index 94e4490ad8722..1204304899120 100644
--- a/libcxx/utils/libcxx/test/features.py
+++ b/libcxx/utils/libcxx/test/features.py
@@ -179,7 +179,7 @@ def check_gdb(cfg):
 
   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


        


More information about the libcxx-commits mailing list