in reply to Re^2: Testing for non-perl system requirements
in thread Testing for non-perl system requirements
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...).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Testing for non-perl system requirements
by Intrepid (Curate) on Apr 08, 2008 at 15:55 UTC | |
|
Re^4: Testing for non-perl system requirements
by mr_mischief (Monsignor) on Apr 08, 2008 at 04:59 UTC |