| /openbsd-src/gnu/llvm/clang/tools/scan-build-py/tests/functional/cases/ |
| H A D | test_from_cdb.py | 38 with libear.TemporaryDirectory() as tmpdir: 39 cdb = prepare_cdb('regular', tmpdir) 40 exit_code, reportdir = run_analyzer(tmpdir, cdb, []) 44 with libear.TemporaryDirectory() as tmpdir: 45 cdb = prepare_cdb('clean', tmpdir) 46 exit_code, reportdir = run_analyzer(tmpdir, cdb, []) 50 with libear.TemporaryDirectory() as tmpdir: 51 cdb = prepare_cdb('clean', tmpdir) 52 exit_code, reportdir = run_analyzer(tmpdir, cdb, ['--keep-empty']) 58 with libear.TemporaryDirectory() as tmpdir: [all …]
|
| H A D | test_create_cdb.py | 16 def run_intercept(tmpdir, args): argument 17 result = os.path.join(tmpdir, 'cdb.json') 18 make = make_args(tmpdir) + args 30 with libear.TemporaryDirectory() as tmpdir: 31 result = self.run_intercept(tmpdir, ['build_regular']) 36 with libear.TemporaryDirectory() as tmpdir: 37 result = os.path.join(tmpdir, 'cdb.json') 38 make = make_args(tmpdir) + ['build_regular'] 46 with libear.TemporaryDirectory() as tmpdir: 47 result = self.run_intercept(tmpdir, ['-j', '4', 'build_regular']) [all …]
|
| H A D | test_from_cmd.py | 24 with libear.TemporaryDirectory() as tmpdir: 25 make = make_args(tmpdir) + ['build_regular'] 26 outdir = self.run_analyzer(tmpdir, [], make) 30 with libear.TemporaryDirectory() as tmpdir: 31 make = make_args(tmpdir) + ['build_clean'] 32 outdir = self.run_analyzer(tmpdir, [], make) 36 with libear.TemporaryDirectory() as tmpdir: 37 make = make_args(tmpdir) + ['build_clean'] 38 outdir = self.run_analyzer(tmpdir, ['--keep-empty'], make) 49 with libear.TemporaryDirectory() as tmpdir: [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/scan-build-py/tests/unit/ |
| H A D | test_report.py | 15 with libear.TemporaryDirectory() as tmpdir: 16 file_name = os.path.join(tmpdir, 'test.html') 24 with libear.TemporaryDirectory() as tmpdir: 25 file_name = os.path.join(tmpdir, preproc + '.info.txt') 80 with libear.TemporaryDirectory() as tmpdir: 81 filename = os.path.join(tmpdir, 'test.c') 90 'output_dir': tmpdir, 99 for root, _, files in os.walk(tmpdir): 361 with libear.TemporaryDirectory() as tmpdir: 363 file_name = os.path.join(tmpdir, 'results-{}.sarif'.format(idx)) [all …]
|
| H A D | test_libear.py | 14 with sut.TemporaryDirectory() as tmpdir: 15 self.assertTrue(os.path.isdir(tmpdir)) 16 dirname = tmpdir 23 with sut.TemporaryDirectory() as tmpdir: 24 self.assertTrue(os.path.isdir(tmpdir)) 25 dirname = tmpdir
|
| H A D | test_analyze.py | 20 with libear.TemporaryDirectory() as tmpdir, \ 21 sut.report_directory(tmpdir, False, 'html') as report_dir1, \ 22 sut.report_directory(tmpdir, False, 'html') as report_dir2, \ 23 sut.report_directory(tmpdir, False, 'html') as report_dir3: 132 with libear.TemporaryDirectory() as tmpdir: 133 filename = os.path.join(tmpdir, 'test.cpp') 143 'output_dir': tmpdir, 150 for entry in os.listdir(tmpdir): 191 with libear.TemporaryDirectory() as tmpdir: 193 filename = os.path.join(tmpdir, 'test.c') [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/PathTools/t/ |
| H A D | tmpdir.t | 18 File::Spec->tmpdir; 19 is scalar keys %ENV, $num_keys, "tmpdir() shouldn't change the contents of %ENV"; 26 File::Spec::Win32->tmpdir; 27 is(scalar keys %ENV, 0, "Win32->tmpdir() shouldn't change the contents of %ENV"); 30 File::Spec::Win32->tmpdir; 31 is(scalar keys %ENV, $num_keys, "Win32->tmpdir() shouldn't change the contents of %ENV"); 33 # Changing tmpdir dynamically 41 my $tmpdir1 = $_->tmpdir; 45 my $tmpdir2 = $_->tmpdir; 46 isnt $tmpdir2, $tmpdir1, "$_->tmpdir works with changing env"; [all …]
|
| /openbsd-src/usr.bin/mail/ |
| H A D | temp.c | 43 char *tmpdir; variable 50 tmpdir = _PATH_TMP; in tinit() 51 if ((tmpdir = strdup(tmpdir)) == NULL) in tinit() 55 cp = tmpdir + strlen(tmpdir) - 1; in tinit() 56 while (cp > tmpdir && *cp == '/') { in tinit()
|
| /openbsd-src/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/ |
| H A D | Unix.pm | 135 =item tmpdir 149 my ($tmpdir, %tmpenv); 150 # Cache and return the calculated tmpdir, recording which env vars 154 return $tmpdir = $_[1]; 156 # Retrieve the cached tmpdir, checking first whether relevant env vars have 162 return $tmpdir; 179 $tmpdir = $_; 182 $tmpdir = $self->curdir unless defined $tmpdir; 183 $tmpdir 196 sub tmpdir { global() subroutine [all...] |
| H A D | AmigaOS.pm | 28 =item tmpdir 34 my $tmpdir; 35 sub tmpdir { subroutine 36 return $tmpdir if defined $tmpdir; 37 $tmpdir = $_[0]->_tmpdir( $ENV{TMPDIR}, "/t" );
|
| H A D | Win32.pm | 48 =item tmpdir 70 sub tmpdir { subroutine 71 my $tmpdir = $_[0]->_cached_tmpdir(qw(TMPDIR TEMP TMP)); 72 return $tmpdir if defined $tmpdir; 73 $tmpdir = $_[0]->_tmpdir( map( $ENV{$_}, qw(TMPDIR TEMP TMP) ), 79 $_[0]->_cache_tmpdir($tmpdir, qw(TMPDIR TEMP TMP));
|
| /openbsd-src/gnu/usr.bin/perl/t/io/ |
| H A D | fs.t | 66 my $tmpdir = tempfile(); 70 `rmdir /s /q $tmpdir 2>nul`; 71 `mkdir $tmpdir`; 74 `if f\$search("[.$tmpdir]*.*") .nes. "" then delete/nolog/noconfirm [.$tmpdir]*.*.*`; 75 `if f\$search("$tmpdir.dir") .nes. "" then set file/prot=o:rwed $tmpdir.dir;`; 76 `if f\$search("$tmpdir.dir") .nes. "" then delete/nolog/noconfirm $tmpdir.dir;`; 77 `create/directory [.$tmpdir]`; 80 `rm -f $tmpdir 2>/dev/null; mkdir $tmpdir 2>/dev/null`; 83 chdir $tmpdir; 401 chdir "./$tmpdir"; [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/ |
| H A D | BFD.pm | 106 my $tmpdir; 115 $tmpdir = join "", "./temp-$$-", map { $chrs[rand(@chrs)] } 1..8; 116 mkdir($tmpdir) or die "Failed to create '$tmpdir': $!"; 117 chdir($tmpdir) or die "Failed to chdir '$tmpdir': $!"; 147 rmtree($tmpdir);
|
| /openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-Install/t/lib/MakeMaker/Test/Setup/ |
| H A D | BFD.pm | 108 my $tmpdir; 117 $tmpdir = join "", "./temp-$$-", map { $chrs[rand(@chrs)] } 1..8; 118 mkdir($tmpdir) or die "Failed to create '$tmpdir': $!"; 119 chdir($tmpdir) or die "Failed to chdir '$tmpdir': $!"; 149 rmtree($tmpdir);
|
| /openbsd-src/gnu/lib/libiberty/src/ |
| H A D | make-temp-file.c | 100 char *tmpdir; in choose_tmpdir() local 126 tmpdir = XNEWVEC (char, len + 2); in choose_tmpdir() 127 strcpy (tmpdir, base); in choose_tmpdir() 128 tmpdir[len] = DIR_SEPARATOR; in choose_tmpdir() 129 tmpdir[len+1] = '\0'; in choose_tmpdir() 131 memoized_tmpdir = tmpdir; in choose_tmpdir() 132 return tmpdir; in choose_tmpdir()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Module-Metadata/t/lib/ |
| H A D | GeneratePackage.pm | 21 sub tmpdir { subroutine 23 my $tmpdir = File::Temp::tempdir( 26 DIR => ($ENV{PERL_CORE} ? _original_cwd : File::Spec->tmpdir), 29 Test::More::note "using temp dir $tmpdir"; 30 push @tmpdirs, $tmpdir; 31 return $tmpdir;
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/regression/ |
| H A D | ipc_files_abort_exit.t | 28 my $tmpdir = test2_ipc()->tempdir; 29 open(my $fh, '>', "$tmpdir/leftover") or die "Could not open file: $!"; 33 print "TEMPDIR: $tmpdir\n"; 53 chomp(my $tmpdir = $1); 54 if (-d $tmpdir) { 57 opendir(my $dh, $tmpdir) or diag "Could not open temp dir: $!"; 60 unlink("$tmpdir/$file") or diag "Could not remove $tmpdir/$file: $!"; 63 rmdir($tmpdir) or diag "Could not remove temp dir: $!";
|
| /openbsd-src/sbin/restore/ |
| H A D | main.c | 64 char *tmpdir; variable 86 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') in main() 87 tmpdir = _PATH_TMP; in main() 88 if ((tmpdir = strdup(tmpdir)) == NULL) in main() 90 for (p = tmpdir + strlen(tmpdir) - 1; p >= tmpdir && *p == '/'; p--) in main()
|
| /openbsd-src/gnu/usr.bin/texinfo/po/ |
| H A D | Rules-quot | 18 tmpdir=`pwd`; \ 23 …| sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | … 24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 rm -f $$tmpdir/$$lang.new.po; \ 27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 36 rm -f $$tmpdir/$$lang.new.po; \
|
| /openbsd-src/gnu/usr.bin/perl/cpan/podlators/t/lib/Test/ |
| H A D | Podlators.pm | 53 my $tmpdir = File::Spec->catdir('t', 'tmp'); 54 if (!-d $tmpdir) { 55 mkdir($tmpdir, 0777) or BAIL_OUT("cannot create $tmpdir: $!"); 57 my $path = File::Spec->catfile($tmpdir, "out$$.err"); 355 my $tmpdir = File::Spec->catdir('t', 'tmp'); 356 if (!-d $tmpdir) { 357 mkdir($tmpdir, 0777) or BAIL_OUT("cannot create $tmpdir: $!");
|
| /openbsd-src/bin/pax/ |
| H A D | pax.c | 225 char *tmpdir; in main() local 242 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') in main() 243 tmpdir = _PATH_TMP; in main() 244 tdlen = strlen(tmpdir); in main() 245 while (tdlen > 0 && tmpdir[tdlen - 1] == '/') in main() 253 memcpy(tempfile, tmpdir, tdlen); in main()
|
| /openbsd-src/gnu/usr.bin/texinfo/util/ |
| H A D | texi2dvi | 97 tmpdir=${TMPDIR:-/tmp}/t2d$$ # avoid collisions on 8.3 filesystems. 401 tmpdir_src=$tmpdir/src 405 tmpdir_xtr=$tmpdir/xtr 409 tmpdir_rcd=$tmpdir/rcd 414 tmpdir_bak=$tmpdir/bak 538 cd $tmpdir 543 ) >$tmpdir/txiversion.out 2>$tmpdir/txiversion.err 545 cat $tmpdir/txiversion.out 546 cat $tmpdir/txiversion.err >&2 549 …\(.*\)version \(....\)-\(..\)-\(..\).*$/txiformat=\1 txiversion="\2\3\4"/p' $tmpdir/txiversion.out` [all …]
|
| /openbsd-src/usr.sbin/unbound/ |
| H A D | install-sh | 339 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 343 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null 348 # directly in world-writeable /tmp, make sure that the '$tmpdir' 352 $mkdirprog $mkdir_mode "$tmpdir" && 353 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 360 test_tmpdir="$tmpdir/a" 374 rmdir "$tmpdir/a/b" "$tmpdir/ [all...] |
| /openbsd-src/gnu/usr.bin/perl/cpan/File-Temp/t/ |
| H A D | mktemp.t | 92 my $tmpdir = mkdtemp($template); 94 print "# MKDTEMP: Name is $tmpdir from template $template\n"; 96 ok( (-d $tmpdir ) ); 99 rmtree($tmpdir);
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/lib/ |
| H A D | gcc.exp | 89 global tmpdir 106 if ![info exists tmpdir] then { 107 set tmpdir /tmp 112 set gluefile ${tmpdir}/gcc-testglue.o;
|