Item9129: testrunnier -worker has taint issue.

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: UnitTestContrib
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: MichaelTempest
setting aside that i don't know what -worker does, now that we've started to run with -T, it doesn't work

C:\src\svn.foswiki.org\trunk\core\test\unit>perl -wT ..\bin\TestRunner.pl -worker -clean Fn_SEARCH.pm
Options: -worker -clean
exporting FOSWIKI_ASSERTS=1 for extra checking; disable by exporting FOSWIKI_ASSERTS=0
Assert checking on 1
Use of uninitialized value $testToRun in string eq at C:\src\svn.foswiki.org\trunk\core\lib/Unit/TestRunner.pm line 227.

Insecure dependency in eval while running with -T switch at C:\src\svn.foswiki.org\trunk\core\lib/Unit/TestRunner.pm lin
e 232.

-- SvenDowideit - 09 Jun 2010

I believe it lets you run the unit tests in individual sub-processes, which provides (almost) total state separation.
Item1871: Provide infrastructure for unit tests to run in separate processes. The default is to run them all in a single process (as is current behaviour). Unit tests will be run in a separate process if they override run_in_new_process() so that it returns true
MichaelTempest did it, so marking for his fb.

-- CrawfordCurrie - 29 Jun 2010

That is exactly it. -worker is intended for TestRunner.pm's internal use only.

Fixed it on 1.1, and closing. Changed the component to Extension, UnitTestContrib and set the TargtRelease to n/a, since this isn't part of the core Foswiki.

-- MichaelTempest - 29 Jun 2010

 

ItemTemplate edit

Summary testrunnier -worker has taint issue.
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Extension
Component UnitTestContrib
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:8e85f26684ae
TargetRelease n/a
ReleasedIn
Topic revision: r4 - 29 Jun 2010, MichaelTempest
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy