foo)s+(?bar)?s+(?baz))/
> > Line
> > 3793
> >
> > The 'failure' is the extra 'not' before the pound sign.
> > I tried to figure out what's causing it, but couldn't.
Is it possible to put the TAP parser into a strict mode where it would detect
and fault these sorts of things?
(I think most specifically "these things" are lines that aren't /^ok/,
/^not ok/ or /^#/ )
Nicholas Clark
;s terminal is expecting the
same (8 bit) encoding as the script already is in.
However, it might be safe enough to invoke the testing Perl with -CLS
(set STDIN/STDOUT/STDERR to UTF-8 if the user's locale has UTF-8 in it)
which is probably going to be more right more often than anything else.
Not sure if -CLS only came in with 5.8.1
Nicholas Clark
ject file extension.
You can get that from $Config:
$ perl -V:obj_ext
obj_ext='.o';
Nicholas Clark
t skipping is better, because the tests run as non-root
already prove that the module's functionality worked. Adding a lot
of complex logic to the test to swap user when running as root would
actually make the test as much a test of the user ID swapping code,
and introduce code that isn't usually tested, and generally introduce
fragility and cause false positive failures.
Nicholas Clark
UsedAvail Capacity Mounted on
nas:/data 258199522 203419366 3412419686%/filer
Nicholas Clark
led from other projects
* It doesn't matter the the main project if it fails
* It can expand (or contract) to fit the student's abilities and whatever "end"
is reached it can still be declared a success
* It doesn't have a high barrier of entry due to needing knowledge of existing
code bases.
Now, does anyone know a student?
Nicholas Clark
are not those which you want to consider reserved. I guess that one
needs to loop over all characters in the string, and verify that if
$char eq lc $char then also $char ne uc $char. (But one could first
short circuit the common pass case with the test above)
Nicholas Clark
have to care about
$ grep -c 'ignore X' ~/.muttrc
100
That's the ones I've collected that I don't care about. And some of those are
common prefixes.
I guess that there are bazillions more. "There's one born every minute."
Nicholas Clark
On Mon, Apr 14, 2008 at 01:54:02PM +0200, Aristotle Pagaltzis wrote:
> * Nicholas Clark <[EMAIL PROTECTED]> [2008-04-14 08:00]:
> > $ grep -c 'ignore X' ~/.muttrc
> > 100
> >
> > That's the ones I've collected that I don't care about. And
test to call it quite
tersely, with minimal code duplication, possibly using closures.
One will still get all the diagnostics from running the test twice.
It would just be that the second test, the one we currently don't have a way
to write, would loose its "TODO" and become a hard fail if things change in
the wrong direction.
Nicholas Clark
t in turn to make it pass
I could well spend more time bodging that than actually writing
documentation. Which, I agree with chromatic, would be stupid, and not
something that I'd like to see promoted.
(Is "You have POD and it's well formed" is something that is already tested?)
Nicholas Clark
ropose
> > turning it into a module and dual-lifing it to CPAN.
>
> Nicholas Clark wrote:
> > Why are they using it, rather than something built from
> > Test::Builder? What does it offer that Test::Builder
> > derived modules don't?
>
> Jerry D. Hedden
hich_perl(), fresh_perl* and
the isa/can tests)
Nicholas Clark
here:
http://public.activestate.com/cgi-bin/perlbrowse?filename=t%2Fharness&show_blame=Show+Annotated+File
If you want to break it, it doesn't matter. I'll take it out again.
Nicholas Clark
ication time is stamped with a time from the client, and if they're
out the "impossible" can happen. Which when you're sanity testing the ops
that read these sorts of things, you're looking out for.
Although I suspect that there can be more general problems with make getting
(correctly) confused by timestamps on files it touched.
Nicholas Clark
it's a problem. I'm not convinced that your
cure will work with all real world volunteers.
Nicholas Clark
t;use
> warnings" to my code. ;-)
Wouldn't it be simpler to send a patch to domm that makes the warnings point
credited if the module states a requirement on perl pre 5.006, and has a -w
on the #! line?
Nicholas Clark
erything the warnings pragma can do, so by changing to use it I might
be adding bugs.
Nicholas Clark
en, because modules containing XS should be installed
to an architecture specific path, and the architecture name used differs
for threaded versus unthreaded.
Nicholas Clark
t ;-)
>
> You need a +15 modifier of nothingbettertodoism to vote.
So everyone gainfully employed because they know what they are doing is
automatically disqualified?
Nicholas Clark
ly tested for. What's the best way to write a test that fits
within the current frameworks to prevent any regression?
It's not obvious to me how to make use_ok() test for failure.
Nicholas Clark
On Fri, Sep 19, 2008 at 03:35:36PM -0500, brian d foy wrote:
> In article <[EMAIL PROTECTED]>, Nicholas Clark
> <[EMAIL PROTECTED]> wrote:
>
> > But it seems that this bug is only fixed as a side effect of that change,
> > and
> > it's not actually tes
Is this TAP valid?
ok 1 - killed the keyd
1..1
ok 2 - Child exit of 3 was expected
prove (v3.14) thinks so:
All tests successful.
Files=1, Tests=2, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.04 cusr 0.00
csys = 0.07 CPU)
Result: PASS
I'm not convinced.
Nicholas Clark
ming
link karma was worth keeping, hence the original bid remains. Buyer beware.
You *are* getting what you paid for.)
Nicholas Clark
gt; isnt( $foo, '', "Got some foo" );
>
>
> which feels such a weak test I don't think I'd write it.
I find
isnt($foo, undef);
useful as it gives better failure diagnostics than
ok(defined $foo);
Nicholas Clark
On Sat, Feb 14, 2009 at 12:57:45PM +0200, Gabor Szabo wrote:
> On Thu, Feb 12, 2009 at 3:18 PM, Nicholas Clark wrote:
> > I find
> >
> >isnt($foo, undef);
> >
> > useful as it gives better failure diagnostics than
> >
> >ok(defined $foo);
ntly has this difference from Module::Build
http://perl5.git.perl.org/perl.git/commit/86bddcbfaf2555223ec8fc596416d13d7a1a1118
which relates to https://rt.cpan.org/Public/Bug/Display.html?id=42724
Nicholas Clark
just sitting
in the garden, I opted for sitting in the garden. I would have done again
last night, except that the sun had already gone away. Pesky daystar. :-)
Nicholas Clark
an.org/~mschwern/ExtUtils-MakeMaker-6.56/
says "Repository http://github.com/schwern/extutils-makemaker "
Nicholas Clark
these days? ie - is it possible to refactor
Devel::Cover to provide the same coverage reports, but generate them from
an nytprof.out file? If not, what's missing from the nytprof.out file?
Would this reduce the maintenance load on Devel::Cover?
Nicholas Clark
staying in a hotel roughly
midway, so walked to it from Gare du Nord, and walked from the hotel to
the venue)
I like things that are convenient for la Gare du Nord. I'm biased :-)
Nicholas Clark
82%28v=vs.85%29.aspx
I've also found
http://msdn.microsoft.com/en-us/library/ms738547%28v=vs.85%29.aspx
Whereas the BSD socket() implementation works in such a way that a socket FD
can be substituted for a file FD, pipe FD or tty FD, and the program
continues to work just as it did before, without needing any special case
code. Doesn't even need recompiling.)
Nicholas Clark
On Wed, Nov 16, 2011 at 11:15:21PM -0800, Michael G Schwern wrote:
> On 2011.11.16 5:58 PM, Father Chrysostomos via RT wrote:
> > I think these patches are safe, but given the recent thread about
> > dual-lifing test.pl I'm not even sure whether I should apply it or not.
>
ferent machine to actually run the complete tests.
> That's worst case. I can probably get compile time down at least 20ms which
> shaves off about 30 seconds.
The IO::Compress tests being such a reliable serial bottleneck that I can set
off a complete build and test run while writing this e-mail just to check
that I had the right distribution, and it finishes before me :-)
Nicholas Clark
vate. Meanwhile the unwilling stars of Wikileaks have
discovered that whilst it was always the case that anything you write down
might end up becoming public, computers just make this a lot easier on an
industrial scale.
Nicholas Clark
the time. So is it possible for TAP::Parser to use
a more efficient format in memory to "archive" results for tests where
every single subtest was an "ok"?
Nicholas Clark
someone will think that as this is an
optimisation project, it's fun. The code is here:
https://github.com/Perl-Toolchain-Gang/Test-Harness
Nicholas Clark
97 from
any available sources - mostly stable and development release tarballs.
So we have over 25 years of history in version control, although the
resolution of changes isn't that good for changes more than 16 years old.
Nicholas Clark
101 - 138 of 138 matches
Mail list logo