[lit] Pass the COMSPEC variable through to test processes on Windows
authorMartin Storsjö <martin@martin.st>
Wed, 8 Dec 2021 18:42:40 +0000 (20:42 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 8 Dec 2021 21:29:39 +0000 (23:29 +0200)
commitaff028f7d8322c625422febd3d8b9794746cdc5b
treeedcd7badb8ecfda94e5e6368a5ead36f719027f8
parent057b0430af9fac979171ac8f19a858c273b0e44f
[lit] Pass the COMSPEC variable through to test processes on Windows

This variable is necessary for the system() function for running
external processes.

This is needes for some libcxx tests. With the current libcxx test
infrastructure, all OS environment variables are passed through, but
with the new "from scratch" libcxx test setup, we only pass through
the variables listed here.

Differential Revision: https://reviews.llvm.org/D115363
llvm/utils/lit/lit/TestingConfig.py