1 # Check and make sure preset environment variable were set in lit.cfg
3 # RUN: %{python} print_environment.py \
4 # RUN: | FileCheck --check-prefix=CHECK-ENV-PRESET %s
6 # Check single unset of environment variable
8 # RUN: env -u FOO %{python} print_environment.py \
9 # RUN: | FileCheck --check-prefix=CHECK-ENV-UNSET-1 %s
11 # Check multiple unsets of environment variables
13 # RUN: env -u FOO -u BAR %{python} print_environment.py \
14 # RUN: | FileCheck --check-prefix=CHECK-ENV-UNSET-MULTIPLE %s
16 # CHECK-ENV-PRESET: BAR = 2
17 # CHECK-ENV-PRESET: FOO = 1
19 # CHECK-ENV-UNSET-1: BAR = 2
20 # CHECK-ENV-UNSET-1-NOT: FOO
22 # CHECK-ENV-UNSET-MULTIPLE-NOT: BAR
23 # CHECK-ENV-UNSET-MULTIPLE-NOT: FOO