mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-12 23:47:34 +02:00
wrap delete-file in protect for cygwin
The file may still be referenced by the parent process. Fixes issue #302.
This commit is contained in:
parent
557b31e1dd
commit
3e28bdef8b
1 changed files with 6 additions and 5 deletions
|
@ -30,11 +30,12 @@
|
|||
(load lib-file)
|
||||
tests ...
|
||||
;; on any failure leave the stub and c file for reference
|
||||
(cond
|
||||
((= orig-failures (test-failure-count))
|
||||
(delete-file stub-file)
|
||||
(delete-file c-file)))
|
||||
(delete-file lib-file)))
|
||||
(protect (exn (else #f))
|
||||
(cond
|
||||
((= orig-failures (test-failure-count))
|
||||
(delete-file stub-file)
|
||||
(delete-file c-file)))
|
||||
(delete-file lib-file))))
|
||||
(else
|
||||
(test-assert (string-append "couldn't compile " name)
|
||||
#f))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue