aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorHarini0924 <79345568+Harini0924@users.noreply.github.com>2024-08-22 14:39:23 -0700
committerGitHub <noreply@github.com>2024-08-22 14:39:23 -0700
commit42d06b8e555727e8e043d5ea9240ad103d950192 (patch)
tree03b196eef01beddf55b8cf59e5fd16539acffbd7 /llvm/unittests/ADT/StringRefTest.cpp
parent8b5f606612de30ece5e113517decacca0d8ccb35 (diff)
downloadllvm-42d06b8e555727e8e043d5ea9240ad103d950192.zip
llvm-42d06b8e555727e8e043d5ea9240ad103d950192.tar.gz
llvm-42d06b8e555727e8e043d5ea9240ad103d950192.tar.bz2
[compiler-rt][test] Change tests to remove the use of `unset` command in lit internal shell (#104880)
This patch rewrites tests to remove the use of the `unset` command, which is not supported in the lit internal shell. The tests now use the `env -u` to unset environment variables. The `unset` command is used in shell environments to remove the environment variable. However, because the lit internal shell does not support the `unset` command, using it in tests would result in errors or other unexpected behavior. To overcome this limitation, the tests have been updated to use the `env -u` command instead. `env -u` is supported by lit and effectively removes specified environment variables. This allows the tests to achieve the same goal of unsetting environment variables while ensuring compatibility with the lit internal shell. This change is relevant for [[RFC] Enabling the Lit Internal Shell by Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179/3) Fixes: #102397
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions