mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-19 14:29:27 +03:00
d1494a160d
For some reason, the new implementation doesn't think the existing code should have been sandboxed for the derivations of `open`. After considerable debugging, this seems to be due to the line: _ = FilePath.open being completely floated out of the combinator before the code is sent to the native evaluator. So in fact the sandboxing code there is correct, the function does _not_ need to be sandboxed. However, I'm uncertain why this discrepancy exists between the native and interpreted paths. It is completely dead code, though, so I've modified the example to not be dead. |
||
---|---|---|
.. | ||
array-tests.u | ||
base.md | ||
base.output.md | ||
bytes-tests.u | ||
code-lookup.u | ||
concurrency-tests.u | ||
interpreter-tests.md | ||
interpreter-tests.output.md | ||
interpreter-tests.sh | ||
io-tests.u | ||
jit-tests.md | ||
jit-tests.output.md | ||
jit-tests.sh | ||
list-tests.u | ||
math-tests.u | ||
Readme.md | ||
sandbox-tests.u | ||
serial-tests.u | ||
setup-base-codebase.sh | ||
tcp-tests.u | ||
testlib.u | ||
tests-interpreter-only.u | ||
tests-jit-only.u | ||
tests.u | ||
text-tests.u | ||
thread-killed-typeLink-test.u | ||
tls-chain-tests.u | ||
tls-tests.u |
Test suite for builtins
Edit tests.u
in this directory to add to the test suite. The same test suite can be run using the JIT or the interpreter, using either of the two scripts:
$ ./unison-src/builtin-tests/jit-tests.sh
$ ./unison-src/builtin-tests/interpreter-tests.sh
The scripts will fetch a copy of base and the scheme codegen library and cache it for subsequent runs.