simonm has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on an updated release of my Class::MakeMethods module and am unsure of how I can fix the errors reported by Win32 smoke testers:
NMAKE : fatal error U1095: expanded command line 'C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t\attribute_stnd_hash.t t\autoload_stnd_hash.t (other test scripts...) t\utility_inheritable.t' too long
Stop.
Ouch. It's true that this distribution includes a lot of test scripts, but of course Windows is the only platform to fail. The failing command line is a little over 2KB, so I suppose I'm running into the ShellExecute INTERNET_MAX_URL_LENGTH limit I found discussed here.
I had previously split the tests up into subdirectories but ran into a different set of Windows command-shell issues; I found a workaround that I hoped might fix this in this release (have a test that runs all the tests in a subdirectory) but I'm unsure if that works on Windows because it was masked by this other failure... Grr.
Does anyone have any other suggestions or workarounds to consider before I go off renaming the test scripts to have shorter filenames and/or merging them into fewer files? Will I be safe once I get the length of the command line down to a bit under 2KB or are there other limits to watch out for?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Too many tests for Windows command line?
by BrowserUk (Patriarch) on Sep 02, 2004 at 21:46 UTC | |
|
Re: Too many tests for Windows command line?
by PodMaster (Abbot) on Sep 03, 2004 at 05:17 UTC | |
by simonm (Vicar) on Sep 04, 2004 at 01:02 UTC | |
|
Re: Too many tests for Windows command line?
by Anonymous Monk on Sep 03, 2004 at 19:56 UTC | |
by simonm (Vicar) on Sep 03, 2004 at 21:11 UTC | |
|
Re: Too many tests for Windows command line?
by Anonymous Monk on Sep 03, 2004 at 19:19 UTC |