Am 03.01.2017 um 01:48 schrieb Zoffix Znet via RT:
I see support from users for having the `indir` routine,
Yes, chdir is nasty because it's a global setting and you never know
which of the functions you're calling might be changing the setting.
indir solves all these things. (Provided it changes the current
directory back even in the face of exceptions.)
4) The topic of this ticket: its default set of tests for the directory will
change (just test if it's a directory?)
Some platform might even be okay with a nondirectory for chdir. This
wouldn't be particularly useful, but we can't assume that all platforms
do only useful things.
That said, I think the indir tests should just test that chdir is being
called at the right times with the right arguments (can Perl6 tests do
mocking? that would be needed)
So any error case testing can be done for chdir.
Not every change will be possible, because we can't break existing spectests,
Oh, is Perl6 that stable now?
I thought it should still be possible to fix mistakes.
> and that's precisely the reason why spectests for current API of
indir should not be added.
+1