X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fdata%2Fdata-out.at;h=b6d3b88e4615d4a9d03319b8fa19be0b13ab0345;hb=feba48309a227fe40feb3a87cbe900015021ac73;hp=0f8c6bfabd8daf3e76c52d9d7b5c901224e97582;hpb=759c65a59048de2b9d2ab35cf817fcce52d236f3;p=pspp diff --git a/tests/data/data-out.at b/tests/data/data-out.at index 0f8c6bfabd..b6d3b88e46 100644 --- a/tests/data/data-out.at +++ b/tests/data/data-out.at @@ -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 . +dnl AT_BANNER([data output (data-out)]) AT_SETUP([numeric format output]) @@ -46,7 +62,7 @@ print "EXECUTE.\n"; ]]) AT_CHECK([$PERL num-out.pl > num-out.sps]) AT_CHECK([pspp -O format=csv num-out.sps]) -AT_CHECK([inexactify$EXEEXT < output.txt > output.inexact]) +AT_CHECK([inexactify < output.txt > output.inexact]) AT_CHECK([gzip -cd < $top_srcdir/tests/data/num-out.expected.cmp.gz > expout.cmp]) AT_DATA([num-out-decmp.pl], [[use strict; @@ -14045,7 +14061,7 @@ print outfile='month-out.out'/x(month40). execute. ]) AT_CHECK([pspp -O format=csv month-out.sps], [1], [stdout]) -AT_CHECK([[sed '/^$/d' stdout | sort | uniq -c | sed 's/^[ ]*//']], [0], +AT_CHECK([[sed '/^ * *$/d' stdout | sort | uniq -c | sed 's/^[ ]*//']], [0], [dnl 38 error: Month number 0.000000 is not between 1 and 12. 38 error: Month number 0.500000 is not between 1 and 12. @@ -14961,7 +14977,7 @@ end repeat. execute. ]) AT_CHECK([pspp -O format=csv wkday-out.sps], [1], [stdout]) -AT_CHECK([[sed '/^$/d' stdout | sort | uniq -c | sed 's/^[ ]*//']], [0], +AT_CHECK([[sed '/^ * *$/d' stdout | sort | uniq -c | sed 's/^[ ]*//']], [0], [dnl 39 error: Weekday number 0.000000 is not between 1 and 7. 39 error: Weekday number 0.500000 is not between 1 and 7. @@ -15673,3 +15689,22 @@ AT_CHECK([cat wkday-out.out], [0], [dnl . ]) AT_CLEANUP + +dnl This checks for a regression where AHEX output would crash due to +dnl dereferencing string data as a pointer, for string widths between +dnl 5 and 8, inclusive. +AT_SETUP([AHEX output bug]) +AT_DATA([ahex.sps], [ +DATA LIST NOTABLE /s (a8). +BEGIN DATA. +abcdefgh +END DATA. +FORMATS s (AHEX16). +LIST. +]) +AT_CHECK([pspp -O format=csv ahex.sps], [0], [dnl +Table: Data List +s +6162636465666768 +]) +AT_CLEANUP