/external/rust/crates/tempfile/tests/ |
D | namedtempfile.rs | 15 let mut tmpfile = NamedTempFile::new().unwrap(); in test_basic() localVariable 16 write!(tmpfile, "abcde").unwrap(); in test_basic() 17 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_basic() 19 tmpfile.read_to_string(&mut buf).unwrap(); in test_basic() 25 let tmpfile = NamedTempFile::new().unwrap(); in test_deleted() localVariable 26 let path = tmpfile.path().to_path_buf(); in test_deleted() 28 drop(tmpfile); in test_deleted() 34 let mut tmpfile = NamedTempFile::new().unwrap(); in test_persist() localVariable 35 let old_path = tmpfile.path().to_path_buf(); in test_persist() 37 write!(tmpfile, "abcde").unwrap(); in test_persist() [all …]
|
D | tempfile.rs | 10 let mut tmpfile = tempfile::tempfile().unwrap(); in test_basic() localVariable 11 write!(tmpfile, "abcde").unwrap(); in test_basic() 12 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_basic() 14 tmpfile.read_to_string(&mut buf).unwrap(); in test_basic() 22 let mut tmpfile = tempfile::tempfile_in(&tmpdir).unwrap(); in test_cleanup() localVariable 23 write!(tmpfile, "abcde").unwrap(); in test_cleanup() 54 let mut tmpfile = tempfile::tempfile_in(&tmpdir).unwrap(); in test_pathological_cleaner() localVariable 55 write!(tmpfile, "abcde").unwrap(); in test_pathological_cleaner() 56 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_pathological_cleaner() 58 tmpfile.read_to_string(&mut buf).unwrap(); in test_pathological_cleaner()
|
/external/parameter-framework/upstream/tools/xmlGenerator/ |
D | lightRoutingUpdate.sh | 42 tmpfile="/tmp/pfw_commands" 80 echo > "${tmpfile}" 86 echo "setTuningMode on" >> "${tmpfile}" 87 echo "setAutoSync off" >> "${tmpfile}" 94 echo "deleteDomain $domain" >> "${tmpfile}" 103 | $(dirname $0)/PFWScriptGenerator.py --output-kind pfw >> "${tmpfile}" 106 echo "setAutoSync off" >> "${tmpfile}" 107 echo "setTuningMode off" >> "${tmpfile}" 128 "${tmpfile}" 130 echo "set -xeu" > "${tmpfile}2" [all …]
|
/external/iptables/iptables/tests/shell/testcases/ipt-save/ |
D | 0003save-restore_0 | 3 tmpfile="" 9 if [ ! -z "$tmpfile" ];then 10 rm -f "$tmpfile" 19 tmpfile=$(mktemp) || exit 1 38 $XT_MULTI iptables-save | grep -v "^#" > "$tmpfile" || exit 1 39 $XT_MULTI iptables-restore < "$tmpfile" || exit 1 44 $XT_MULTI iptables-restore < "$tmpfile" || exit 1 47 do_diff $tmpfile1 "$tmpfile"
|
D | 0002load-fedora27-firewalld_0 | 4 tmpfile="" 8 if [ ! -z "$tmpfile" ];then 9 rm -f "$tmpfile" 30 tmpfile=$(mktemp) || exit 1 43 :> "$tmpfile" 46 $XT_MULTI ${iptables}-save -t $table $opt | grep -v "^#" >> "$tmpfile" 49 do_diff $dumpfile "$tmpfile"
|
D | 0001load-dumps_0 | 4 tmpfile="" 10 if [ ! -z "$tmpfile" ];then 11 rm -f "$tmpfile" 34 tmpfile=$(mktemp) || exit 1 41 $XT_MULTI ${iptables}-save | grep -v "^#" > "$tmpfile" 42 do_diff $dumpfile "$tmpfile"
|
/external/iptables/iptables/tests/shell/testcases/ipt-restore/ |
D | 0002-parameters_0 | 9 if [ -n "${tmpfile}" ]; then 10 rm -f "${tmpfile}" 16 tmpfile=$(mktemp) || exit 1 18 $XT_MULTI iptables-save -f $tmpfile 19 $XT_MULTI iptables-restore $tmpfile 20 $XT_MULTI iptables-restore -w 5 $tmpfile 21 $XT_MULTI iptables-restore -w 5 -W 1 $tmpfile
|
D | 0004-restore-race_0 | 7 tmpfile="" 20 [ -n "${tmpfile}" ] && rm -f "${tmpfile}" 73 tmpfile=$(mktemp) || exit 1 111 $XT_MULTI iptables-save | grep -v '^#' > $tmpfile 114 cmp $tmpfile $dumpfile
|
D | 0001load-specific-table_0 | 4 tmpfile="" 10 if [ -n "${tmpfile}" ]; then 11 rm -f "${tmpfile}" 17 tmpfile=$(mktemp) || exit 1
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_libc_test.cc | 93 char tmpfile[128]; in TEST() local 94 temp_file_name(tmpfile, sizeof(tmpfile), "sanitizer_common.fileops.tmp."); in TEST() 95 fd_t fd = OpenFile(tmpfile, WrOnly); in TEST() 104 EXPECT_TRUE(FileExists(tmpfile)); in TEST() 106 fd = OpenFile(tmpfile, RdOnly); in TEST() 115 EXPECT_EQ(0u, internal_stat(tmpfile, &st1)); in TEST() 116 EXPECT_EQ(0u, internal_lstat(tmpfile, &st2)); in TEST() 145 ::DeleteFileA(&tmpfile[0]); in TEST() 147 internal_unlink(tmpfile); in TEST() 215 char tmpfile[128]; in TEST() local [all …]
|
/external/autotest/server/ |
D | base_utils.py | 76 tmpfile = os.path.join(tmpdir, "file") 77 tmpfileobj = open(tmpfile, 'w') 80 return tmpfile 85 tmpfile = os.path.join(tmpdir, os.path.basename(location)) 86 utils.urlretrieve(location, tmpfile) 87 return tmpfile 95 tmpfile = os.path.join(tmpdir, os.path.basename(location)) 97 tmpfile += '/' 98 shutil.copytree(location, tmpfile, symlinks=True) 99 return tmpfile [all …]
|
/external/python/cpython2/Tools/faqwiz/ |
D | move-faqwiz.sh | 32 tmpfile=$(tempfile -d .) 34 tmpfile=tmp$RANDOM.tmp 36 tmpfile=tmp$$.tmp 43 sed -e "s/$1\./$2\./g" data/$file1 > ${tmpfile}1 44 sed -e "s/$1\./$2\./g" data/RCS/$file1,v > ${tmpfile}2 51 mv ${tmpfile}1 data/$file2 52 mv ${tmpfile}2 data/RCS/$file2,v
|
/external/oss-fuzz/projects/cairo/targets/ |
D | surface_write_png_fuzzer.c | 24 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local 25 image = cairo_image_surface_create_from_png(tmpfile); in LLVMFuzzerTestOneInput() 28 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput() 37 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput() 40 cairo_surface_write_to_png(surface, tmpfile); in LLVMFuzzerTestOneInput() 44 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
|
D | pdf_surface_fuzzer.c | 33 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local 34 surface = cairo_pdf_surface_create(tmpfile, width_in_points, height_in_points); in LLVMFuzzerTestOneInput() 37 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput() 53 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
|
/external/swiftshader/tests/ |
D | presubmit.sh | 56 tmpfile=`mktemp` 61 done | grep -v "(standard input)" > ${tmpfile} 62 if test -s ${tmpfile}; then 65 cat ${tmpfile} 66 rm ${tmpfile} 70 rm ${tmpfile}
|
/external/autotest/site_utils/lxc/ |
D | container_unittest.py | 69 with tempfile.NamedTemporaryFile(dir=self.test_dir) as tmpfile: 70 name = os.path.basename(tmpfile.name) 163 tmpfile = clone0.attach_run('mktemp').stdout 165 clone0.attach_run('test -f %s' % tmpfile) 174 clone1.attach_run('test -f %s' % tmpfile) 207 _unused, tmpfile = tempfile.mkstemp() 209 container.install_control_file(tmpfile) 214 os.path.basename(tmpfile))) 219 with tempfile.NamedTemporaryFile() as tmpfile: 220 tmpfile.write(control_string) [all …]
|
/external/ltp/lib/newlib_tests/shell/ |
D | test_timeout.sh | 55 local tmpfile start end; 57 tmpfile=$(mktemp -t ltp_timeout_XXXXXXXX) 73 LTP_TIMEOUT_MUL=$timeout $test 2>&1 | cat >$tmpfile 75 LTP_TIMEOUT_MUL=$timeout $test 1>$tmpfile 2>&1 82 test_output=$(cat $tmpfile) 83 rm $tmpfile
|
/external/oss-fuzz/projects/gdk-pixbuf/targets/ |
D | pixbuf_scale_fuzzer.c | 27 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local 28 pixbuf = gdk_pixbuf_new_from_file_at_scale(tmpfile, 1, size, TRUE, &error); in LLVMFuzzerTestOneInput() 30 pixbuf = gdk_pixbuf_new_from_file_at_scale(tmpfile, 1, size, FALSE, &error); in LLVMFuzzerTestOneInput() 36 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
|
D | stream_fuzzer.c | 26 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local 27 file = g_file_new_for_path(tmpfile); in LLVMFuzzerTestOneInput() 32 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput() 44 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
|
D | pixbuf_file_fuzzer.c | 27 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local 28 pixbuf = gdk_pixbuf_new_from_file(tmpfile, &error); in LLVMFuzzerTestOneInput() 31 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput() 55 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
|
D | animation_fuzzer.c | 28 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local 29 anim = gdk_pixbuf_animation_new_from_file(tmpfile, &error); in LLVMFuzzerTestOneInput() 32 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput() 53 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
|
/external/ltp/testcases/network/stress/multicast/grp-operation/ |
D | mcast-lib.sh | 100 local param_multi_socket ret tmpfile 106 tmpfile=$$ 107 EXPECT_PASS $MCAST_LCMD $param_multi_socket -n $num -p $mprefix \> $tmpfile 108 tst_res TINFO "joined $(grep groups $tmpfile)" 159 local tmpfile=$$ 160 EXPECT_PASS $MCAST_LCMD -n 1 -p $prefix \> $tmpfile 161 tst_res TINFO "joined $(grep groups $tmpfile)"
|
/external/elfutils/tests/ |
D | run-arsymtest.sh | 23 tmpfile=arsymtest.tmp 26 tempfiles $okfile $tmpfile $testfile 36 testrun ${abs_builddir}/arsymtest $lib $tmpfile || exit 1 37 sort $tmpfile > $testfile
|
/external/ltp/testcases/kernel/mem/mtest05/ |
D | mmstress.c | 276 int map_and_thread(char *tmpfile, in map_and_thread() argument 298 if (strcmp(tmpfile, "NULL")) { in map_and_thread() 300 open(tmpfile, O_RDWR | O_CREAT, in map_and_thread() 312 remove_files(tmpfile, NULL); in map_and_thread() 331 remove_files(tmpfile, NULL); in map_and_thread() 351 remove_files(tmpfile, NULL); in map_and_thread() 395 remove_files(tmpfile, map_addr); in map_and_thread() 419 remove_files(tmpfile, map_addr); in map_and_thread() 428 remove_files(tmpfile, map_addr); in map_and_thread() 445 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()
|
/external/parameter-framework/support/android/asio/ |
D | asio_shrinker.sh | 100 tmpfile=$(mktemp) 106 list_compiled_files "$ANDROID_PRODUCT_OUT" $tmpfile 109 list_compiled_files "$ANDROID_HOST_OUT" $tmpfile 115 -e 's@ @\n@' $tmpfile | \ 118 rm $tmpfile
|