Home
last modified time | relevance | path

Searched refs:FILEDATA (Results 1 – 4 of 4) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl14.c541 #define FILEDATA "ten bytes!" macro
784 if (write(fd, FILEDATA, 10) < 0) in run_test()
1021 if (write(fd, FILEDATA, 10) < 0) in main()
1058 if (write(fd, FILEDATA, 10) < 0) in main()
1075 if (write(fd, FILEDATA, 10) < 0) in main()
Dfcntl16.c275 #define FILEDATA "tenbytes!" macro
458 (void)write(fd, FILEDATA, 10); in run_test()
/third_party/python/Lib/test/
Dtest_shutil.py2348 FILEDATA = b"" variable in _ZeroCopyFileTest
2355 cls.FILEDATA = f.read()
2356 assert len(cls.FILEDATA) == cls.FILESIZE
2385 self.assertEqual(read_file(TESTFN2, binary=True), self.FILEDATA)
2398 self.assertEqual(read_file(TESTFN, binary=True), self.FILEDATA)
2453 with io.BytesIO(self.FILEDATA) as src:
2459 self.assertEqual(read_file(TESTFN2, binary=True), self.FILEDATA)
2468 self.assertEqual(dst.read(), self.FILEDATA)
2496 self.assertEqual(read_file(TESTFN2, binary=True), self.FILEDATA)
2509 self.assertEqual(read_file(TESTFN2, binary=True), self.FILEDATA)
[all …]
Dtest_socket.py5949 FILEDATA = b"" variable in SendfileUsingSendTest
5968 cls.FILEDATA = f.read()
5969 assert len(cls.FILEDATA) == cls.FILESIZE
6011 self.assertEqual(data, self.FILEDATA)
6017 file = io.BytesIO(self.FILEDATA)
6029 self.assertEqual(data, self.FILEDATA)
6065 self.assertEqual(data, self.FILEDATA[5000:])
6086 self.assertEqual(data, self.FILEDATA[:count])
6107 self.assertEqual(data, self.FILEDATA[:count])
6126 self.assertEqual(data, self.FILEDATA[2007:count+2007])
[all …]