File: tests_cksum_base64.patch

package info (click to toggle)
rust-coreutils 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 485,976 kB
  • sloc: ansic: 103,608; asm: 28,570; sh: 8,672; python: 5,662; makefile: 474; cpp: 97; javascript: 72
file content (15 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: gnu/tests/cksum/cksum-base64.pl
===================================================================
--- gnu.orig/tests/cksum/cksum-base64.pl
+++ gnu/tests/cksum/cksum-base64.pl
@@ -92,8 +92,8 @@ my $prog = 'cksum';
 my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
 
 # Ensure hash names from cksum --help match those in @pairs above.
-my $help_algs = join ' ', map { m{^  ([[:alpha:]]\S+)} }
-  grep { m{^  ([[:alpha:]]\S+)} } split ('\n', `cksum --help`);
+my $help_algs = join ' ', map { m{^\s*-\s*([[:alpha:]]\S+):} ? $1 : () }
+   grep { m{^\s*-\s*([[:alpha:]]\S+):} } split ('\n', `cksum --help`);
 my $test_algs = join ' ', map {$_->[0]} @pairs;
 $help_algs eq $test_algs or die "$help_algs not equal to\n$test_algs";