Home
last modified time | relevance | path

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

/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.py55 def _do_copyish(self, filename1, filename2): argument
57 self.assertTrue(os.path.isfile(filename1)) # must exist.
58 os.rename(filename1, filename2 + ".new")
60 self.assertTrue(os.path.isfile(filename1 + '.new'))
61 os.rename(filename1 + ".new", filename2)
62 self.assertFalse(os.path.isfile(filename1 + '.new'))
65 shutil.copy(filename1, filename2 + ".new")
66 os.unlink(filename1 + ".new") # remove using equiv name.
68 shutil.move(filename1, filename2 + ".new")
70 self.assertTrue(os.path.exists(filename1 + '.new'))
[all …]
/external/ltp/testcases/kernel/syscalls/dup2/
Ddup203.c63 char filename0[40], filename1[40]; in main() local
80 sprintf(filename1, "dup202.file1.%d\n", getpid()); in main()
82 unlink(filename1); in main()
89 if ((fd1 = creat(filename1, 0666)) == -1) in main()
91 if (write(fd1, filename1, strlen(filename1)) == -1) in main()
99 if ((fd1 = open(filename1, O_RDONLY)) == -1) in main()
124 unlink(filename1); in main()
143 if ((fd2 = creat(filename1, 0666)) == -1) { in main()
180 unlink(filename1); in main()
/external/libbrillo/brillo/http/
Dhttp_form_data_unittest.cc73 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() local
76 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
86 filename1, in TEST()
148 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() local
151 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
163 "", filename1, content_disposition::kFile, mime::text::kPlain, nullptr)); in TEST()
/external/pdfium/testing/tools/
Dtext_diff.py13 filename1 = argv[1]
16 with open(filename1, "r") as f1:
21 str1, str2, fromfile=filename1, tofile=filename2)
/external/tensorflow/tensorflow/core/util/
Devents_writer_test.cc170 string filename1 = writer.FileName(); in TEST() local
171 EXPECT_EQ(filename0, filename1); in TEST()
172 VerifyFile(filename1); in TEST()
205 string filename1 = writer.FileName(); in TEST() local
206 EXPECT_NE(filename0, filename1); in TEST()
207 VerifyFile(filename1); in TEST()
/external/autotest/client/site_tests/platform_TabletMode/
Dplatform_TabletMode.py97 filename1 = screenshot1.split('/')[-1]
103 % (diff, filename1, filename2))
118 filename1 = screenshot1.split('/')[-1]
124 % (diff, filename1, filename2))
/external/perf_data_converter/src/quipper/
Dtest_utils.h38 bool CompareFileContents(const string& filename1, const string& filename2);
41 void CompareTextProtoFiles(const string& filename1, const string& filename2) { in CompareTextProtoFiles() argument
44 ASSERT_TRUE(FileToBuffer(filename1, &file1_contents)); in CompareTextProtoFiles()
Dtest_utils.cc130 bool CompareFileContents(const string& filename1, const string& filename2) { in CompareFileContents() argument
133 if (!FileToBuffer(filename1, &file1_contents) || in CompareFileContents()
/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.h131 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
136 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
/external/curl/tests/unit/
Dunit1304.c51 static const char * const filename1 = "log/netrc1304"; variable
52 memcpy(filename, filename1, strlen(filename1));
/external/pdfium/testing/image_diff/
Dimage_diff.cpp304 std::string filename1; in main() local
320 filename1 = argv[i++]; in main()
328 return DiffImages(filename1, filename2, diff_filename); in main()
331 return CompareImages(filename1, filename2, histograms); in main()
/external/tensorflow/tensorflow/contrib/session_bundle/example/
Dexport_half_plus_two.py104 filename1 = tf.Variable(original_filename1,
108 assign_filename1 = filename1.assign(original_filename1)
/external/libvncserver/libvncserver/
Drfbserver.c1585 char filename1[MAX_PATH]; in rfbProcessFileTransfer() local
1674 if (!rfbFilenameTranslate2UNIX(cl, buffer, filename1, sizeof(filename1))) in rfbProcessFileTransfer()
1676 cl->fileTransfer.fd=open(filename1, O_RDONLY, 0744); in rfbProcessFileTransfer()
1680 …fer() rfbFileTransferRequest(\"%s\"->\"%s\") Open: %s fd=%d\n", buffer, filename1, (cl->fileTransf… in rfbProcessFileTransfer()
1791 if (!rfbFilenameTranslate2UNIX(cl, buffer, filename1, sizeof(filename1))) in rfbProcessFileTransfer()
1797 cl->fileTransfer.fd=open(filename1, O_CREAT|O_WRONLY|O_TRUNC, 0744); in rfbProcessFileTransfer()
1798 …Transfer() rfbFileTransferOffer(\"%s\"->\"%s\") %s %s fd=%d\n", buffer, filename1, (cl->fileTransf… in rfbProcessFileTransfer()
1921 if (!rfbFilenameTranslate2UNIX(cl, buffer, filename1, sizeof(filename1))) in rfbProcessFileTransfer()
1923 retval = mkdir(filename1, 0755); in rfbProcessFileTransfer()
1924 …FileTransfer() rfbCommand: rfbCDirCreate(\"%s\"->\"%s\") %s\n", buffer, filename1, (retval==-1?"Fa… in rfbProcessFileTransfer()
[all …]
/external/tensorflow/tensorflow/core/grappler/
Dgrappler_item_builder_test.cc212 string filename1 = in TEST_F() local
214 env->DeleteFile(filename1).IgnoreError(); in TEST_F()
216 TF_CHECK_OK(env->NewWritableFile(filename1, &file_to_write)); in TEST_F()
218 TF_CHECK_OK(env->FileExists(filename1)); in TEST_F()
/external/eigen/lapack/
DCMakeLists.txt78 foreach(filename1 IN LISTS ReferenceLapack_SRCS0)
79 string(REPLACE "reference/" "" filename ${filename1})
/external/llvm/docs/
DCoverageMappingFormat.rst418 ``[numFilenames : LEB128, filename0 : string, filename1 : string, ...]``
/external/valgrind/perf/
Dtinycc.c20939 const char *ext, *filename1; in tcc_add_file_internal() local
20945 filename1 = strrchr(filename, '/'); in tcc_add_file_internal()
20946 if (filename1) in tcc_add_file_internal()
20947 filename1++; in tcc_add_file_internal()
20949 filename1 = filename; in tcc_add_file_internal()
20950 ext = strrchr(filename1, '.'); in tcc_add_file_internal()