Anyone out there do any tinkering with Apache::Test? Here’s my problem. Whenever I’m doing normal tests, the working directory is the project root. I can reference files in the test folder via t/somefile. The minute I load and use Apache::Test, it changes my working directory to t, thus breaking all references to t/somefile.

So my first question is whether this is a feature or a bug. Second, what’s the best way to deal with this? I can either chdir up to the root if I’m inside of t/ or change the test files to alter the file path based on the current working directory.

Of course, my other gripe is Apache::Test isn’t quoting the httpd.conf paths sent to the Apache binary, so I’m forced to move my Apache install to C:\ when developing on Windows. Nice.

See more posts about: perl | All Categories