/third_party/boost/libs/serialization/test/ |
D | test_dll_simple.cpp | 38 const char * testfile = boost::archive::tmpnam(NULL); in test1() local 39 BOOST_REQUIRE(NULL != testfile); in test1() 44 test_ostream os(testfile, TEST_STREAM_FLAGS); in test1() 49 test_istream is(testfile, TEST_STREAM_FLAGS); in test1() 55 std::remove(testfile); in test1() 61 const char * testfile = boost::archive::tmpnam(NULL); in test2() local 62 BOOST_REQUIRE(NULL != testfile); in test2() 67 test_ostream os(testfile, TEST_STREAM_FLAGS); in test2() 73 test_istream is(testfile, TEST_STREAM_FLAGS); in test2() 80 std::remove(testfile); in test2() [all …]
|
D | test_shared_ptr.cpp | 98 void save(const char * testfile, const SP & spa) in save() argument 100 test_ostream os(testfile, TEST_STREAM_FLAGS); in save() 106 void load(const char * testfile, SP & spa) in load() argument 108 test_istream is(testfile, TEST_STREAM_FLAGS); in load() 117 const char * testfile = boost::archive::tmpnam(NULL); in save_and_load() local 118 BOOST_REQUIRE(NULL != testfile); in save_and_load() 119 save(testfile, spa); in save_and_load() 121 load(testfile, spa1); in save_and_load() 127 std::remove(testfile); in save_and_load() 132 const char * testfile, in save2() argument [all …]
|
D | test_unregistered.cpp | 75 void save_unregistered1(const char *testfile) in save_unregistered1() argument 77 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_unregistered1() 102 void load_unregistered1(const char *testfile) 104 std::ifstream is(testfile); 130 void save_unregistered2(const char *testfile) in save_unregistered2() argument 132 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_unregistered2() 156 void load_unregistered2(const char *testfile) in load_unregistered2() argument 158 test_istream is(testfile, TEST_STREAM_FLAGS); in load_unregistered2() 183 void save_registered(const char *testfile) in save_registered() argument 185 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_registered() [all …]
|
D | test_shared_ptr_132.cpp | 88 void save(const char * testfile, const T & spa) in save() argument 90 test_ostream os(testfile, TEST_STREAM_FLAGS); in save() 96 void load(const char * testfile, T & spa) in load() argument 98 test_istream is(testfile, TEST_STREAM_FLAGS); in load() 107 const char * testfile = boost::archive::tmpnam(NULL); in save_and_load() local 108 BOOST_REQUIRE(NULL != testfile); in save_and_load() 109 save(testfile, spa); in save_and_load() 115 load(testfile, spa1); in save_and_load() 121 std::remove(testfile); in save_and_load() 126 const char * testfile, in save2() argument [all …]
|
D | test_set_hashed.cpp | 45 const char * testfile = boost::archive::tmpnam(NULL); in test_set() local 46 BOOST_REQUIRE(NULL != testfile); in test_set() 53 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_set() 59 test_istream is(testfile, TEST_STREAM_FLAGS); in test_set() 64 std::remove(testfile); in test_set() 69 const char * testfile = boost::archive::tmpnam(NULL); in test_multiset() local 70 BOOST_REQUIRE(NULL != testfile); in test_multiset() 76 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_multiset() 82 test_istream is(testfile, TEST_STREAM_FLAGS); in test_multiset() 87 std::remove(testfile); in test_multiset() [all …]
|
D | test_dll_plugin.cpp | 70 void save_exported(const char *testfile) in BOOST_SERIALIZATION_MWERKS_BASE_AND_DERIVED() 72 test_ostream os(testfile, TEST_STREAM_FLAGS); in BOOST_SERIALIZATION_MWERKS_BASE_AND_DERIVED() 114 void load_exported(const char *testfile) in load_exported() argument 116 test_istream is(testfile, TEST_STREAM_FLAGS); in load_exported() 164 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 165 BOOST_REQUIRE(NULL != testfile); in test_main() 176 save_exported(testfile); in test_main() 177 load_exported(testfile); in test_main() 180 std::remove(testfile); in test_main() 191 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local [all …]
|
D | test_map.cpp | 63 const char * testfile = boost::archive::tmpnam(NULL); in test_map() local 64 BOOST_REQUIRE(NULL != testfile); in test_map() 72 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_map() 78 test_istream is(testfile, TEST_STREAM_FLAGS); in test_map() 83 std::remove(testfile); in test_map() 88 const char * testfile = boost::archive::tmpnam(NULL); in test_map_2() local 89 BOOST_REQUIRE(NULL != testfile); in test_map_2() 98 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_map_2() 106 test_istream is(testfile, TEST_STREAM_FLAGS); in test_map_2() 115 std::remove(testfile); in test_map_2() [all …]
|
D | test_polymorphic.cpp | 42 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 43 BOOST_REQUIRE(NULL != testfile); in test_main() 48 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_main() 54 test_istream is(testfile, TEST_STREAM_FLAGS); in test_main() 60 std::remove(testfile); in test_main() 64 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_main() 69 test_istream is(testfile, TEST_STREAM_FLAGS); in test_main() 74 std::remove(testfile); in test_main() 78 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_main() 85 test_istream is(testfile, TEST_STREAM_FLAGS); in test_main() [all …]
|
D | test_object.cpp | 43 void out(const char *testfile, A & a) in BOOST_CLASS_IMPLEMENTATION() 45 test_ostream os(testfile, TEST_STREAM_FLAGS); in BOOST_CLASS_IMPLEMENTATION() 50 void in(const char *testfile, A & a) in in() argument 52 test_istream is(testfile, TEST_STREAM_FLAGS); in in() 60 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 61 BOOST_REQUIRE(NULL != testfile); in test_main() 64 out(testfile, a); in test_main() 65 in(testfile, a); in test_main() 66 std::remove(testfile); in test_main()
|
D | test_cyclic_ptrs.cpp | 106 const char * testfile = boost::archive::tmpnam(NULL); in test1() local 107 BOOST_REQUIRE(NULL != testfile); in test1() 111 test_ostream os(testfile, TEST_STREAM_FLAGS); in test1() 117 test_istream is(testfile, TEST_STREAM_FLAGS); in test1() 122 std::remove(testfile); in test1() 127 const char * testfile = boost::archive::tmpnam(NULL); in test2() local 128 BOOST_REQUIRE(NULL != testfile); in test2() 134 test_ostream os(testfile, TEST_STREAM_FLAGS); in test2() 140 test_istream is(testfile, TEST_STREAM_FLAGS); in test2() 147 std::remove(testfile); in test2() [all …]
|
D | test_variant.cpp | 90 const char * testfile = boost::archive::tmpnam(NULL); in test_type() local 91 BOOST_REQUIRE(testfile != NULL); in test_type() 93 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_type() 100 test_istream is(testfile, TEST_STREAM_FLAGS); in test_type() 106 std::remove(testfile); in test_type() 124 const char * testfile = boost::archive::tmpnam(NULL); in do_bad_read() local 125 BOOST_REQUIRE(testfile != NULL); in do_bad_read() 127 test_ostream os(testfile, TEST_STREAM_FLAGS); in do_bad_read() 133 test_istream is(testfile, TEST_STREAM_FLAGS); in do_bad_read() 180 const char * testfile = boost::archive::tmpnam(NULL); in test_pointer() local [all …]
|
D | test_null_ptr.cpp | 45 void save(const char *testfile) in save() argument 47 test_ostream os(testfile, TEST_STREAM_FLAGS); in save() 58 void load(const char *testfile) in load() argument 60 test_istream is(testfile, TEST_STREAM_FLAGS); in load() 81 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 82 BOOST_REQUIRE(NULL != testfile); in test_main() 83 save(testfile); in test_main() 84 load(testfile); in test_main() 85 std::remove(testfile); in test_main()
|
D | test_registered.cpp | 57 void save_derived(const char *testfile) in save_derived() argument 59 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_derived() 85 void load_derived(const char *testfile) in load_derived() argument 87 test_istream is(testfile, TEST_STREAM_FLAGS); in load_derived() 170 void save_registered(const char *testfile) in save_registered() argument 172 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_registered() 189 void load_registered(const char *testfile) in load_registered() argument 191 test_istream is(testfile, TEST_STREAM_FLAGS); in load_registered() 226 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 228 BOOST_REQUIRE(NULL != testfile); in test_main() [all …]
|
D | test_exported.cpp | 35 void save_exported(const char *testfile) in save_exported() argument 37 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_exported() 57 void load_exported(const char *testfile) in load_exported() argument 59 test_istream is(testfile, TEST_STREAM_FLAGS); in load_exported() 95 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 96 BOOST_REQUIRE(NULL != testfile); in test_main() 98 save_exported(testfile); in test_main() 99 load_exported(testfile); in test_main() 100 std::remove(testfile); in test_main()
|
D | test_set.cpp | 45 const char * testfile = boost::archive::tmpnam(NULL); in test_set() local 46 BOOST_REQUIRE(NULL != testfile); in test_set() 54 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_set() 63 test_istream is(testfile, TEST_STREAM_FLAGS); in test_set() 72 std::remove(testfile); in test_set() 77 const char * testfile = boost::archive::tmpnam(NULL); in test_multiset() local 78 BOOST_REQUIRE(NULL != testfile); in test_multiset() 85 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_multiset() 94 test_istream is(testfile, TEST_STREAM_FLAGS); in test_multiset() 103 std::remove(testfile); in test_multiset()
|
D | test_primitive.cpp | 40 void out(const char *testfile, A & a) in BOOST_CLASS_IMPLEMENTATION() 42 test_ostream os(testfile, TEST_STREAM_FLAGS); in BOOST_CLASS_IMPLEMENTATION() 47 void in(const char *testfile, A & a) in in() argument 49 test_istream is(testfile, TEST_STREAM_FLAGS); in in() 57 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 58 BOOST_REQUIRE(NULL != testfile); in test_main() 61 out(testfile, a); in test_main() 62 in(testfile, a); in test_main()
|
D | test_dll_exported.cpp | 59 void save_exported(const char *testfile) in save_exported() argument 61 test_ostream os(testfile, TEST_STREAM_FLAGS); in save_exported() 81 void load_exported(const char *testfile) in load_exported() argument 83 test_istream is(testfile, TEST_STREAM_FLAGS); in load_exported() 128 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 129 BOOST_REQUIRE(NULL != testfile); in test_main() 131 save_exported(testfile); in test_main() 132 load_exported(testfile); in test_main() 133 std::remove(testfile); in test_main()
|
D | test_split.cpp | 131 void out(const char *testfile, A & a, B & b, C & c) in BOOST_SERIALIZATION_SPLIT_FREE() 133 test_ostream os(testfile, TEST_STREAM_FLAGS); in BOOST_SERIALIZATION_SPLIT_FREE() 140 void in(const char *testfile, A & a, B & b, C & c) in in() argument 142 test_istream is(testfile, TEST_STREAM_FLAGS); in in() 152 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 153 BOOST_REQUIRE(NULL != testfile); in test_main() 159 out(testfile, a, b, c); in test_main() 160 in(testfile, a, b, c); in test_main() 161 std::remove(testfile); in test_main()
|
D | test_set_boost_unordered.cpp | 57 const char * testfile = boost::archive::tmpnam(NULL); in test_unordered_set() local 58 BOOST_REQUIRE(NULL != testfile); in test_unordered_set() 66 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_unordered_set() 72 test_istream is(testfile, TEST_STREAM_FLAGS); in test_unordered_set() 84 std::remove(testfile); in test_unordered_set() 89 const char * testfile = boost::archive::tmpnam(NULL); in test_unordered_multiset() local 90 BOOST_REQUIRE(NULL != testfile); in test_unordered_multiset() 96 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_unordered_multiset() 102 test_istream is(testfile, TEST_STREAM_FLAGS); in test_unordered_multiset() 116 std::remove(testfile); in test_unordered_multiset()
|
/third_party/python/Lib/test/ |
D | audiotests.py | 55 def create_file(self, testfile): argument 56 f = self.fout = self.module.open(testfile, 'wb') 63 def check_file(self, testfile, nframes, frames): argument 64 with self.module.open(testfile, 'rb') as f: 86 with open(TESTFN, 'wb') as testfile: 87 with self.module.open(testfile): 91 with open(TESTFN, 'wb') as testfile: 92 with self.module.open(testfile) as f: 97 self.assertEqual(testfile.closed, self.close_fd) 98 with open(TESTFN, 'rb') as testfile: [all …]
|
/third_party/ltp/testcases/kernel/syscalls/dup/ |
D | dup07.c | 42 static const char *testfile = "dup07"; variable 62 if ((rdoret = creat(testfile, 0444)) == -1) { in main() 63 tst_resm(TFAIL, "Unable to creat file '%s'", testfile); in main() 66 tst_resm(TFAIL, "Unable to dup '%s'", testfile); in main() 82 unlink(testfile); in main() 84 if ((wroret = creat(testfile, 0222)) == -1) { in main() 85 tst_resm(TFAIL, "Unable to creat file '%s'", testfile); in main() 88 tst_resm(TFAIL, "Unable to dup '%s'", testfile); in main() 105 unlink(testfile); in main() 107 if ((rdwret = creat(testfile, 0666)) == -1) { in main() [all …]
|
/third_party/boost/libs/serialization/performance/ |
D | performance_polymorphic.cpp | 52 const char * testfile = boost::archive::tmpnam(NULL); in test_main() local 53 BOOST_REQUIRE(NULL != testfile); in test_main() 58 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_main() 64 test_istream is(testfile, TEST_STREAM_FLAGS); in test_main() 70 std::remove(testfile); in test_main() 74 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_main() 79 test_istream is(testfile, TEST_STREAM_FLAGS); in test_main() 84 std::remove(testfile); in test_main() 88 test_ostream os(testfile, TEST_STREAM_FLAGS); in test_main() 95 test_istream is(testfile, TEST_STREAM_FLAGS); in test_main() [all …]
|
/third_party/ltp/testcases/kernel/security/smack/ |
D | smack_file_access.sh | 33 testfile="testfile" 38 smack_notroot /bin/sh -c "echo InitialData 2>/tmp/smack_fail.log > $testfile" 39 if [ ! -f "$testfile" ]; then 40 tst_brkm TFAIL "Test file \"$testfile\" can not be created." 43 setfattr --name=security.SMACK64 --value=TheOther "$testfile" 44 setto=$(getfattr --only-values -n security.SMACK64 -e text $testfile) 47 tst_brkm TFAIL "Test file \"$testfile\" labeled \"$setto\" incorrectly." 63 got_read=$(smack_notroot $CAT "$testfile") 66 tst_brkm TFAIL "Read failed for \"$testfile\" labeled \"TheOther\"." 70 got_read=$(smack_notroot $CAT "$testfile" 2> /dev/null) [all …]
|
/third_party/ltp/testcases/kernel/syscalls/unlinkat/ |
D | unlinkat01.c | 22 testfile[] = "unlinkattestfile.txt", variable 44 {0, testfile, 0, 0}, 46 {0, testfile, 0, ENOTDIR}, 47 {100, testfile, 0, EBADF}, 48 {0, testfile, 9999, EINVAL}, 49 {AT_FDCWD, testfile, 0, 0}, 68 if (access(testfile, F_OK)) in run() 69 SAFE_FILE_PRINTF(testfile, testfile); in run() 97 SAFE_UNLINK(testfile); in cleanup()
|
/third_party/ltp/testcases/kernel/fs/fs_di/ |
D | fs_di | 98 rm -f $TCtmp/testfile* 199 create_datafile $SIZE $TCtmp/testfile >/dev/null 227 cp $TCtmp/testfile ${TESTFS}/${FILEPATH} 228 cmp $TCtmp/testfile ${TESTFS}/${FILEPATH}/testfile 233 cp ${TESTFS}/${FILEPATH}/testfile $TCtmp/testfile_copy 234 cmp $TCtmp/testfile $TCtmp/testfile_copy 240 rm -f $TCtmp/testfile* 251 create_datafile $DISK_SIZE $TCtmp/testfile >/dev/null 258 frag $TCtmp/testfile $TMPBASE 266 cmp $TCtmp/testfile $TMPBASE/frag1 [all …]
|