compiler.tests.stack-trace: use with-test-file.
parent
da4812ba21
commit
4bfcc86cc4
|
@ -1,6 +1,6 @@
|
|||
USING: accessors combinators continuations grouping io.backend
|
||||
io.encodings.utf8 io.files io.files.temp io.files.unique kernel
|
||||
math namespaces parser sequences tools.test ;
|
||||
io.encodings.utf8 io.files kernel math namespaces parser
|
||||
sequences tools.test ;
|
||||
IN: compiler.tests.stack-trace
|
||||
|
||||
: symbolic-stack-trace ( -- newseq )
|
||||
|
@ -40,9 +40,7 @@ IN: compiler.tests.stack-trace
|
|||
! #1265: Used to crash factor if compiled in debug mode.
|
||||
[
|
||||
[
|
||||
"compiler-run-file" "-test" [
|
||||
"USING: continuations io.backend ; [ normalize-path ] ignore-errors f"
|
||||
swap [ utf8 set-file-contents ] keep run-file
|
||||
] cleanup-unique-file
|
||||
] with-temp-directory
|
||||
"USING: continuations io.backend ; [ normalize-path ] ignore-errors f"
|
||||
swap [ utf8 set-file-contents ] keep run-file
|
||||
] with-test-file
|
||||
] [ wrong-values? ] must-fail-with
|
||||
|
|
Loading…
Reference in New Issue