Commit Graph

1363 Commits

Author SHA1 Message Date
Stevie Strickland
1943083cf9 Fix nested with-contracts by checking explicitly for ssps. Apparently
painting the bindings causes the ssp to later fail when you try to access
the parameter.  Not sure if this is a bug or not, will talk to Matthew.

svn: r13621
2009-02-15 21:59:22 +00:00
Sam Tobin-Hochstadt
204806a13a revert back to regular parse type
svn: r13619
2009-02-15 21:57:30 +00:00
Sam Tobin-Hochstadt
738b8311af sync to trunk
svn: r13609
2009-02-15 17:45:53 +00:00
Stevie Strickland
534c50d900 Revise that test. The current behavior is correct, if odd.
svn: r13603
2009-02-15 08:40:54 +00:00
Stevie Strickland
b6fdabcd73 Going ahead and adding this test, but need to think about how to attack it.
svn: r13602
2009-02-15 08:31:13 +00:00
Stevie Strickland
62d82ca9be Clean up some bindings, moving them from defines to letrec-syntax.
svn: r13599
2009-02-15 05:20:30 +00:00
Stevie Strickland
cbcad0528c There is now a new form, define-unit/contract, that basically mixes
define-unit with the application of a unit contract.  So you can think
of it as a define/contract for units that keeps the static info needed
for link inference.

svn: r13584
2009-02-14 21:32:02 +00:00
Ryan Culpepper
44efc7cb48 stxclass:
fixed scoping of attributes (wrt declare)
  added 'attribute' form
  added internal/external literals form

svn: r13574
2009-02-14 12:17:14 +00:00
Stevie Strickland
387c8b210f * Fix unit/c so that less unnecessary code is generated.
* Fix contracts for signatures and units so that references to
   other signature members work appropriately.
 * Add text about signature and unit contracts to the Guide.

svn: r13562
2009-02-13 22:50:49 +00:00
Ryan Culpepper
f2204710fa stxclass: reorganized docs
svn: r13544
2009-02-13 03:23:07 +00:00
Stevie Strickland
8656e7e918 Fix up the contracts so that they properly refer to locally defined variables.
svn: r13527
2009-02-12 03:51:40 +00:00
Stevie Strickland
12110acfe3 Add test for non-unit check.
svn: r13526
2009-02-12 00:49:56 +00:00
Stevie Strickland
fbb5de4fa7 Adding the initial cut at unit/c.
svn: r13524
2009-02-11 22:46:48 +00:00
Jay McCarthy
57549a1759 formlets
svn: r13510
2009-02-09 22:48:10 +00:00
Jay McCarthy
79ef2483f3 formlets tests
svn: r13508
2009-02-09 22:03:45 +00:00
Jay McCarthy
1e67e759d7 hmac-sha1
svn: r13506
2009-02-09 18:21:01 +00:00
Jay McCarthy
0f96462369 docs/test
svn: r13505
2009-02-09 17:48:04 +00:00
Matthew Flatt
767766521c infix for literal prefab structs, quasiquote unquoting in value positions of hash-table literals, and related changes (v4.1.4.3)
svn: r13504
2009-02-09 15:27:51 +00:00
Jay McCarthy
fe078ee54b stuffers
svn: r13474
2009-02-06 23:23:21 +00:00
Jay McCarthy
4f952a65d2 abstracting stuffing
svn: r13469
2009-02-06 19:58:50 +00:00
Sam Tobin-Hochstadt
2b54135394 test fix
svn: r13456
2009-02-05 15:05:59 +00:00
Sam Tobin-Hochstadt
52d711e0bd use exact-integer? instead of integer?
use (Listof Any) instead of List

svn: r13437
2009-02-04 23:06:35 +00:00
Jay McCarthy
0888178644 Digest auth
svn: r13418
2009-02-04 18:59:26 +00:00
Jay McCarthy
0b816d2942 cookies
svn: r13397
2009-02-03 22:32:35 +00:00
Jay McCarthy
304b163623 bytes
svn: r13394
2009-02-03 20:21:05 +00:00
Jon Rafkind
51839c33a1 put correct value in the test
svn: r13380
2009-02-03 17:37:19 +00:00
Jay McCarthy
7f13cb3da8 prefer bytes
svn: r13377
2009-02-03 16:23:28 +00:00
Jon Rafkind
6ebd445726 add != to honu. start making some tests
svn: r13372
2009-02-03 01:47:33 +00:00
Jay McCarthy
99e9376a73 Fixing tests
svn: r13351
2009-02-02 16:40:06 +00:00
Eli Barzilay
858e7dd94e test forbidden nested calls
svn: r13342
2009-01-31 20:24:35 +00:00
Eli Barzilay
339aa71441 even better
svn: r13341
2009-01-31 20:23:11 +00:00
Eli Barzilay
3956dc1530 more improvements to all four variants of exits
svn: r13340
2009-01-31 20:06:36 +00:00
Eli Barzilay
4b7e4e4322 misc improvements, add test for (exit)
svn: r13339
2009-01-31 19:46:33 +00:00
Eli Barzilay
67471cc62b cheap hack to find which memory error test is causing problems
svn: r13335
2009-01-31 15:48:31 +00:00
Stevie Strickland
f6493e1c32 Abstraction of the boxes used for unit imports/exports to allow for adding
contracts in an already created unit.

svn: r13331
2009-01-31 01:39:23 +00:00
Jay McCarthy
d3f6fed328 Error messages
svn: r13321
2009-01-29 20:21:21 +00:00
Stevie Strickland
2f323578de Disallow unit/new-import-export if contracts are involved. This is not
planned to be permanent, but until I've figured out how to implement the
fix, just say no.

svn: r13311
2009-01-29 07:19:23 +00:00
Jay McCarthy
254f924ebb immediate marking
svn: r13299
2009-01-28 15:30:36 +00:00
Sam Tobin-Hochstadt
5baa4390d3 Fix handling of (or) in match.
svn: r13295
2009-01-27 19:57:59 +00:00
Sam Tobin-Hochstadt
2962c0bfa7 Fix handling of inexact integer literals.
svn: r13294
2009-01-27 17:55:10 +00:00
Eli Barzilay
f5ce61de97 * More time for quiet.ss and for run-automated-tests.ss
* Both will kill their timer when done, so it doesn't trigger later on

svn: r13292
2009-01-27 15:10:52 +00:00
Robby Findler
134138916f allows colons in the userinfo field of a url (ie, does not encode them)
svn: r13282
2009-01-25 20:12:08 +00:00
Eli Barzilay
79e4fc3e9b minor
svn: r13277
2009-01-25 03:52:59 +00:00
Eli Barzilay
c79acd6f61 minor
svn: r13276
2009-01-25 03:35:37 +00:00
Matthew Flatt
df4b9f41a8 add bitwise-bit-field
svn: r13266
2009-01-23 17:22:57 +00:00
Ryan Culpepper
98b9a62775 stxclass: fixed build bug, fixed tests
svn: r13265
2009-01-23 15:13:49 +00:00
Matthew Flatt
38c75a82d1 fix a bad interaction between 'make-syntax-delta-introducer' and the top-level environment
svn: r13258
2009-01-22 18:52:40 +00:00
Ryan Culpepper
eb9fe4847f stxclass: created stxclass collection, with docs
svn: r13255
2009-01-22 05:50:55 +00:00
Matthew Flatt
db12513b65 fix #:all-defined for 'define-package' by adjusting 'identifier-remove-from-definition-context'; add for-syntax 'package?' and 'package-export-identifiers'; adjust Scribble to find definitions of phase-1 exports
svn: r13253
2009-01-21 20:00:55 +00:00
Matthew Flatt
0c591f9fc4 fix a file-relative-path test for windows (merge to 4.1.4)
svn: r13215
2009-01-19 04:32:46 +00:00
Robby Findler
f486051cd9 changed some overly specific tests so they dont have to be run from my directories and updated to some new mz error messages
svn: r13204
2009-01-18 19:28:51 +00:00
Stevie Strickland
e1d5ced45e Only apply a single contract wrapping to a value contracted through unit
exporting/importing.  Also add some more unit contract tests.

svn: r13203
2009-01-18 10:38:52 +00:00
Stevie Strickland
e6999c8184 Just to ensure that nothing wonky goes on, change these to function names that
aren't in scheme/base.

svn: r13201
2009-01-18 05:54:58 +00:00
Stevie Strickland
92fa69c387 Add some tests that check interaction between with-contract (here
through define/contract) and unit contracts.

svn: r13183
2009-01-16 22:21:18 +00:00
Stevie Strickland
f6d571db40 Add a test that involves blame on a non-unit entity.
svn: r13182
2009-01-16 20:46:39 +00:00
Stevie Strickland
0fcf609e2b Syncing again
svn: r13178
2009-01-16 19:11:18 +00:00
Stevie Strickland
cc9925dd6b Add unit contracts from branches/sstrickl/unit-contracts.
svn: r13177
2009-01-16 19:03:11 +00:00
Matthew Flatt
2ef432d1bf benchmark tabulation option
svn: r13176
2009-01-16 18:31:03 +00:00
Stevie Strickland
b29b08dec0 Adding tests, because we should.
svn: r13175
2009-01-16 18:24:59 +00:00
Stevie Strickland
4fd8753c66 Start of a testing framework for unit contracts.
svn: r13173
2009-01-16 17:50:05 +00:00
Stevie Strickland
768117b201 Sync to trunk in preparation of merging (though unit-contracts will go first).
svn: r13171
2009-01-16 16:59:20 +00:00
Eli Barzilay
a76cdc248f added promise-forced? and promise-running?
svn: r13160
2009-01-16 05:46:07 +00:00
Eli Barzilay
b81ea02cab add more tests, mainly for catching exceptions and other raised values
svn: r13159
2009-01-16 05:18:37 +00:00
Stevie Strickland
ea3879fd8f Syncing again, whee.
svn: r13136
2009-01-15 02:35:34 +00:00
Ryan Culpepper
92a938dc6d macro stepper tests: updated
svn: r13133
2009-01-15 00:07:47 +00:00
Stevie Strickland
a4165d14b4 Change this to match how the error messages now come across.
svn: r13125
2009-01-14 21:39:43 +00:00
Stevie Strickland
d3f703b043 Fixing these back up to how they were before.
svn: r13123
2009-01-14 21:31:46 +00:00
Stevie Strickland
5ac3135cd6 Syncing up here as well.
svn: r13118
2009-01-14 18:27:06 +00:00
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +00:00
Stevie Strickland
2537508865 Syncing on up
svn: r13084
2009-01-13 01:05:50 +00:00
Matthew Flatt
2530e04720 add some-system-path<->string functions to scheme/path
svn: r13065
2009-01-11 14:47:51 +00:00
Matthew Flatt
4180d67e34 make scheme/path fuctions work on paths for any playform
svn: r13064
2009-01-11 13:52:26 +00:00
Stevie Strickland
22ee00b10f Oh, no! Aliens, bio-duplication, nude conspiracies.. oh my God,
Lyndon LaRouche was right!

svn: r13037
2009-01-08 14:55:23 +00:00
Jay McCarthy
f5aa64f90b send/formlet issue
svn: r13020
2009-01-06 15:37:23 +00:00
Eli Barzilay
e371bd8f4a completed Matthias's aborted commit
svn: r12999
2009-01-04 13:59:00 +00:00
Ryan Culpepper
b6312ff3ca macro stepper tests:
added regression test for PR 10000
  updated lifting tests for new variable name convention

svn: r12994
2009-01-03 19:58:06 +00:00
Matthew Flatt
d596401804 scheme/foreign: allow #f as NULL function pointer, allow callback as cpointer
svn: r12992
2009-01-03 18:51:15 +00:00
Robby Findler
6cc488603f PR 9999: fixed color-list->image and alpha-color-list->image so that they accept zeros for the widths and heights
svn: r12988
2009-01-03 17:36:46 +00:00
Robby Findler
97e00eef97 fixed a bug in the ->d contract checking (wrt tail dropping)
svn: r12987
2009-01-03 16:57:46 +00:00
Robby Findler
3af2ea45d0 changed ->d so that it only checks the contract just above, not many above
svn: r12986
2009-01-03 16:40:54 +00:00
Stevie Strickland
6d966c80af Syncing
svn: r12982
2009-01-03 03:09:06 +00:00
Matthew Flatt
b2d0a37f7b add propagated arguments to 'call-with-continuation-prompt'; streamline 'with-handlers' expansion; speed up slightly some JITted cross-module function calls
svn: r12979
2009-01-02 21:57:31 +00:00
Matthew Flatt
c7acb6d9ef fix pinhole bug created by recent cache-image-snip% changes
svn: r12975
2009-01-02 20:19:36 +00:00
Matthew Flatt
5e9b0c157a fix from Will for set-port-position test by getting a position that will be used later (PR 9993)
svn: r12965
2009-01-01 21:36:37 +00:00
Robby Findler
fb821d9041 added argmin and argmax to scheme/list and to the teaching languages
svn: r12960
2009-01-01 00:03:31 +00:00
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
Stevie Strickland
9e4d8d08b9 Syncing
svn: r12929
2008-12-23 03:20:02 +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
Stevie Strickland
0b1829e250 Sync up
svn: r12877
2008-12-17 14:28: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
Stevie Strickland
236370fd9f Syncing up this branch to get ready to clean it up for future possible
merging.

svn: r12870
2008-12-16 20:06:24 +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
Stevie Strickland
dd5afccd82 Catch up to now.
svn: r12742
2008-12-08 17:02:26 +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
Stevie Strickland
5eab2260cc S-S-S-S-S-S-Syncing
svn: r12695
2008-12-04 16:15:18 +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
Stevie Strickland
e94cadd86d Syncing -- nothing to see here.
svn: r12660
2008-12-01 15:11:00 +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
Stevie Strickland
581800ad8c Splicing syntax parameterize, here I come!
svn: r12601
2008-11-26 22:42:32 +00:00
Matthew Flatt
2c48c2c817 splicing-syntax-parameterize and docs for scheme/splicing
svn: r12600
2008-11-26 21:31:58 +00:00
Stevie Strickland
6f83ed1a80 Sync that beautiful trunk footage
svn: r12593
2008-11-25 21:18:04 +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
Stevie Strickland
702c1b7af2 Syncerating the countryside
Syncerating the peasants
Syncerating all the peoples
in the thatched-roof COTTAGES!
THATCHED-ROOF COTTAGES!

svn: r12578
2008-11-24 17:52:56 +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
Stevie Strickland
998fe27185 Sync sync sync, programmer,
sync your branch to mine
sync sync sync, programmer,
sync it all the time

svn: r12567
2008-11-21 15:56:47 +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
Stevie Strickland
75c57820da A sync a day keeps... actually, it doesn't keep anyone away, and tends to make
one run into other people's bugs sooner, but OH WELL.

svn: r12543
2008-11-20 19:36:17 +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
Stevie Strickland
537d98ac20 Mergerating.
svn: r12510
2008-11-19 20:34:37 +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
Jay McCarthy
54429dc56b Response/basic bug
svn: r12474
2008-11-17 17:07:51 +00:00
Stevie Strickland
573caad99f Syncing up to trunk.
svn: r12470
2008-11-17 16:03:30 +00:00
Matthew Flatt
69fdabf0a0 fix {s,u}int-list->bytevector (PR 9916)
svn: r12459
2008-11-15 18:54:30 +00:00