io.pathnames: don't use temp-file

locals-and-roots
Doug Coleman 2016-03-30 16:47:32 -07:00
parent 24d9e3a491
commit fe7d6ea76e
1 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,6 @@
USING: continuations hashtables io.backend io.directories
io.files.private io.files.temp io.pathnames kernel math
namespaces system tools.test ;
IN: io.pathnames.tests
USING: io.backend io.directories io.files.private io.files.temp
io.files.unique io.pathnames kernel locals math namespaces
system tools.test ;
{ "passwd" } [ "/etc/passwd" file-name ] unit-test
{ "awk" } [ "/usr/libexec/awk/" file-name ] unit-test
@ -53,8 +52,11 @@ IN: io.pathnames.tests
{ t } [ "resource:core" absolute-path? ] unit-test
{ f } [ "" absolute-path? ] unit-test
[ "touch-twice-test" temp-file delete-file ] ignore-errors
{ } [ 2 [ "touch-twice-test" temp-file touch-file ] times ] unit-test
[
"touch-twice-test" ".txt" [| path |
{ } [ 2 [ path touch-file ] times ] unit-test
] cleanup-unique-file
] with-temp-directory
! aum's bug
H{