Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item11332: expect_failure([$reason,][%conditions])
* =$reason= - Optional. String with reason for why failure is expected. * =%conditions= - Optional. Hash of conditions for when the failure is expected. All conditions must be met. Keys: * =using= - String (or arrayref of strings) of named configuration profile(s), feature(s) or plugin(s) which must be in use for the failure to be expected. See =check_using()= * =notusing= - As with =using=, but inverted sense (expect failure when NOT using feature(s)/config(s)/plugin(s)) * =dependency= - String (or arrayref of strings) of module(s), optionally of specific version(s) which must be present for the failure to be expected. Same strings as each line in BuildContrib's DEPENDENCIES. See =check_dependency()= Examples: <verbatim class="perl"> $this->expect_failure(); $this->expect_failure('Feature not yet implemented'); $this->expect_failure( using => 'ShortURLs' ); $this->expect_failure( dependency => 'Foswiki,<,1.1' ); $this->expect_failure( 'Requires ADDTOZONE feature', notusing => 'ZonePlugin' dependency => 'Foswiki,<,1.1' ); $this->expect_failure( 'Javascript and perl/Foswiki have different ideas about true & false', using => 'MongoDBPlugin' ); $this->expect_failure( 'Can\'t grep on windows', using => ['PlatformWindows', 'SearchAlgorithmForking'] ); $this->expect_failure( 'CGI.pm 3.43 causes double-encoding when using utf-8', using => 'unicode', dependency => 'CGI,=,3.43' ); </verbatim> git-svn-id: http://svn.foswiki.org/trunk@13323 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
PaulHarvey
authored and
PaulHarvey
committed
Dec 8, 2011
1 parent
b9bd29d
commit b4b23e1
Showing
3 changed files
with
286 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters