File: 0.26-make-test.patch

package info (click to toggle)
nagios-plugin-check-multi 0.26-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,172 kB
  • sloc: perl: 2,296; makefile: 415; sh: 239
file content (25 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Fix build test to work with perl 5.18
 The test "option s requires an argument - RC3" fails when building
 with perl 5.18. Output differs from perl 5.14, when called with
 wrong argument.
 .
 - In perl 5.14, output goes to stdout, and looks like normal plugin
   output with.
 .
 - In perl 5.18, output goes to stderr, which the included test
   module does not capture. There is a new "Usage: <options>" output
   to stdout, which is checked for instead.
Author: Stig Sandbeck Mathisen <ssm@debian.org>
Forwarded: not-needed

--- a/plugins/t/10_check_multi.t.in
+++ b/plugins/t/10_check_multi.t.in
@@ -864,7 +864,7 @@ is(
 );
 like(
 	$result->output,
-	'/OK - 0 plugins checked,  \[Option s requires an argument.*\]/',
+	'/^Usage:/',
 	"output correct",
 );
 #-------------------------------------------------------------------------------