Skip to content

Let a package run some of its tests under a command prefix - #20

Open
samth wants to merge 1 commit into
racket:masterfrom
samth:drdr-stacks-on-timeout
Open

samth wants to merge 1 commit into
racket:masterfrom
samth:drdr-stacks-on-timeout

Conversation

@samth

@samth samth commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

To find out why a test hangs or crashes on DrDr, it helps to run that
test under a tool such as gdb or rr. Let a package ask for that in its
info.rkt, the way test-xvfb-paths asks for Xvfb: each entry of
test-command-prefixes pairs a relative path (a file or a directory)
with a list of strings that DrDr puts before the test's raco test
command. A test that also needs Xvfb runs the prefixed command under
xvfb-run. For example,

(define test-command-prefixes
'(("hangs.rkt" ("/usr/bin/rr" "record"))))

The help page documents the new field.

@samth samth changed the title Record the stacks of a test that DrDr kills for taking too long Let the configuration run some tests under a command prefix Sep 24, 2026
@samth
samth force-pushed the drdr-stacks-on-timeout branch from 6726240 to 36b0af3 Compare September 24, 2026 19:58
@rfindler

Copy link
Copy Markdown
Member

It might make sense to send the process a break to try to elicit a racket-level stacktrace too.

To find out why a test hangs or crashes on DrDr, it helps to run that
test under a tool such as gdb or rr. Let a package ask for that in its
info.rkt, the way `test-xvfb-paths` asks for Xvfb: each entry of
`test-command-prefixes` pairs a relative path (a file or a directory)
with a list of strings that DrDr puts before the test's `raco test`
command. A test that also needs Xvfb runs the prefixed command under
xvfb-run. For example,

  (define test-command-prefixes
    '(("hangs.rkt" ("/usr/bin/rr" "record"))))

The help page documents the new field.
@samth
samth force-pushed the drdr-stacks-on-timeout branch from 36b0af3 to 85c24cc Compare September 24, 2026 20:06
@samth samth changed the title Let the configuration run some tests under a command prefix Let a package run some of its tests under a command prefix Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants