Commit Graph

40920 Commits

Author SHA1 Message Date
Matthew Flatt
6f919635da schmeify: improve determinism by ordering lifted procedures 2019-12-05 07:06:28 -07:00
Matthew Flatt
1083aa1317 cs: improve function and module name
The former "path.rkt" module handles more than just paths.
2019-12-05 05:50:07 -07:00
Matthew Flatt
c93693169a cs: fix handling of an empty command-line argument 2019-12-05 05:43:31 -07:00
Matthew Flatt
1f92e98590 cs: fixes for uninterned symbols in compiled code
Use newly added support for uninterned symbols (as opposed to gensyms)
in the Chez Scheme layer. Using uninterned symbols reduces
non-determinsitsm in the build.

The change to use Chez Scheme uninterned symbols exposed problems with
the way that Racket-level uninterned symbols (formerly implemented
with gensym) are handled in ".zo" files. The problem is that some
uninterned symbols are marshaled with `racket/fasl`, which is not
consostent with those that are marshaled by Chez Scheme's `fasl`. This
patch fixes those problems by ensuring that uninterned symbols are
always lifted to the level of a Chez Scheme `fasl` for a complete
linklet bundle.
2019-12-04 21:11:42 -07:00
Matthew Flatt
4a36512570 cs: fix $value handling in fallback interpreter
Closes #2951
2019-12-04 07:06:50 -07:00
Matthew Flatt
1c74f8c956 improve names in keyword-function stack traces
Change the way names are generated for pieces of the implementation of
a keyword-argument function. These functions are not accessible as
values, so the names don't matter for printing a function, but the
names can show up in stack traces.
2019-12-02 07:03:09 -05:00
Paulo Matos
22387af060
Remove AppVeyor pipeline (#2949)
Work is already covered by tests in CI PR. Will soon be added to CI Push as well.
2019-12-02 10:39:57 +01:00
Paulo Matos
434fdc4de4
Remove support for azure-pipelines (#2948)
At this point Actions PR CI and Push CI cover all tests in Azure Pipelines so they
are not needed.
2019-12-02 10:29:40 +01:00
Paulo Matos
af986ffda6
Actions for Windows CI (#2945)
Build Racket.exe (3m) and RacketCS.exe (CS) on Windows on push.
2019-12-02 09:16:02 +01:00
Paulo Matos
2836a6027e
More complete set of tests in Actions (#2944)
This adds tests - 1 set of tests per step - for cgc, 3m and cs on Linux and MacOS.
2019-12-02 00:14:21 +01:00
Alexis King
e9fb60588b Fix fcontrol with prompt tag 2019-11-30 05:34:32 -06:00
Matthew Flatt
406fe85144 cs: fix defined-name reporting 2019-11-29 16:48:52 -07:00
Matthew Flatt
ec9c30d2f1 cs: improve error message for define-values
Report the first variable of the `define-values` form, like
traditional Racket does.
2019-11-29 15:09:32 -07:00
Matthew Flatt
fa2ef64adb schemify: adjust simple? for multiple returns
The check for whether an expression is "simple" at the schemify layer
didn't take into account the expected arity.
2019-11-29 15:09:32 -07:00
Paulo Matos
430760ddb4
Add testing for 3m and CS in push CI (#2943) 2019-11-29 16:59:01 +01:00
Matthew Flatt
2920fc3f64 enable unreliable tests via PLT_RUN_UNRELIABLE_TESTS
The attempt in 7a12d55e7d to handle some flaky tests didn't work.
This attempt effectively removes the tests, although they can
be enabled by setting `PLT_RUN_UNRELIABLE_TESTS` to "timing".

Also, replace the old hack of enabling some locale-specific tests
to also use `PLT_RUN_UNRELIABLE_TESTS`.
2019-11-29 07:46:26 -07:00
Paulo Matos
b8d2513b6d
Disabling sync flaky test on CGC
Due to:
https://github.com/racket/racket/runs/325146638#step:8:33
2019-11-29 08:01:07 +01:00
Matthew Flatt
b62de0e14d adjust openssl test for Racket CS error message 2019-11-28 16:52:17 -07:00
Matthew Flatt
338955046d configure: repair for --enable-embedfw
`-S` needed for `strip` with some(?) versions of the Mac build tools.
2019-11-28 16:32:22 -07:00
Paulo Matos
8a6a34674a
Add racket-test-core tests to CGC push CI (#2934)
Renamed from `Add per-section coretests` since we diverged from initial intention.
2019-11-28 19:52:19 +01:00
Brian Wignall
9474b1a1e8 Fix spelling typos 2019-11-28 07:51:39 -07:00
Matthew Flatt
197d6db634 openssl: adjust peer-verif test for renegotiation
TLS v1.3 does not support renegotiation.
2019-11-28 07:31:33 -07:00
Matthew Flatt
83fb6d2ca8 fix race conditions in some tests
Closes #2940
2019-11-28 06:28:42 -07:00
Matthew Flatt
da70c65f8d skip a GC test for CGC
Closes #2939
2019-11-28 06:26:22 -07:00
Matthew Flatt
a410905c99 cs: module in some error messages only when enabled
Check `(error-print-source-location)` before adding a module name in
an error message about use/set before definition.
2019-11-28 05:51:48 -07:00
Matthew Flatt
8b00249265 schemify: another variable-order repair
Continues 70459f4105.
2019-11-28 05:39:11 -07:00
Paulo Matos
bb77f736b6 Revert "Simplify build jobs with anchors (#2938)"
This reverts commit 13c9e2d27b.

I was sure this passed CI on my fork (it didn't) - however,
it is now giving syntax errors and they might not yet be supported:
https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/m-p/30336
2019-11-28 00:16:11 +01:00
Paulo Matos
13c9e2d27b
Simplify build jobs with anchors (#2938) 2019-11-27 23:27:16 +01:00
Matthew Flatt
2f4e4c5e6a configure: add --enable-embedfw for Mac OS
Building with `--enable-embedfw` creates executables that link
statically to the Racket runtime system, instead of linking to a
Racket framework, and that embed boot files in the case of Racket CS.

Executables built this way are meant to cooperate better with code
signing.

Related to #2910
2019-11-27 13:15:19 -07:00
Matthew Flatt
85459e5fef openssl: repairs related to listen on port number 0
Allow 0 as the port number in `ssl-listen`, and fix
`ssl-addresses` to work on a listener. Update a test
to use these features so that it won't conflict with
other tests that listen on TCP addresses.
2019-11-27 13:15:19 -07:00
lkh01
627d164a46 make syntax->string work with pairs and _
fixes #1628 and #1629
2019-11-27 13:57:45 -05:00
Paulo Matos
4d4e75983e
Load core-tests instead of mz-tests (#2932)
`mz-tests.rktl` became `core-tests.rktl` in 29a0c44c98.
2019-11-27 14:46:14 +01:00
Matthew Flatt
ad7511dd29 place: fix place-kill for Racket thread simulation
Where true places are not supported, `place` is simulated
using Racket threads, and `place-kill` did not kill off the
simulated place well enough.

Relevant to #2930
2019-11-27 06:21:56 -07:00
Matthew Flatt
82f4067b9a avoid a memory/performance test for CGC
Related to #2930
2019-11-27 06:19:33 -07:00
Matthew Flatt
7a12d55e7d mark some flaky synchronization tests
Try out `flaky-test` as a way of marking a test that is not guaranteed
to pass (e.g., because it depends on timing), but where many failures
in a row are unlikely unless something is broken.

Closes #2936
2019-11-27 06:14:02 -07:00
Matthew Flatt
dcc26b1b90 adjust GC will test for CGC
Closes #2935
2019-11-27 05:51:26 -07:00
Matthew Flatt
70459f4105 schemify: preserve variable assignment order at module end
A sequence of definitions (or `define-values`) at the end of
a module could get reordered. That only matters for the order
of checks for attempting to assign to a constant, though.
2019-11-26 16:16:34 -07:00
Matthew Flatt
80a29553c9 schmify: remove some unnecessary wrap tests
In many places, we know that we're dealing with plain pairs.
2019-11-26 16:16:34 -07:00
Paulo Matos
bdce2c8be7 Revert "Add job to test racket CGC on Linux and macOS (#2918)"
This reverts commit 568433c1a9.

There are some flaky tests that need to be fixed. See differences between:
    - https://github.com/racket/racket/runs/321618267
    - https://github.com/racket/racket/runs/321344052
2019-11-26 19:44:42 +01:00
Matthew Flatt
0e87b8a73f cs & io: fix ellipses printing in structs that are partially opaque 2019-11-26 09:17:02 -07:00
Matthew Flatt
98f0c16b8c cs & io: name for default error value conversion handler 2019-11-26 08:55:35 -07:00
Matthew Flatt
e15a6f99d4 cs: more consistent arity errors
Suppress the compiler's conversion of statically obvious arity errors
to an expression that reports a custom error with the an S-expression,
since that interferes with Rumble's normalization of error messages.
2019-11-26 08:44:39 -07:00
Matthew Flatt
79981af50b cs: fix build-time arity check
Bootstrap properly to avoid problems on updates and version changes.
2019-11-26 08:44:39 -07:00
Matthew Flatt
afff5ca7ac cs: adjust default prompt abort handler arity error message 2019-11-26 08:44:39 -07:00
Matthew Flatt
6389b18b01 cs: fix prompt handler for module/eval prompt and multiple values 2019-11-26 08:44:39 -07:00
Paulo Matos
568433c1a9
Add job to test racket CGC on Linux and macOS (#2918) 2019-11-26 15:18:16 +01:00
Matthew Flatt
256f57bfd8 openssl: adjust to make XonX mode work for Catalina
Same repair as #2859, but for XonX mode.
2019-11-26 04:47:01 -07:00
Matthew Flatt
1048341c62 cs & io: fix mode argument when print-as-expression is #f 2019-11-25 20:05:23 -07:00
Matthew Flatt
4c981258f6 cs: improve location info in backtrace
Provide paths instead of strings, and include position and span
information.
2019-11-25 19:00:33 -07:00
Matthew Flatt
254f6a4f14 cs: fix 'nonatomic allocation in 32-bit mode 2019-11-25 16:23:52 -07:00