Re: [Perlunit-devel] DEBUG breaks tests
Status: Beta
Brought to you by:
mca1001
|
From: Piers C. <pdc...@bo...> - 2001-11-14 08:26:58
|
Adam Spiers <ad...@sp...> writes:
> Enabling DEBUG in T::U::Assert breaks the try_examples.t test, because
> of the
>
> print "Calling $assertion\n" if DEBUG;
>
> in T::U::Assert::assert().
>
> I haven't checked the effects of enabling other DEBUGs.
I wouldn't be surprised if they break other tests (at least those
tests that look at program output.)
> Any ideas what to do about it?
Well, there's the somewhat brutal idea of removing all the DEBUG stuff
and using Aspect::Trace to track program execution as and when we need
it.
However, the immediate step should probably be to change 'print' to
'warn' for all the 'if DEBUG' clauses...
--
Piers
"It is a truth universally acknowledged that a language in
possession of a rich syntax must be in need of a rewrite."
-- Jane Austen?
|