| /llvm-project-15.0.7/lldb/test/API/python_api/sbenvironment/ |
| H A D | TestSBEnvironment.py | 19 name = env.GetNameAtIndex(i) 23 entries = env.GetEntries() 42 env_count = env.GetNumValues() 59 env.Clear() 61 env.PutEntry("X=y") 74 env = target.GetEnvironment() 75 path = env.Get("PATH") 80 env.PutEntry("PATH=#" + path) 84 env = lldb.SBEnvironment() 104 env.PutEntry("FOO=bar") [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/ |
| H A D | create_directory_with_attributes.pass.cpp | 43 scoped_test_env env; in TEST_CASE() local 44 const path dir = env.create_dir("dir1"); in TEST_CASE() 65 scoped_test_env env; in TEST_CASE() local 86 scoped_test_env env; in TEST_CASE() local 99 scoped_test_env env; in TEST_CASE() local 110 scoped_test_env env; in TEST_CASE() local 122 scoped_test_env env; in TEST_CASE() local 140 scoped_test_env env; in TEST_CASE() local 151 scoped_test_env env; in TEST_CASE() local 152 const path dir = env.create_dir("dir"); in TEST_CASE() [all …]
|
| H A D | create_directory.pass.cpp | 59 scoped_test_env env; in TEST_CASE() local 60 const path dir = env.create_dir("dir1"); in TEST_CASE() 71 scoped_test_env env; in TEST_CASE() local 72 const path dir = env.make_env_path("dir1"); in TEST_CASE() 85 scoped_test_env env; in TEST_CASE() local 97 scoped_test_env env; in TEST_CASE() local 107 scoped_test_env env; in TEST_CASE() local 108 const path file = env.create_file("file"); in TEST_CASE() 119 scoped_test_env env; in TEST_CASE() local 120 const path dir = env.create_dir("dir"); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/llvm/utils/ |
| H A D | collect_and_build_with_pgo.py | 200 def _get_default_cmake_invocation(env): argument 202 cmake='cmake', maker=env.get_cmake_maker(), cmake_dir=env.llvm_dir) 239 if not env.dry_run: 248 env.run_command( 252 def _build_stage1_clang(env): argument 263 if env.dry_run: 271 env.run_command(cmd, check=True) 392 env = Env( 412 return env, result_args 447 env, args = _parse_args() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_interceptors.cpp | 65 env[0].__magic = kHwJmpBufMagic; in __sigjmp_save() 66 env[0].__mask_was_saved = in __sigjmp_save() 138 if (env[0].__magic != kHwJmpBufMagic) { in INTERCEPTOR() 142 return REAL(siglongjmp)(env, val); in INTERCEPTOR() 145 if (env[0].__mask_was_saved) in INTERCEPTOR() 149 InternalLongjmp(env[0].__jmpbuf, val); in INTERCEPTOR() 156 if (env[0].__magic != kHwJmpBufMagic) in INTERCEPTOR() 158 InternalLongjmp(env[0].__jmpbuf, val); in INTERCEPTOR() 162 if (env[0].__magic != kHwJmpBufMagic) { in INTERCEPTOR() 166 return REAL(longjmp)(env, val); in INTERCEPTOR() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/cert/ |
| H A D | pos34-c.cpp | 17 char env[1024]; in volatile_memory1() local 18 int retval = snprintf(env, sizeof(env), "TEST=%s", var); in volatile_memory1() 19 if (retval < 0 || (size_t)retval >= sizeof(env)) { in volatile_memory1() 23 return putenv(env); in volatile_memory1() 32 static char env[1024]; in test_static() local 34 int retval = snprintf(env, sizeof(env), "TEST=%s", var); in test_static() 39 return putenv(env); in test_static() 46 char *env = (char *)malloc(len); in test_heap_memory() local 47 if (env == NULL) { in test_heap_memory() 51 free(env); in test_heap_memory() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/ |
| H A D | remove_all.pass.cpp | 39 scoped_test_env env; in TEST_CASE() local 83 env.make_env_path("dne") in TEST_CASE() 95 scoped_test_env env; in TEST_CASE() local 101 env.create_file("file", 42), in TEST_CASE() 102 env.create_dir("empty_dir"), in TEST_CASE() 116 scoped_test_env env; in TEST_CASE() local 117 const path dir = env.create_dir("dir"); in TEST_CASE() 134 scoped_test_env env; in TEST_CASE() local 135 const path dir = env.create_dir("dir"); in TEST_CASE() 140 env.create_file(dir / "file1", 42), in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/ |
| H A D | create_directories.pass.cpp | 43 scoped_test_env env; in TEST_CASE() local 53 scoped_test_env env; in TEST_CASE() local 63 scoped_test_env env; in TEST_CASE() local 72 scoped_test_env env; in TEST_CASE() local 73 const path root = env.create_dir("dir"); in TEST_CASE() 88 scoped_test_env env; in TEST_CASE() local 89 const path root = env.create_dir("dir"); in TEST_CASE() 105 scoped_test_env env; in TEST_CASE() local 116 scoped_test_env env; in TEST_CASE() local 129 scoped_test_env env; in TEST_CASE() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/ |
| H A D | copy.pass.cpp | 67 scoped_test_env env; in TEST_CASE() local 69 const path dir = env.create_dir("dir"); in TEST_CASE() 81 const path t = env.test_root; in TEST_CASE() 121 scoped_test_env env; in TEST_CASE() local 156 scoped_test_env env; in TEST_CASE() local 158 const path dir = env.create_dir("dir"); in TEST_CASE() 211 scoped_test_env env; in TEST_CASE() local 212 const path dir = env.create_dir("dir"); in TEST_CASE() 267 scoped_test_env env; in TEST_CASE() local 287 scoped_test_env env; in TEST_CASE() local [all …]
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/dex/builder/ |
| H A D | Builder.py | 71 env = dict(os.environ) 72 env.update(script_environ) 78 env=env, 104 assert env['SOURCE_FILES'] == 'a.a b.b' 105 assert env['OBJECT_FILES'] == 'a.a.o b.b.o' 107 assert env['SOURCE_INDEXES'] == '01 02' 110 assert env['SOURCE_FILE_01'] == 'a.a' 111 assert env['SOURCE_FILE_02'] == 'b.b' 113 assert env['OBJECT_FILE_01'] == 'a.a.o' 114 assert env['OBJECT_FILE_02'] == 'b.b.o' [all …]
|
| /llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/shtest-not/ |
| H A D | not-calls-external.txt | 21 # Various patterns of 'not' and 'env' 29 # RUN: env FOO=1 not %{python} fail.py \ 32 # RUN: not env FOO=1 BAR=1 %{python} fail.py \ 35 # RUN: env FOO=1 BAR=1 not env -u FOO BAR=2 %{python} fail.py \ 38 # RUN: not env FOO=1 BAR=1 not env -u FOO -u BAR %{python} pass.py \ 41 # RUN: not not env FOO=1 env FOO=2 BAR=1 %{python} pass.py \ 44 # RUN: env FOO=1 -u BAR env -u FOO BAR=1 not not %{python} pass.py \ 48 # Various patterns of 'not', 'not --crash', and 'env' 50 # RUN: not env FOO=1 BAR=1 env FOO=2 BAR=2 not --crash %{python} pass.py \ 53 # RUN: not env FOO=1 BAR=1 not --crash not %{python} pass.py \ [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_symlink/ |
| H A D | create_symlink.pass.cpp | 38 scoped_test_env env; in TEST_CASE() local 39 const path file = env.create_file("file1", 42); in TEST_CASE() 40 const path file2 = env.create_file("file2", 55); in TEST_CASE() 41 const path sym = env.create_symlink(file, "sym"); in TEST_CASE() 51 scoped_test_env env; in TEST_CASE() local 52 const path file = env.create_file("file", 42); in TEST_CASE() 54 const path dir = env.create_dir("dir"); in TEST_CASE() 57 const path dest = env.make_env_path("dest1"); in TEST_CASE() 76 scoped_test_env env; in TEST_CASE() local 77 const path dir = env.create_dir("dir"); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/shtest-env/ |
| H A D | env-calls-env.txt | 1 # Check that internal env can call internal env. 3 # RUN: env env %{python} print_environment.py \ 9 # RUN: env FOO=2 env BAR=1 %{python} print_environment.py \ 15 # RUN: env -u FOO env -u BAR %{python} print_environment.py \ 21 # RUN: env -u FOO BAR=1 env -u BAR FOO=2 %{python} print_environment.py \ 27 # RUN: env -u FOO BAR=1 env -u BAR FOO=2 env BAZ=3 %{python} print_environment.py \
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/ |
| H A D | rename.pass.cpp | 55 scoped_test_env env; in TEST_CASE() local 56 const path dne = env.make_env_path("dne"); in TEST_CASE() 57 const path file = env.create_file("file1", 42); in TEST_CASE() 58 const path dir = env.create_dir("dir1"); in TEST_CASE() 87 scoped_test_env env; in TEST_CASE() local 117 const path dne = env.make_env_path("dne"); in TEST_CASE() 132 static_test_env env; in TEST_CASE() local 134 const path new_dir = env.makePath("new_dir"); in TEST_CASE() 137 rename(env.Dir, new_dir, ec); in TEST_CASE() 139 TEST_CHECK(!exists(env.Dir)); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/builders/ |
| H A D | darwin.py | 40 os, env = get_os_and_env() 41 if os is None or env is None: 45 sdk = lldbutil.get_xcode_sdk(os, env) 54 return vendor, os, version, env 58 if None in [arch, vendor, os, version, env]: 62 if env: 63 components.append(env) 69 vendor, os, version, env = get_triple() 94 if env == "simulator": 110 vendor, os, version, env = get_triple() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.read_symlink/ |
| H A D | read_symlink.pass.cpp | 57 scoped_test_env env; in TEST_CASE() local 59 env.make_env_path("dne"), in TEST_CASE() 60 env.create_file("file", 42), in TEST_CASE() 61 env.create_dir("dir") in TEST_CASE() 75 scoped_test_env env; in TEST_CASE() local 76 const path dne = env.make_env_path("dne"); in TEST_CASE() 77 const path file = env.create_file("file", 42); in TEST_CASE() 78 const path dir = env.create_dir("dir"); in TEST_CASE() 79 const path link = env.create_symlink(dne, "link"); in TEST_CASE() 86 {env.create_symlink(dne, "dne_link"), dne}, in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/ |
| H A D | copy_file.pass.cpp | 57 scoped_test_env env; in TEST_CASE() local 58 const path file = env.create_file("file1", 42); in TEST_CASE() 82 scoped_test_env env; in TEST_CASE() local 83 const path fifo = env.create_fifo("fifo"); in TEST_CASE() 84 const path dest = env.make_env_path("dest"); in TEST_CASE() 85 const path file = env.create_file("file", 42); in TEST_CASE() 105 scoped_test_env env; in TEST_CASE() local 107 const path dest = env.make_env_path("file2"); in TEST_CASE() 119 scoped_test_env env; in TEST_CASE() local 121 const path dest = env.create_dir("dir1"); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_symlink/ |
| H A D | copy_symlink.pass.cpp | 56 scoped_test_env env; in TEST_CASE() local 57 const path file = env.create_file("file1", 42); in TEST_CASE() 58 const path file2 = env.create_file("file2", 55); in TEST_CASE() 59 const path sym = env.create_symlink(file, "sym"); in TEST_CASE() 60 const path dir = env.create_dir("dir"); in TEST_CASE() 61 const path dne = env.make_env_path("dne"); in TEST_CASE() 83 scoped_test_env env; in TEST_CASE() local 84 const path dir = env.create_dir("dir"); in TEST_CASE() 86 const path file = env.create_file("file", 42); in TEST_CASE() 89 const path dest = env.make_env_path("dest1"); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/macosx/simulator/ |
| H A D | TestSimulatorPlatform.py | 44 env_list = [env] if env else [] 46 sdk = lldbutil.get_xcode_sdk(os, env) 51 if env == 'simulator': 74 self.check_debugserver(log, os+env, vers) 84 os='ios', vers='', env='simulator', 95 os='tvos', vers='', env='simulator', 108 os='watchos', vers='', env='simulator', 121 os='watchos', vers='', env='simulator', 140 os='macosx', vers='10.9', env='', 152 os='ios', vers='11.0', env='simulator', [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/ |
| H A D | temp_directory_path.pass.cpp | 47 scoped_test_env env; in TEST_CASE() local 48 const path dne = env.make_env_path("dne"); in TEST_CASE() 66 {"TMP", env.create_dir("dir1")}, in TEST_CASE() 67 {"TEMP", env.create_dir("dir2")}, in TEST_CASE() 68 {"USERPROFILE", env.create_dir("dir3")} in TEST_CASE() 70 {"TMPDIR", env.create_dir("dir1")}, in TEST_CASE() 71 {"TMP", env.create_dir("dir2")}, in TEST_CASE() 72 {"TEMP", env.create_dir("dir3")}, in TEST_CASE() 73 {"TEMPDIR", env.create_dir("dir4")} in TEST_CASE() 78 {"TMPDIR", env.create_dir("dir5")}, in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove/ |
| H A D | remove.pass.cpp | 55 scoped_test_env env; in TEST_CASE() local 56 const path non_empty_dir = env.create_dir("dir"); in TEST_CASE() 57 env.create_file(non_empty_dir / "file1", 42); in TEST_CASE() 58 const path bad_perms_dir = env.create_dir("bad_dir"); in TEST_CASE() 82 env.make_env_path("dne") in TEST_CASE() 95 scoped_test_env env; in TEST_CASE() local 96 const path dne = env.make_env_path("dne"); in TEST_CASE() 97 const path link = env.create_symlink(dne, "link"); in TEST_CASE() 98 const path nested_link = env.make_env_path("nested_link"); in TEST_CASE() 101 env.create_file("file", 42), in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_empty/ |
| H A D | is_empty.pass.cpp | 55 scoped_test_env env; in TEST_CASE() local 56 TEST_CHECK(is_empty(env.test_root)); in TEST_CASE() 57 env.create_file("foo", 42); in TEST_CASE() 58 TEST_CHECK(!is_empty(env.test_root)); in TEST_CASE() 70 scoped_test_env env; in TEST_CASE() local 79 const path dir = env.create_dir("dir"); in TEST_CASE() 80 const path p = env.create_dir("dir/dir2"); in TEST_CASE() 93 scoped_test_env env; in TEST_CASE() local 102 const path dir = env.create_dir("dir"); in TEST_CASE() 119 scoped_test_env env; in TEST_CASE() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_hard_link/ |
| H A D | create_hard_link.pass.cpp | 37 scoped_test_env env; in TEST_CASE() local 38 const path file = env.create_file("file1", 42); in TEST_CASE() 39 const path file2 = env.create_file("file2", 55); in TEST_CASE() 40 const path sym = env.create_symlink(file, "sym"); in TEST_CASE() 50 scoped_test_env env; in TEST_CASE() local 51 const path file = env.create_file("file"); in TEST_CASE() 52 const path dest = env.make_env_path("dest1"); in TEST_CASE() 64 scoped_test_env env; in TEST_CASE() local 65 const path dir = env.create_dir("dir"); in TEST_CASE() 66 const path dest = env.make_env_path("dest2"); in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | replace_filename.pass.cpp | 94 scoped_test_env env; in TEST_CASE() local 95 const path dir = env.create_dir("dir"); in TEST_CASE() 96 const path file = env.create_file("dir/file", 42); in TEST_CASE() 97 const path file_two = env.create_file("dir/file_two", 101); in TEST_CASE() 98 const path sym = env.create_symlink("dir/file", "sym"); in TEST_CASE() 111 env.create_file("dir/file_two", 99); in TEST_CASE() 131 scoped_test_env env; in TEST_CASE() local 132 const path dir = env.create_dir("dir"); in TEST_CASE() 133 const path file = env.create_file("dir/file", 42); in TEST_CASE() 134 const path file_two = env.create_file("dir/file_two", 99); in TEST_CASE() [all …]
|
| H A D | refresh.pass.cpp | 72 scoped_test_env env; in TEST_CASE() local 73 const path dir = env.create_dir("dir"); in TEST_CASE() 90 env.create_file("dir/file", 101); in TEST_CASE() 113 scoped_test_env env; in TEST_CASE() local 114 const path dir = env.create_dir("dir"); in TEST_CASE() 139 env.create_file("dir/file", 101); in TEST_CASE() 165 scoped_test_env env; in TEST_CASE() local 166 const path dir = env.create_dir("dir"); in TEST_CASE() 240 scoped_test_env env; in TEST_CASE() local 263 env.create_file("file1", 99); in TEST_CASE() [all …]
|