Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2012 18:32:56 -0800 (AKDT)
From:      Mel Flynn <rflynn@acsalaska.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        Steve Wills <swills@freebsd.org>, Maintainer <perl@freebsd.org>
Subject:   [patch] devel/p5-MooseX-Getopt: Fix test
Message-ID:  <201204040232.q342WugR075530@datakitty.lan.rachie.is-a-geek.net>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Mel Flynn
>Organization:	
>Confidential:	no 
>Synopsis:	[patch] devel/p5-MooseX-Getopt: Fix test
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 8.2-STABLE amd64
>Environment:
System: FreeBSD datakitty.lan.rachie.is-a-geek.net 8.2-STABLE FreeBSD 8.2-STABLE #6 r230977: Sun Feb 5 06:20:11 AKST 2012 mel@datakitty.lan.rachie.is-a-geek.net:/data/obj/data/RELENG_8/src/sys/GENERIC amd64


>Description:
Phrasing of exception has changed but test doesn't reflect it.

>How-To-Repeat:
Test affected port.

>Fix:

--- p5-MooseX-Getopt.patch begins here ---
Index: devel/p5-MooseX-Getopt/files/patch-t__008_configfromfile.t
===================================================================
RCS file: devel/p5-MooseX-Getopt/files/patch-t__008_configfromfile.t
diff -N devel/p5-MooseX-Getopt/files/patch-t__008_configfromfile.t
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ devel/p5-MooseX-Getopt/files/patch-t__008_configfromfile.t	4 Apr 2012 02:16:52 -0000
@@ -0,0 +1,20 @@
+--- t/008_configfromfile.t.orig	2012-02-03 05:27:38.000000000 -0900
++++ t/008_configfromfile.t	2012-04-03 18:15:22.000000000 -0800
+@@ -86,7 +86,7 @@
+ {
+     local @ARGV = qw( --required_from_argv 1 );
+ 
+-    like exception { App->new_with_options }, qr/Required option missing: required_from_config/;
++    like exception { App->new_with_options }, qr/Mandatory parameter 'required_from_config' missing in call to/;
+ 
+     {
+         my $app = App::DefaultConfigFile->new_with_options;
+@@ -155,7 +155,7 @@
+ # Required arg not supplied from cmdline
+ {
+     local @ARGV = qw( --configfile /notused );
+-    like exception { App->new_with_options }, qr/Required option missing: required_from_argv/;
++    like exception { App->new_with_options }, qr/Mandatory parameter 'required_from_argv' missing in call to/;
+ }
+ 
+ # Config file value overriden from cmdline
--- p5-MooseX-Getopt.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204040232.q342WugR075530>