Make file-list-queue% use new error format.
Closes PR 15013.
This commit is contained in:
parent
aef101fd84
commit
06634b74d5
|
@ -1,8 +1,13 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
(require
|
(require
|
||||||
|
racket/file
|
||||||
rackunit
|
rackunit
|
||||||
setup/parallel-build)
|
setup/parallel-build)
|
||||||
|
|
||||||
(check-exn exn:fail:contract? (λ () (parallel-compile ".")))
|
(check-exn exn:fail:contract? (λ () (parallel-compile ".")))
|
||||||
(check-exn exn:fail:contract? (λ () (parallel-compile-files (list) #:worker-count 2.5)))
|
(check-exn exn:fail:contract? (λ () (parallel-compile-files (list) #:worker-count 2.5)))
|
||||||
(check-exn exn:fail:contract? (λ () (parallel-compile-files (list) #:handler 5)))
|
(check-exn exn:fail:contract? (λ () (parallel-compile-files (list) #:handler 5)))
|
||||||
|
|
||||||
|
(define temporary-directory (make-temporary-file "parallel-build~a" 'directory))
|
||||||
|
(check-false (parallel-compile-files (list temporary-directory)))
|
||||||
|
(delete-directory/files temporary-directory)
|
||||||
|
|
|
@ -223,9 +223,10 @@
|
||||||
(match result-type
|
(match result-type
|
||||||
[(list 'LOCK fn) (lm/lock lock-mgr fn wrkr) #f]
|
[(list 'LOCK fn) (lm/lock lock-mgr fn wrkr) #f]
|
||||||
[(list 'UNLOCK fn) (lm/unlock lock-mgr fn) #f]
|
[(list 'UNLOCK fn) (lm/unlock lock-mgr fn) #f]
|
||||||
[(list 'ERROR msg) (handler id 'error work msg out err)
|
[(list 'ERROR long-msg short-msg)
|
||||||
(set! results #f)
|
(handler id 'error work long-msg out err)
|
||||||
#t]
|
(set! results #f)
|
||||||
|
#t]
|
||||||
[(list 'LOG level msg data)
|
[(list 'LOG level msg data)
|
||||||
(when (log-level? pb-logger level)
|
(when (log-level? pb-logger level)
|
||||||
(log-message pb-logger level msg (parallel-compile-event id data)))
|
(log-message pb-logger level msg (parallel-compile-event id data)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user