X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fdata-io%2Fdataset.at;h=ea3bcc6f095d98c1c0c442a52fe8b9f4866db90c;hb=be14f24529e64b7d1dad2b148b4d254da38160de;hp=32ff5e140ad8cd1616809ee09f8a0477fdb79f3c;hpb=5cab4cf3322f29c0ed7134d23740e07382914f20;p=pspp diff --git a/tests/language/data-io/dataset.at b/tests/language/data-io/dataset.at index 32ff5e140a..ea3bcc6f09 100644 --- a/tests/language/data-io/dataset.at +++ b/tests/language/data-io/dataset.at @@ -1,16 +1,16 @@ dnl PSPP - a program for statistical analysis. dnl Copyright (C) 2017 Free Software Foundation, Inc. -dnl +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 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 dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . dnl @@ -294,3 +294,36 @@ Table: Datasets unnamed dataset (active dataset) ]) AT_CLEANUP + + + +dnl The bug for which the following test checks, is apparent only +dnl when compiled with -fsanitize=address or run under valgrind +AT_SETUP([DATASET heap overflow]) +AT_DATA([dataset.pspp], [dnl +DATASET DECLARE initial. +DATA LIST /x 1. + +DATASET COPY subsq. + +DATA LIST /y 2-4. +BEGIN DATA. +7 +END DATA. + +DATASET ACTIVATE subsq. + +LIST. +]) + +AT_CHECK([pspp -O format=csv dataset.pspp], [0], [dnl +Table: Reading 1 record from INLINE. +Variable,Record,Columns,Format +x,1,1-1,F1.0 + +Table: Reading 1 record from INLINE. +Variable,Record,Columns,Format +y,1,2-4,F3.0 +]) + +AT_CLEANUP \ No newline at end of file