Matthew Flatt
f280fb14b4
places: doc repair, refine error checking, fix a test
2011-09-17 07:29:07 -06:00
Matthew Flatt
48fdcdd65d
fix a path test for windows
2011-09-17 07:29:07 -06:00
Matthew Flatt
376efea754
doc clarifications and tests for some file-locking corners
2011-09-17 07:29:07 -06:00
Matthew Flatt
33831cbd8a
add test to run test suite in multiple places
...
This is something we've done in the past, but it doesn't seem
to be in the tree anywhere.
Also, repair old "parallel.rktl" test.
2011-09-16 16:19:04 -06:00
Eric Dobson
7fcf28bef2
Gave subprocess and similar functions more precise types.
2011-09-16 17:20:31 -04:00
Kevin Tew
a605a97132
place* throw error on closed port
2011-09-16 13:24:39 -06:00
Robby Findler
443434fd01
adjust hangman test suite strategy; instead of waiting for a hangman frame to get teh focus,
...
instead wait for a frame in the user's eventspace that has the name "Hangman".
also, some minor rackety
2011-09-16 12:24:39 -05:00
Eli Barzilay
c5b3317daf
Make `enter!' go into a module even if there was an error when it was instantiated.
...
Previously, when trying to `enter!' into a module, an exception would
abort the whole thing, leaving the repl where it was. This behavior can
be very confusing:
> (module foo racket/base (define x 123) (error "bleh!"))
> (enter! 'foo)
bleh!
> x
reference to undefined identifier: x
> (enter! 'foo)
> x
123
Things are a little better with xrepl, since the prompt always indicates
the module that you're in. Still, it's unfortunate that a module with
an error is more likely to be something you'd want to debug -- and most
people are likely to miss the fact that entering a second time will work.
So make `enter!' catch exceptions when requiring the module, change the
namespace, and then re-raise the exception so the user sees it and is
left in the expected namespace.
2011-09-16 11:31:41 -04:00
Eli Barzilay
f02d19553c
Protect against bad values in `current-module-declare-name'.
...
Closes PR 12125
2011-09-16 10:48:18 -04:00
Eli Barzilay
370678abf6
Avoid compiling wxme test files.
...
Since that requires `racket/draw', which requires libcairo, which is
missing on some build machines. It might be needed in the future, but
for now it's better to make it easier to add build machines.
2011-09-16 10:48:18 -04:00
Eli Barzilay
623c7493ed
Some selective #:when (not ...)' ->
#:unless ...'.
2011-09-16 10:48:18 -04:00
Eli Barzilay
26857abe43
Preserve thread values.
...
This avoid problems with tests that are broken by changing environment,
like the TR tests that implicitly rely on a specific printer.
2011-09-16 10:48:17 -04:00
Jon Rafkind
0b4e630b8c
[honu] return currently parsed form if a macro is seen
2011-09-15 16:01:54 -06:00
Jon Rafkind
18b18aaded
[honu] add string comparison. add test.xml file for linq example
2011-09-15 16:01:54 -06:00
Jon Rafkind
0790efd585
[honu] add order-by clause
2011-09-15 16:01:54 -06:00
Jon Rafkind
aaed60493a
[honu] recognize linq literals
2011-09-15 16:01:53 -06:00
Kevin Tew
b6972a3b7f
dynamic-place now pipes standard io to standard out and error much like system.
2011-09-15 14:53:58 -06:00
Matthew Flatt
039f9c10f3
fix calculation for hash code of a hash table
2011-09-15 14:23:44 -06:00
Matthew Flatt
051d677f0f
place-channel fixes
...
Finalization for a place channel used a recursive, non-atomic
function, which meant that a thread switch could happen during
place-channel finalization, leaving the new thread with the
master GC and generally confused. (The random-message test
found the bug right away on my machine.)
We already have a non-recursive, non-atomic function to traverse
place messages, so collapse all modes into that one implementation.
Along the way, problems with empty structs (found by random tester)
and checking of file descriptors (test added) also fixed.
2011-09-14 20:43:36 -06:00
Mike Sperber
bbb38c0ff9
Report signature violations in the REPL.
...
In the course of this, revamp the logic that controls when the
test-results window pops up and when it doesn't.
Closes PR 12185
2011-09-14 22:00:42 +02:00
Robby Findler
437d654cc1
add some more snips to the test suite
2011-09-13 20:46:05 -05:00
Vincent St-Amour
e61d472ed3
Fix xrepl tests.
2011-09-13 17:29:47 -04:00
Robby Findler
89ef65a746
fix the collapsed snipclass so that it cooperates with the wxme library and
...
thus saved files with collapsed snips can be required in non-GUI contexts
2011-09-13 14:58:39 -05:00
Robby Findler
cbaa25c2b0
add a test so that the current version of files with collapsed snips in them
...
continue to work going forward
2011-09-13 14:56:33 -05:00
Jon Rafkind
386d3f4e1f
[honu] add example of for form for iterating over lists
2011-09-13 12:15:47 -06:00
Jon Rafkind
501efef8a1
[honu] dont produce an extra void expression in a block. add a for form to iterate over a list. add an example of linq with xml
2011-09-13 12:15:47 -06:00
Jon Rafkind
1650294a83
[honu] add simple class form. share the function parsing syntax class
2011-09-13 12:15:47 -06:00
Vincent St-Amour
40456b4fd8
Add a field to base types to indicate if they are numeric types or not.
2011-09-13 11:22:24 -04:00
Jay McCarthy
78151e073b
Fixing the handling of request bodies on non-POST methods
2011-09-13 08:57:58 -06:00
Matthew Flatt
b7bef3b3aa
add syntax-transforming-module-expression?',
variable-reference->module-base-phase'
2011-09-12 17:08:50 -06:00
Matthew Flatt
c352ef8fce
allow different phases for `free-identifier=?' arguments
2011-09-12 17:08:50 -06:00
Sam Tobin-Hochstadt
d0bf047121
Add test of behavior like the "module" language in DrRacket.
2011-09-12 12:14:50 -04:00
Robby Findler
cd1c96d596
adjust check syntax to work with the new begin-for-syntax
2011-09-10 22:10:59 -05:00
Robby Findler
e947df4359
finally fixed up the syncheck tests so they run under windows
2011-09-10 22:10:51 -05:00
Stephen Chang
3a44c34b39
Merge branch 'master' of pltgit:plt
2011-09-09 02:30:24 -04:00
Stephen Chang
65dbdafa92
add strictness tests for lazy
2011-09-09 02:30:06 -04:00
Matthew Flatt
d3c56c9f13
generalized `begin-for-syntax'
2011-09-08 14:06:00 -06:00
Sam Tobin-Hochstadt
cd073ad549
Switch to racket/base to fix bizarre bug.
2011-09-07 16:08:00 -04:00
Eric Dobson
c62f09ac5b
Fixed subtyping for StructTop. Closes PR11099.
2011-09-07 09:17:04 -04:00
Eric Dobson
32becc2e0a
Change overlap for structs in TR. Closes PR11390.
2011-09-07 09:17:04 -04:00
Eric Dobson
53ce20d3f9
Resolve names in overlap in TR. Closes PR11392.
2011-09-07 09:17:03 -04:00
Jon Rafkind
6b2c251b24
[honu] remove old test file
2011-09-06 17:33:13 -06:00
Jay McCarthy
e9a9d79490
Better solution to pr12145
2011-09-06 15:42:12 -06:00
Ryan Culpepper
69a56ef683
db: clean up test suite, (test conditional) => (conditional test), timing
2011-09-06 12:41:03 -06:00
Kevin Tew
f44337e28e
Change stderr output to logging, to please drdr
2011-09-06 11:13:13 -06:00
Jay McCarthy
b2570bee3c
Fixing allowance of multiple headers
2011-09-06 10:06:23 -06:00
Robby Findler
c30122d1fc
more adjustments to try to get the drracket test suites running in drdr
2011-09-05 20:19:17 -05:00
Robby Findler
09e65716d5
add missing require
2011-09-05 20:19:15 -05:00
Matthew Flatt
6d944453a7
make memory accounting and places work together
...
The `current-memory-use' function's result now includes the memory
use of places created from the calling place, and custodian memory
limits apply to memory use by places (owned by the custodian).
This change is relevant to PR 12004 in that DrRacket will no longer
crash on the example if a memory limit is in effect, but plain
Racket starts with no such limit and will exhaust all memory.
2011-09-05 13:24:22 -06:00
Robby Findler
cda12b39ed
more adjustment of the drracket test suites to avoid using os-given focus information
...
also increase the timeout of the io.rkt test
2011-09-05 14:13:49 -05:00