Skip to content

Commit 90ca958

Browse files
committed
Document intent of &*chdir tests
Can't figure out a way to prove from within roast that process dir changes as well (without using `nqp` and its `nqp::cwd` op). For purposes of release, we'll just document the intent of the test in the comments, and hopefully will come up with proper proof later on Addresses S#471 #471 sufficiently enough for 6.d release purposes, to not block the release
1 parent 51639a8 commit 90ca958

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

S32-io/chdir-process.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ plan :skip-all<Cannot test without $*TMPDIR and $*HOME set to readable dirs>
99
unless $*TMPDIR ~~ :d & :r and $*HOME ~~ :d & :r;
1010

1111
plan 8;
12+
13+
# XXX TODO: `&*chdir` changes process dir, however `qx` respects `$*CWD`,
14+
# so these tests do not currently manage to prove the process directory changes
15+
# along with the value of `$*CWD` as well:
16+
# https://github.com/perl6/roast/issues/471
1217
my &sys-cwd = $*DISTRO.is-win ?? {qx`echo %cd%`.chomp.IO} !! {qx`pwd`.chomp.IO};
1318

1419
subtest '&*chdir into IO::Path respects its :CWD attribute' => {

0 commit comments

Comments
 (0)