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=4ebb57c41e7222d49fc0d71449e93e88f4a12645;hpb=691a034d7f2139076fa012739dffd40ef5db4a9b;p=pspp diff --git a/tests/data/data-out.at b/tests/data/data-out.at index 4ebb57c41e..b6d3b88e46 100644 --- a/tests/data/data-out.at +++ b/tests/data/data-out.at @@ -13,7 +13,8 @@ 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)]) +dnl +AT_BANNER([data output (data-out)]) AT_SETUP([numeric format output]) AT_DATA([num-out.pl], @@ -15688,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