Matthew Flatt
87274b2a97
procedure-rename
...
svn: r12952
2008-12-30 14:36:25 +00:00
Matthew Flatt
1642a84e69
add equal?/recur; implement equal? for image-snip% via properties
...
svn: r12950
2008-12-29 22:36:53 +00:00
Matthew Flatt
0cd2537a82
add equal<%> ad interface*
...
svn: r12946
2008-12-28 15:05:02 +00:00
Matthew Flatt
2083015b65
fix result checking for fxdiv
...
svn: r12938
2008-12-26 13:43:16 +00:00
Matthew Flatt
82ead03b92
change _fpointer handling to work with function pointers in structs and other such uses; add 'function-ptr' casting operation
...
svn: r12913
2008-12-20 05:09:35 +00:00
Matthew Flatt
23e8624e41
fix the test-suite sandbox
...
svn: r12907
2008-12-19 20:58:56 +00:00
Eli Barzilay
f74dc2b8c7
Added `call-with-trusted-sandbox-configuration', and used in scribble
...
and in tests.
svn: r12871
2008-12-16 20:29:17 +00:00
Eli Barzilay
43124c2ec5
more adjustments
...
svn: r12863
2008-12-15 21:37:55 +00:00
Eli Barzilay
f8dff60a01
adjust limits on tight test, others two, clarified comments
...
svn: r12862
2008-12-15 21:32:50 +00:00
Matthew Flatt
25b27a8b08
more memory-accounting repairs, so that sandbox tests now pass
...
svn: r12861
2008-12-15 21:15:24 +00:00
Eli Barzilay
0786da10cb
svn: r12860
2008-12-15 20:43:28 +00:00
Eli Barzilay
5141289bd7
* No nested code inspector for scribble sandboxes
...
* No nested inspectors or memory limit for testing sandboxes
svn: r12857
2008-12-15 18:29:59 +00:00
Eli Barzilay
04d0b55134
raise the limit for the problematic test, and compensate by doing more iterations
...
svn: r12855
2008-12-15 18:18:06 +00:00
Eli Barzilay
c62595772f
Finally enabled using a sub code-inspector properly, with a new
...
'read-bytecode permission mode. Added tests and (crappily)
documented.
svn: r12846
2008-12-15 01:07:00 +00:00
Eli Barzilay
9295a1dc27
* Fix memory test
...
* Better organization of `user-eval'
* Deal with cases when the evaluator dies outside of our control
svn: r12841
2008-12-13 23:26:44 +00:00
Eli Barzilay
39a69b30fd
Don't set memory limits or test for them when there is no memory
...
accounting.
svn: r12839
2008-12-13 22:44:02 +00:00
Eli Barzilay
813eb20e35
termination message now indicates suicides too (both killing the
...
thread or shutting the custodian)
svn: r12838
2008-12-13 22:39:49 +00:00
Eli Barzilay
188489b34f
* Added `exn:fail:sandbox-terminated' for all sandbox termination
...
kinds.
* The default exit handler kills the sandbox, with an appropriate
termination message.
* Also, sending an eof to the sandbox shows 'eof as the reason
* Added some tests for these.
* Still need to deal with termination messages for evaluator suicide.
svn: r12837
2008-12-13 22:12:16 +00:00
Eli Barzilay
55f1df58e1
Make sure that the module is also instantiated under the evaluation
...
limits too (the instantiation was happening outside of the limited
thunk)
svn: r12830
2008-12-13 16:41:07 +00:00
Eli Barzilay
3fcc58c05e
minor improvements
...
svn: r12789
2008-12-12 13:43:05 +00:00
Eli Barzilay
a1222d66ca
* Implementer global sandbox memory limit and added
...
`sandbox-memory-limit' to set it
* Added `evaluator-alive?'
* Undo accidental commenting of most tests
svn: r12786
2008-12-12 12:45:08 +00:00
Eli Barzilay
a0d1baea00
When an expression evaluation dies out of memory, the sandbox stays alive
...
svn: r12785
2008-12-12 11:22:08 +00:00
Sam Tobin-Hochstadt
08fa300d14
Make inference work in subtype tests.
...
Add test for top-arr.
svn: r12746
2008-12-08 18:26:58 +00:00
Matthew Flatt
4d8469b6cf
inline fixnum multiplication
...
svn: r12731
2008-12-08 13:36:24 +00:00
Sam Tobin-Hochstadt
dd8e878cb4
Fix time-apply, add test
...
svn: r12727
2008-12-08 03:12:38 +00:00
Sam Tobin-Hochstadt
238b248ad5
Add `current-continuation-marks'
...
Add some exns
Test require substructs
svn: r12726
2008-12-08 03:10:12 +00:00
Sam Tobin-Hochstadt
e6eb482de4
Enable require-typed-struct with substructures.
...
Fixes PR 9053.
Move test to succeed.
Add some new bindings.
svn: r12709
2008-12-05 00:25:02 +00:00
Matthew Flatt
e1126a66ed
some gc-related tests
...
svn: r12705
2008-12-04 23:04:10 +00:00
Matthew Flatt
97fafb6ce4
get rid of port-position tests on custom textual ports
...
svn: r12692
2008-12-03 21:29:06 +00:00
Matthew Flatt
8162eda54f
fix buggy new test
...
svn: r12691
2008-12-03 20:56:50 +00:00
Matthew Flatt
c55d305eab
more consistent form for a test
...
svn: r12690
2008-12-03 20:01:33 +00:00
Matthew Flatt
142fd53e90
R6RS test suite: no BOM -> big-endian output
...
svn: r12689
2008-12-03 20:00:13 +00:00
Matthew Flatt
1f2ebbb58e
R6RS test suite corrections from Kent
...
svn: r12688
2008-12-03 19:47:29 +00:00
Matthew Flatt
c333fa8fb5
fix problems with custodian boxes, especially for a box whose custodian is shut down via an ancestor custodian
...
svn: r12680
2008-12-02 19:51:01 +00:00
Eli Barzilay
eb54b1a5b2
* Added `call-in-nested-thread*', and used it to improve
...
`call-with-limits'; specifically, it can now distinguish killing the
main thread or shutting down the custodian from an out-of-memory
error.
* This also makes it possible to have threads created and stay alive
between evaluations.
* Added tests for this.
svn: r12673
2008-12-02 12:23:35 +00:00
Eli Barzilay
e0917e1a5e
* Added `call-in-sandbox-context'.
...
* Removed `get-namespace' since it's generalized in the above.
* Deal with killing the current thread (or the current custodian) in
the sandbox code. (Works only without per-expression limits --
still need to find a solution for `call-with-limits'.)
* Added tests for this.
svn: r12670
2008-12-02 05:26:45 +00:00
Eli Barzilay
ab817097b4
* Create string/bytes output port in the user's custodian (at least
...
try to do so...).
* Add tests for output collection under resources -- some are
commented since they're not working right, either a bug in this code
that I don't see, or some problem with memory accounting.
* Clarify in the docs that output collection is still under resource
limits.
svn: r12667
2008-12-01 22:19:58 +00:00
Eli Barzilay
30adf7980a
switch to scheme/base for the sandbox interface and for use in tests
...
svn: r12656
2008-12-01 03:37:02 +00:00
Matthew Flatt
2c48c2c817
splicing-syntax-parameterize and docs for scheme/splicing
...
svn: r12600
2008-11-26 21:31:58 +00:00
Eli Barzilay
06064b856b
added the scribble tests
...
svn: r12584
2008-11-25 01:00:37 +00:00
Matthew Flatt
f40ae63f45
R6RS test-suite patch from Taro Minowa (PR 9942)
...
svn: r12580
2008-11-24 21:15:22 +00:00
Matthew Flatt
a0f91d905e
revised internal-definitions context and a basic 'define-package' form
...
svn: r12579
2008-11-24 19:52:41 +00:00
Eli Barzilay
5b9f0aa322
Implemented a `no-empty-edge-matches' function using the new
...
`make-regexp-tweaker', which produces a regexp that cannot match an
empty string at the beginning or the end of the input. This:
* simplies a whole bunch of messy and fragile code
* makes `regexp-split' and friends usable with a pattern like #px"\\b"
(which previously would match in every position, making it explode
the string to 1-character strings)
* makes it even closer to what perl does, the only way that we produce
a different result from perl now is that we don't blindly drop empty
matches at the end like perl (it *does* keep empty matches in the
beginning though)
The two tests that demonstrated the difference are now changed, and a
bunch of other tests added.
svn: r12575
2008-11-23 05:40:54 +00:00
Matthew Flatt
2480a1c4e8
extra int-def tests
...
svn: r12565
2008-11-21 14:01:32 +00:00
Matthew Flatt
58f9e02513
fix (mostly) expand tests suite
...
svn: r12564
2008-11-21 13:52:20 +00:00
Jay McCarthy
daff0abe15
Extended example
...
svn: r12550
2008-11-20 23:57:32 +00:00
Matthew Flatt
8ccce66af7
round out inlining and optimization of simple allocating primitives
...
svn: r12539
2008-11-20 13:50:22 +00:00
Jay McCarthy
a687555c38
moving tests
...
svn: r12512
2008-11-19 22:22:02 +00:00
Sam Tobin-Hochstadt
4c0c3c0ff8
Fix dynamic context of use of match failure continuations.
...
svn: r12497
2008-11-18 21:17:36 +00:00
Sam Tobin-Hochstadt
d1fca9c04a
Fix PR 9918.
...
svn: r12480
2008-11-17 23:58:05 +00:00