But it will blow up on non unixy systems, right? If so, you should bail out unless the os is all good. Unless you don't care about those systems, but then you get ugly test reports.

Actually, I'm not sure about how big an issue this is at this point. Most of the "windows" boxes that perl runs on are likely to really be "cygwin", and MacOS is essentially the latest proprietary fork of the BSD codebase. As far as smoketest messages go, I'm sorting through too many other ugly messages to even notice if there's a VMS system out there complaining about something.

(Though it occurs to me now that I write this that I should really be trapping any errors on that qx, and also skipping the tests if it blows up. Easy enough.)

Still, I'll take a look at Devel::AssertOS... the last time I tried to think about issues like this was some years ago, and there definitely seemed to be some missing pieces in the story. Like, you could check $^O, but you had to parse the results yourself, and you needed to watch out for gotchas (e.g. you can't just match for "win" if you want to skip windows boxes, because that'll also hit other things like "cygwin"... so you might, wonder, what's the definitive list of all possible returns from $^O? Last I looked, there didn't seem to be one...).


In reply to Re^3: Testing for non-perl system requirements by doom
in thread Testing for non-perl system requirements by leocharre

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.