scriptlike v0.10.2 (2017-03-03T21:34:56Z)
Home
Dub
Repo
useSandbox
scriptlike
core
Undocumented in source.
version(unittest_scriptlike_d)
enum
useSandbox
=
q{
import
std.stdio
;
auto
oldCwd
=
std.file.getcwd
();
auto
sandboxDir
=
openSandbox
();
scope
(
success
)
// Don't cleanup upon failure, so the remains can be manually insepcted.
tryRmdirRecurse
(
sandboxDir
);
scope
(
failure
)
writeln
(
"Sandbox directory: '"
,
sandboxDir
,
"'"
);
scope
(
exit
)
std.file.chdir
(
oldCwd
);
}
;
Meta
Source
See Source File
scriptlike
core
aliases
scriptlikeTraceCommands
functions
_interp_text
echoCommand
interp
openSandbox
testFileOperation
tmpName
unittest_tryRemovePath
yap
yapFunc
manifest constants
pwd
quiet
useSandbox
templates
trace
variables
checkResult
gagEcho
scriptlikeCustomEcho
scriptlikeDryRun
scriptlikeEcho