Home
last modified time | relevance | path

Searched refs:filename1 (Results 1 – 25 of 34) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_unicode_file.py78 def _do_equivalent(self, filename1, filename2): argument
82 self.assertTrue(type(filename1)!=type(filename2),
85 self.assertEqual(os.stat(filename1),
87 self.assertEqual(os.lstat(filename1),
90 self._do_copyish(filename1, filename2)
93 def _do_copyish(self, filename1, filename2): argument
95 self.assertTrue(os.path.isfile(filename1)) # must exist.
96 os.rename(filename1, filename2 + ".new")
97 self.assertTrue(os.path.isfile(filename1+".new"))
98 os.rename(filename1 + ".new", filename2)
[all …]
/external/python/cpython3/Lib/test/
Dtest_unicode_file.py57 def _do_copyish(self, filename1, filename2): argument
59 self.assertTrue(os.path.isfile(filename1)) # must exist.
60 os.rename(filename1, filename2 + ".new")
62 self.assertTrue(os.path.isfile(filename1 + '.new'))
63 os.rename(filename1 + ".new", filename2)
64 self.assertFalse(os.path.isfile(filename1 + '.new'))
67 shutil.copy(filename1, filename2 + ".new")
68 os.unlink(filename1 + ".new") # remove using equiv name.
70 shutil.move(filename1, filename2 + ".new")
72 self.assertTrue(os.path.exists(filename1 + '.new'))
[all …]
Dtest_compileall.py46 def is_hardlink(filename1, filename2): argument
48 inode1 = os.stat(filename1).st_ino
/external/ltp/testcases/kernel/syscalls/dup2/
Ddup203.c22 static char filename0[40], filename1[40]; variable
46 fd1 = SAFE_CREAT(filename1, 0666); in run()
47 SAFE_WRITE(SAFE_WRITE_ALL, fd1, filename1, strlen(filename1)); in run()
86 SAFE_UNLINK(filename1); in run()
95 sprintf(filename1, "dup203.file1.%d\n", pid); in setup()
/external/libbrillo/brillo/http/
Dhttp_form_data_test.cc74 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() local
77 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
87 filename1, in TEST()
149 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() local
152 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
164 "", filename1, content_disposition::kFile, mime::text::kPlain, nullptr)); in TEST()
/external/pdfium/testing/tools/
Dtext_diff.py14 filename1 = argv[1]
17 with open(filename1, "r") as f1:
22 str1, str2, fromfile=filename1, tofile=filename2)
/external/tensorflow/tensorflow/core/util/
Devents_writer_test.cc166 string filename1 = writer.FileName(); in TEST() local
167 EXPECT_EQ(filename0, filename1); in TEST()
168 VerifyFile(filename1); in TEST()
201 string filename1 = writer.FileName(); in TEST() local
202 EXPECT_NE(filename0, filename1); in TEST()
203 VerifyFile(filename1); in TEST()
/external/mtools/
Dmainloop.c294 const char *filename1, in recurs_dos_loop() argument
313 if(!strcmp(filename0,".") && filename1) { in recurs_dos_loop()
322 if(!filename1) in recurs_dos_loop()
324 filename0 = filename1; in recurs_dos_loop()
325 filename1 = 0; in recurs_dos_loop()
332 (!strcmp(filename0, "..") && filename1)) { in recurs_dos_loop()
335 return recurs_dos_loop(mp, filename0+2, filename1, lookupState); in recurs_dos_loop()
338 doing_mcwd = !!filename1; in recurs_dos_loop()
343 ptr = filename1; in recurs_dos_loop()
344 filename1 = 0; in recurs_dos_loop()
[all …]
/external/libchrome/base/files/
Dfile_util.cc52 bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { in ContentsEqual() argument
56 std::ifstream file1(filename1.value().c_str(), in ContentsEqual()
86 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) { in TextContentsEqual() argument
87 std::ifstream file1(filename1.value().c_str(), std::ios::in); in TextContentsEqual()
Dfile_util.h151 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
156 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
/external/curl/tests/unit/
Dunit1304.c53 static const char * const filename1 = "log/netrc1304"; variable
54 memcpy(filename, filename1, strlen(filename1));
/external/cronet/base/files/
Dfile_util.cc216 bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { in ContentsEqual() argument
221 std::ifstream file1(filename1.value().c_str(), in ContentsEqual()
226 std::ifstream file1(filename1.value(), std::ios::in | std::ios::binary); in ContentsEqual()
255 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) { in TextContentsEqual() argument
257 std::ifstream file1(filename1.value().c_str(), std::ios::in); in TextContentsEqual()
260 std::ifstream file1(filename1.value(), std::ios::in); in TextContentsEqual()
Dfile_util.h217 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
222 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
/external/pdfium/testing/image_diff/
Dimage_diff.cpp419 std::string filename1; in main() local
445 filename1 = argv[i++]; in main()
453 return DiffImages(binary_name, filename1, filename2, diff_filename, in main()
457 return CompareImages(binary_name, filename1, filename2, histograms, in main()
/external/toolchain-utils/llvm_tools/
Dpatch_utils_unittest.py143 filename1 = "clang/lib/Driver/ToolChains/Clang.cpp"
145 self.assertEqual(set(hunk_dict.keys()), {filename1, filename2})
146 hunk_list1 = hunk_dict[filename1]
/external/tensorflow/tensorflow/core/grappler/
Dgrappler_item_builder_test.cc122 string filename1 = in TEST_F() local
124 env->DeleteFile(filename1).IgnoreError(); in TEST_F()
126 TF_CHECK_OK(env->NewWritableFile(filename1, &file_to_write)); in TEST_F()
128 TF_CHECK_OK(env->FileExists(filename1)); in TEST_F()
/external/autotest/server/site_tests/firmware_Fingerprint/
Dfirmware_Fingerprint.py294 def files_match(self, filename1, filename2): argument
296 cmd = 'cmp %s %s' % (filename1, filename2)
/external/eigen/lapack/
DCMakeLists.txt76 foreach(filename1 IN LISTS ReferenceLapack_SRCS0)
77 string(REPLACE "reference/" "" filename ${filename1})
/external/cronet/testing/unexpected_passes_common/
Dexpectations_unittest.py119 filename1 = '/tmp/foo'
121 expectation_files = [filename1, filename2]
122 self._expectation_content[filename1] = FAKE_EXPECTATION_FILE_CONTENTS
/external/python/pyfakefs/pyfakefs/tests/
Dfake_os_test.py2199 filename1 = self.make_path('foo')
2200 self.create_file(filename1)
2201 self.assertTrue(self.os.path.exists(filename1))
2834 filename1 = self.make_path('Foo', 'Bar')
2835 self.assert_raises_os_error(errno.ENOTDIR, self.os.chdir, filename1)
/external/llvm/docs/
DCoverageMappingFormat.rst418 ``[numFilenames : LEB128, filename0 : string, filename1 : string, ...]``
/external/libcups/locale/
Dcups.strings1481 …d [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n program | cupstestppd [options] -"…
Dcups_en.po5283 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"
5286 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"
Dcups_cs.po5027 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"
Dcups_zh_CN.po5154 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"

12