[not][test] Fix disable-symbolization.test when 'printenv' is not available
authorFangrui Song <maskray@google.com>
Tue, 25 Aug 2020 00:27:34 +0000 (17:27 -0700)
committerFangrui Song <maskray@google.com>
Tue, 25 Aug 2020 00:27:34 +0000 (17:27 -0700)
commita5e65ad3a30cd77a768e093276e3426c6d81a32d
tree555fdfc5c9f47f5317228942f610666b0e64c468
parent4283320b7286dc94367b22df09499dc934e1fbf9
[not][test] Fix disable-symbolization.test when 'printenv' is not available

On Windows, 'env' or 'printenv' may not exist.

Also switch back to 'env' which is specified by POSIX.1-2017. 'printenv' is not
standard (I picked it because 'printenv' exists on GnuWin32 but 'env' does not).

Reviewed By: zequanwu

Differential Revision: https://reviews.llvm.org/D86496
llvm/test/tools/not/disable-symbolization.test