/third_party/curl/tests/libtest/ |
H A D | testutil.c | 139 TCHAR *path; in win32_load_system_library() local 146 path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in win32_load_system_library() 147 if(!path) in win32_load_system_library() 151 written = GetSystemDirectory(path, (unsigned int)systemdirlen); in win32_load_system_library() 155 if(path[written - 1] != _T('\\')) in win32_load_system_library() 156 path[written++] = _T('\\'); in win32_load_system_library() 158 _tcscpy(path + written, filename); in win32_load_system_library() 160 return LoadLibrary(path); in win32_load_system_library()
|
/third_party/libuv/test/ |
H A D | test-get-currentexe.c | 43 char path[PATHMAX]; in TEST_IMPL() local 53 snprintf(path, sizeof(path), "%s", executable_path); in TEST_IMPL() 55 ASSERT_NOT_NULL(realpath(executable_path, path)); in TEST_IMPL() 58 match = strstr(buffer, path); in TEST_IMPL() 59 /* Verify that the path returned from uv_exepath is a subdirectory of in TEST_IMPL() 62 ASSERT(match && !strcmp(match, path)); in TEST_IMPL() 101 match = strstr(buffer, path); in TEST_IMPL() 102 /* Verify that the path returned from uv_exepath is a subdirectory of in TEST_IMPL() 106 ASSERT_STR_EQ(match, path); in TEST_IMPL() [all...] |
/third_party/ltp/lib/ |
H A D | tst_fill_file.c | 75 int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount) in tst_fill_file() argument 79 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_fill_file() 85 unlink(path); in tst_fill_file() 90 unlink(path); in tst_fill_file() 98 int tst_prealloc_file(const char *path, size_t bs, size_t bcount) in tst_prealloc_file() argument 102 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); in tst_prealloc_file() 108 unlink(path); in tst_prealloc_file() 113 unlink(path); in tst_prealloc_file()
|
/third_party/node/test/parallel/ |
H A D | test-fs-symlink.js | 29 const path = require('path'); 39 const linkData = fixtures.path('/cycles/root.js'); 40 const linkPath = path.join(tmpdir.path, 'symlink1.js'); 58 const linkData = fixtures.path('/not/exists/file'); 59 const linkPath = path.join(tmpdir.path, 'symlink2.js'); 70 message: /target|path/
|
H A D | test-runner-coverage.js | 19 return readdirSync(tmpdir.path).find((file) => { 73 const fixture = fixtures.path('test-runner', 'coverage.js'); 86 const fixture = fixtures.path('test-runner', 'coverage.js'); 88 const options = { env: { ...process.env, NODE_V8_COVERAGE: tmpdir.path } }; 99 const fixture = fixtures.path('test-runner', 'coverage.js'); 113 const fixture = fixtures.path('test-runner', 'coverage.js'); 115 const options = { env: { ...process.env, NODE_V8_COVERAGE: tmpdir.path } }; 126 const fixture = fixtures.path('test-runner', 'coverage.js'); 139 const fixture = fixtures.path('test-runner', 'coverage.js'); 172 const fixture = fixtures.path('v [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | removexattr.c | 34 char path[PATH_MAX] = {0}; in removexattr_0100() local 35 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in removexattr_0100() 36 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in removexattr_0100() 46 int result = setxattr(path, name, value, strlen(value), XATTR_CREATE); in removexattr_0100() 58 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100() 72 result = removexattr(path, name); in removexattr_0100() 78 result = getxattr(path, name, buf, sizeof(buf)); in removexattr_0100() 87 remove(path); in removexattr_0100()
|
/third_party/python/Tools/scripts/ |
H A D | findnocoding.py | 20 for path in paths: 21 if os.path.isfile(path): 22 yield path.endswith(".py") 23 elif os.path.isdir(path): 24 for root, dirs, files in os.walk(path): 27 yield os.path.join(root, filename)
|
/third_party/skia/src/core/ |
H A D | HMSymbol.cpp | 19 void HMSymbol::PathOutlineDecompose(const SkPath& path, std::vector<SkPath>& paths) in PathOutlineDecompose() argument 21 SkPath::RawIter iter = SkPath::RawIter(path); in PathOutlineDecompose() 68 SkPath path; in MultilayerPath() local 70 path.addPath(paths[i]); in MultilayerPath() 72 multPaths.push_back(path); in MultilayerPath() 76 SkPath path; in MultilayerPath() local 79 path.addPath(paths[multMap[i][j]]); in MultilayerPath() 82 multPaths.push_back(path); in MultilayerPath()
|
/third_party/skia/samplecode/ |
H A D | SampleCircle.cpp | 54 static void make_poly(SkPath* path, int n) { in make_poly() argument 58 path->incReserve(n + 1); in make_poly() 59 path->moveTo(SK_Scalar1, 0); in make_poly() 64 path->lineTo(SkScalarCos(angle), SkScalarSin(angle)); in make_poly() 66 path->close(); in make_poly() 78 SkPath path; variable 79 make_poly(&path, n); 83 canvas->drawPath(path, paint);
|
/third_party/skia/third_party/externals/dawn/generator/ |
H A D | remove_files.py | 19 def check_in_subdirectory(path, directory): 20 return path.startswith(directory) and not '/' in path[len(directory):] 23 def check_is_allowed(path, allowed_dirs): 25 check_in_subdirectory(path, directory) for directory in allowed_dirs) 31 result += [os.path.join(directory, filename) for filename in files] 64 [os.path.join(root_dir, line.strip()) for line in f.readlines()]) 77 stale_dir = os.path.join(root_dir, stale_dir)
|
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/ |
H A D | run-draw-fuzzer-tests.py | 27 hb_draw_fuzzer = os.path.join (top_builddir, "hb-draw-fuzzer" + EXEEXT) 29 if not os.path.exists (hb_draw_fuzzer): 30 if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]): 45 parent_path = os.path.join (srcdir, "fonts") 48 path = os.path.join (parent_path, file) variable 51 text, returncode = cmd ([valgrind, '--leak-check=full', '--error-exitcode=1', hb_draw_fuzzer, path]) 53 text, returncode = cmd ([hb_draw_fuzzer, path])
|
H A D | run-shape-fuzzer-tests.py | 27 hb_shape_fuzzer = os.path.join (top_builddir, "hb-shape-fuzzer" + EXEEXT) 29 if not os.path.exists (hb_shape_fuzzer): 30 if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]): 45 parent_path = os.path.join (srcdir, "fonts") 47 path = os.path.join (parent_path, file) variable 50 text, returncode = cmd ([valgrind, '--leak-check=full', '--error-exitcode=1', hb_shape_fuzzer, path]) 52 text, returncode = cmd ([hb_shape_fuzzer, path])
|
/third_party/protobuf/src/google/protobuf/io/ |
H A D | io_win32.h | 65 PROTOBUF_EXPORT FILE* fopen(const char* path, const char* mode); 66 PROTOBUF_EXPORT int access(const char* path, int mode); 67 PROTOBUF_EXPORT int chdir(const char* path); 71 PROTOBUF_EXPORT int mkdir(const char* path, int _mode); 72 PROTOBUF_EXPORT int open(const char* path, int flags, int mode = 0); 75 PROTOBUF_EXPORT int stat(const char* path, struct _stat* buffer); 77 PROTOBUF_EXPORT std::wstring testonly_utf8_to_winpath(const char* path); 86 // Expand wildcards in a path pattern, feed the result to a consumer function. 88 // `path` must be a valid, Windows-style path [all...] |
/third_party/skia/gm/ |
H A D | hittestpath.cpp | 18 static void test_hittest(SkCanvas* canvas, const SkPath& path) { in test_hittest() argument 20 SkRect r = path.getBounds(); in test_hittest() 23 canvas->drawPath(path, paint); in test_hittest() 30 if (path.contains(x, y)) { in test_hittest() 66 SkPath path = b.detach(); in DEF_SIMPLE_GM_CAN_FAIL() local 68 test_hittest(canvas, path); in DEF_SIMPLE_GM_CAN_FAIL() 71 path.setFillType(SkPathFillType::kWinding); in DEF_SIMPLE_GM_CAN_FAIL() 73 test_hittest(canvas, path); in DEF_SIMPLE_GM_CAN_FAIL()
|
H A D | getpostextpath.cpp | 26 static void strokePath(SkCanvas* canvas, const SkPath& path) { in strokePath() argument 31 canvas->drawPath(path, paint); in strokePath() 37 SkPath path; in DEF_SIMPLE_GM() local 49 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, nullptr); in DEF_SIMPLE_GM() 50 strokePath(canvas, path); in DEF_SIMPLE_GM() 51 path.reset(); in DEF_SIMPLE_GM() 70 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, &pos[0]); in DEF_SIMPLE_GM() 71 strokePath(canvas, path); in DEF_SIMPLE_GM()
|
/third_party/skia/platform_tools/android/bin/ |
H A D | android_build_app | 28 args_gn_path = os.path.join(args.output_dir, "args.gn") 29 if os.path.exists(args_gn_path): 39 '-P' + target_cpu + '.out.dir=' + os.path.abspath(args.output_dir)] 43 subprocess.check_call(cmd, cwd=os.path.join(os.path.dirname(__file__), "..")) 49 current_dir = os.path.dirname(__file__) 50 apk_src = os.path.join(current_dir, "..", "apps", args.app_name, "build", "outputs", "apk", 53 apk_dst = os.path.join(args.output_dir, args.app_name + ".apk")
|
/third_party/skia/infra/bots/recipe_modules/flavor/resources/ |
H A D | symbolize_stack_trace.py | 55 stack_line = r'^(?P<path>.+)\(\+?(?P<addr>.*)\) ?\[(?P<addr2>.+)\]' 73 path = m.group('path') 76 if os.path.exists(path): 80 sym = subprocess.check_output(['addr2line', '-Cfpe', path, addr]) 87 if path.startswith(basedir): 88 path = path[len(basedir)+1:] 90 line = path [all...] |
/third_party/vk-gl-cts/scripts/src_util/ |
H A D | pre_commit.py | 51 def croak(path, line, msg, *args): 54 if path is not None: 55 sys.stderr.write("%s:%d: " % (path, line or 0)) 69 for path in get_changed_paths('ACR'): 71 path.decode('ascii') 73 croak(path, 0, "Non-ASCII file name") 96 for path in get_changed_paths('AM'): 97 check_external_guards(open(path))
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | amber_verify.py | 28 scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts") 29 sys.path.insert(0, scriptPath) 42 DEFAULT_BUILD_DIR = os.path.join(tempfile.gettempdir(), "amber-verify", "{targetName}-{buildType}") 44 DEFAULT_DST_DIR = os.path.join(DEQP_DIR, "external", "vulkancts", "data", "vulkan", "prebuilt") 54 workDir = os.path.join(buildCfg.getBuildDir(), "modules", module.dirName) 59 binPath = generator.getBinaryPath(buildCfg.getBuildType(), os.path.join(".", "deqp-vk")) 83 "--dst-path", 86 help="Destination path") 98 if not os.path [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/ |
H A D | SerializableChecker.java | 43 private String path = null; field in SerializableChecker 47 public SerializableChecker(String path) in SerializableChecker() argument 49 this.path = path; in SerializableChecker() 51 if (path != null) { in SerializableChecker() 52 File dir = new File(path); in SerializableChecker() 72 File file = new File(path + File.separator + className + ".dat"); in writeFile() 134 if (path != null) { in visit() 179 String path = null; in main() 186 path in main() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
H A D | SerializableChecker.java | 40 private String path = null; field in SerializableChecker 44 public SerializableChecker(String path) in SerializableChecker() argument 46 this.path = path; in SerializableChecker() 48 if (path != null) { in SerializableChecker() 49 File dir = new File(path); in SerializableChecker() 69 File file = new File(path + File.separator + className + ".dat"); in writeFile() 131 if (path != null) { in visit() 176 String path = null; in main() 183 path in main() [all...] |
/third_party/lzma/CPP/Common/ |
H A D | Wildcard.h | 15 void SplitPathToParts(const UString &path, UStringVector &pathParts);
16 void SplitPathToParts_2(const UString &path, UString &dirPrefix, UString &name);
17 void SplitPathToParts_Smart(const UString &path, UString &dirPrefix, UString &name); // ignores dir delimiter at the end of (path)
19 UString ExtractDirPrefixFromPath(const UString &path);
20 UString ExtractFileNameFromPath(const UString &path);
22 bool DoesNameContainWildcard(const UString &path);
113 int FindSubNode(const UString &path) const;
116 // void AddItem(bool include, const UString &path, const CCensorPathProps &props);
135 CheckPathVect() doesn't check path i 211 AddPreItem_NoWildcard(const UString &path) AddPreItem_NoWildcard() argument [all...] |
/third_party/mesa3d/src/hgl/ |
H A D | GLRendererRoster.cpp | 122 BPath path; in AddDefaultPaths() local 123 status_t status = find_directory(paths[i], &path, true); in AddDefaultPaths() 124 if (status == B_OK && path.Append("opengl") == B_OK) in AddDefaultPaths() 125 AddPath(path.Path()); in AddDefaultPaths() 131 GLRendererRoster::AddPath(const char* path) in AddPath() argument 133 BDirectory directory(path); in AddPath() 206 BPath path(&ref); in CreateRenderer() 207 printf("OpenGL load add-on: %s\n", path.Path()); in CreateRenderer() 209 image_id image = load_add_on(path.Path()); in CreateRenderer() 225 printf("OpenGL add-on registered: %s\n", path in CreateRenderer() [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/ |
H A D | script_mutator.js | 12 const path = require('path'); 54 this.mutateDb = new db.MutateDb(db_path || path.join(process.cwd(), 'db')); 79 while (path.dirname(mjsunitPath) != mjsunitPath && 80 path.basename(mjsunitPath) != 'mjsunit') { 81 mjsunitPath = path.dirname(mjsunitPath); 84 if (path.basename(mjsunitPath) == 'mjsunit') { 85 mjsunitPath = path.join(mjsunitPath, 'mjsunit.js'); 97 let currentDir = path.dirname(input.absPath); 99 while (path [all...] |
/third_party/node/deps/v8/tools/ |
H A D | run-wasm-api-tests.py | 35 CHECKOUT_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 36 WASM_PATH = os.path.join(CHECKOUT_PATH, "third_party", "wasm-api") 37 CLANG_PATH = os.path.join(CHECKOUT_PATH, "third_party", "llvm-build", 46 "c": os.path.join(CLANG_PATH, "clang"), 47 "cc": os.path.join(CLANG_PATH, "clang++"), 80 self.src_file_basename = os.path.join(WASM_PATH, "example", name) 81 self.dst_file_basename = os.path.join(tempdir, name) 82 self.lib_file = os.path [all...] |