aboutsummaryrefslogtreecommitdiff
path: root/tests/test-dirvish-config-wallpaper-program.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-22 16:09:49 -0500
committerCraig Jennings <c@cjennings.net>2026-05-22 16:09:49 -0500
commit541bcc5cb2e29bc284c7cbcbcd29c34f7d4414ee (patch)
treecb7bbf6d252f4de5220a5d6beee428c66497eaae /tests/test-dirvish-config-wallpaper-program.el
parent5a268fb36297800a204bed518f16ed7855700534 (diff)
downloaddotemacs-541bcc5cb2e29bc284c7cbcbcd29c34f7d4414ee.tar.gz
dotemacs-541bcc5cb2e29bc284c7cbcbcd29c34f7d4414ee.zip
fix(test): make test-name resilient to load-time cwd changes
make test-name loads every test file into one Emacs, then selects by name. test-system-defaults-functions.el requires system-defaults at load, which runs (setq default-directory user-home-dir), an intentional config choice. That leaked the cwd into the shared session, so every relative -l tests/X.el load after it resolved against the wrong directory and aborted the whole run with Error 255. I made two changes. test-name now passes absolute paths to -l so loads survive any cwd change, and the test contains the leak by let-binding default-directory around the require. The production setq stays as is.
Diffstat (limited to 'tests/test-dirvish-config-wallpaper-program.el')
0 files changed, 0 insertions, 0 deletions