• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item3706: Remove noisy debug message from unit tests

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Remove noisy debug message fro unit tests

We need those unit tests to run without bogus warnings and errors when they pass successfully.

This is how a test run looks like when all passes!! And this is with Apache::Htpasswd installed. And it is on Patch04x01 branch

perl ../bin/TestRunner.pl TWikiSuite.pm
exporting TWIKI_ASSERTS=1 for extra checking; disable by exporting 
TWIKI_ASSERTS=0
Assert checking on 1
....................................DEBUG: 
dir=/var/www/P41/pub/TemporaryStoreAutoAttachTestWeb/UnitTest1
.Subroutine TWiki::ASSERT redefined at /var/www/twiki/lib/TWiki/If.pm 
line 21
Prototype mismatch: sub TWiki::ASSERT: none vs ($;$) at 
/var/www/twiki/lib/TWiki/If.pm line 21
Subroutine TWiki::UNTAINTED redefined at /var/www/twiki/lib/TWiki/If.pm 
line 21
Prototype mismatch: sub TWiki::UNTAINTED: none vs ($) at 
/var/www/twiki/lib/TWiki/If.pm line 21
Subroutine TWiki::affirm redefined at /var/www/twiki/lib/TWiki/If.pm line 21
Constant subroutine TWiki::DEBUG redefined at 
/var/www/twiki/lib/TWiki/If.pm line 21
...............WARNING: unable to test native search, extension module 
may not be installed: Can't locate NativeTWikiSearch.pm in @INC (@INC 
contains: ../../bin ../../bin /var/www/twiki/lib/CPAN/lib//arch 
/var/www/twiki/lib/CPAN/lib//5.8.5/i386-linux-thread-multi 
/var/www/twiki/lib/CPAN/lib//5.8.5 /var/www/twiki/lib/CPAN/lib/ 
/var/www/twiki/lib /var/www/P41/lib/CPAN/lib /var/www/P41/lib 
/var/www/P41/bin /var/www/P41/test/unit 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 
/usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 
/usr/lib/perl5/vendor_perl . .) at 
/var/www/twiki/lib/TWiki/Store/SearchAlgorithms/Native.pm line 20.
BEGIN failed--compilation aborted at 
/var/www/twiki/lib/TWiki/Store/SearchAlgorithms/Native.pm line 20.
Compilation failed in require at (eval 5614) line 3.

.............................................................................................................Apache::Htpasswd::htDelete 
- User notauser not found in /tmp/junkpasswd:  at 
/var/www/twiki/lib/TWiki/Users/ApacheHtpasswdUser.pm line 79
[Fri Mar  2 08:25:17 2007] TestRunner.pl: Apache::Htpasswd::htDelete - 
User notauser not found in /tmp/junkpasswd:  at 
/var/www/twiki/lib/TWiki/Users/ApacheHtpasswdUser.pm line 79
.......................................................................................................................test 
'1' '-eq' '2' failed: Illegal seek.sh '-c' 'echo urmf; exit 7' failed: 
Illegal 
seek..............................................................................
Time: 139 wallclock secs (72.10 usr 33.35 sys +  2.29 cusr 31.15 csys = 
138.89 CPU)

OK (359 tests)

-- TWiki:Main/KennethLavrsen - 02 Mar 2007

i think we have done this now, by removing the noisy @INC paths, so I'm closing.

CC

ItemTemplate
Summary Remove noisy debug message from unit tests
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~twiki4
SVN Range TWiki-4.1.1, Sun, 25 Feb 2007, build 12972
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:13016 TWikirev:13017 TWikirev:13029 TWikirev:13030
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-03-05 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback