vocabs.metadata: Fix test so it stops trying to load the wrong platform vocabulary forever. Fixes #1463.
parent
bb16ef8a86
commit
2a520191e1
|
@ -1,5 +1,14 @@
|
||||||
USING: accessors kernel system tools.test vocabs.parser ;
|
USING: accessors debugger kernel system tools.test vocabs
|
||||||
|
vocabs.parser ;
|
||||||
IN: vocabs.metadata
|
IN: vocabs.metadata
|
||||||
|
|
||||||
[ os windows? "unix" "windows" ? use-vocab ]
|
: wrong-platform-vocab-name ( -- name )
|
||||||
|
os windows? "unix" "windows" ? ;
|
||||||
|
|
||||||
|
[ wrong-platform-vocab-name use-vocab ]
|
||||||
[ error>> unsupported-platform? ] must-fail-with
|
[ error>> unsupported-platform? ] must-fail-with
|
||||||
|
|
||||||
|
! Factor remembers that we tried to load the wrong vocab
|
||||||
|
! and this breaks f2 until we forget the vocab.
|
||||||
|
! See issue #1463.
|
||||||
|
[ wrong-platform-vocab-name forget-vocab ] try
|
||||||
|
|
Loading…
Reference in New Issue