Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#689) * Add some tests for racket/htdp#228, racket/htdp#229, and racket/htdp#230 to `tests/drracket/module-lang-test`. + Tests of racket/htdp#229 should first save the buffer to disk before running + Some racket/htdp#229 tests are ported from htdp-test:intm-lam.rktl * Update `tests/drracket/language-test` to match racket/htdp#229. * Manually check for empty stderr in tests/drracket/module-lang-test Somehow `-e`/`--check-stderr` does not work with `tests/drracket/module-lang-test` (perhaps due to using `test-log` + `exit 0` in `fire-up-drracket-and-run-tests`?) * Test utils: sleep for 0.1s after printing error msg In tests/drracket/module-lang-test, stderr goes through a pipe to be checked for the absence of error messages. Therefore, sleep for 0.1s before existing to let the background thread pipe the messages to terminal.
- Loading branch information
0375cc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The errors should disappear tomorrow after a new snapshot build (with the updated
htdp-lib
) lands:0375cc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you say why you had to add the
sleep/yield
call?0375cc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this commit,
current-error-port
is piped through an intermediate port to be checked for cleanness in order for the exit code checking of GH CI to work.drracket/drracket-test/tests/drracket/module-lang-test.rkt
Lines 1022 to 1029 in 21060b7
The
sleep/yield
call is an attempt to hope that the intermediate port is flushed before the program exits.