sys-file-reader: Tolerate nominal case size of 0 without warning.
[pspp] / tests / data / data-in.at
index d5595975ec05e6a26c3074cb0ca43b6e70a6cf0b..dfdf37ef1fb6b04258451551a307fd679313f863 100644 (file)
@@ -1,3 +1,19 @@
+dnl PSPP - a program for statistical analysis.
+dnl Copyright (C) 2017 Free Software Foundation, Inc.
+dnl 
+dnl This program is free software: you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation, either version 3 of the License, or
+dnl (at your option) any later version.
+dnl 
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl 
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
+dnl
 AT_BANNER([data input (data-in)])
 
 m4_divert_push([PREPARE_TESTS])
@@ -25,7 +41,7 @@ EOF
 #! /usr/bin/perl
 use strict;
 use warnings;
-do 'my-rand.pl';
+do './my-rand.pl';
 my_rand (1) foreach 1...10000;
 our $seed;
 die $seed if $seed != 1043618065;
@@ -39,7 +55,7 @@ date_in () {
 use strict;
 use warnings;
 
-do 'my-rand.pl';
+do './my-rand.pl';
 
 my ($fmt_name, @templates) = @ARGV;
 
@@ -198,7 +214,7 @@ time_in () {
 use strict;
 use warnings;
 
-do 'my-rand.pl';
+do './my-rand.pl';
 
 my ($skip, $fmt_name, @templates) = @ARGV;
 
@@ -287,7 +303,7 @@ use POSIX;
 use strict;
 use warnings;
 
-do 'my-rand.pl';
+do './my-rand.pl';
 
 for my $number (0, 1, .5, .015625, 123) {
     my ($base_exp) = floor ($number ? log10 ($number) : 0);
@@ -3413,7 +3429,7 @@ AT_CLEANUP
 
 AT_SETUP([binary and hexadecimal input (IB, PIB, and PIBHEX formats)])
 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > binhex-in.data])
-AT_CHECK([wc -c < binhex-in.data | sed 's/[    ]//g'], [0], [131072
+AT_CHECK([[wc -c < binhex-in.data | sed 's/[   ]//g']], [0], [131072
 ])
 AT_DATA([binhex-in.sps], [dnl
 SET RIB=MSBFIRST.
@@ -3434,7 +3450,7 @@ AT_CLEANUP
 
 AT_SETUP([BCD input (P and PK formats)])
 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > bcd-in.data])
-AT_CHECK([wc -c < bcd-in.data | sed 's/[       ]//g'], [0], [131072
+AT_CHECK([[wc -c < bcd-in.data | sed 's/[      ]//g']], [0], [131072
 ])
 AT_DATA([bcd-in.sps], [dnl
 SET ERRORS=NONE.
@@ -3454,7 +3470,7 @@ AT_CLEANUP
 
 AT_SETUP([legacy input (N and Z formats)])
 AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > legacy-in.data])
-AT_CHECK([wc -c < legacy-in.data | sed 's/[    ]//g'], [0], [131072
+AT_CHECK([[wc -c < legacy-in.data | sed 's/[   ]//g']], [0], [131072
 ])
 AT_DATA([legacy-in.sps], [dnl
 SET ERRORS=NONE.