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?


In reply to Too many tests for Windows command line? by simonm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.