projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix double-free bug.
[pspp]
/
tests
/
command
/
filter.sh
diff --git
a/tests/command/filter.sh
b/tests/command/filter.sh
index 180b59f68a99f5a59ba046c05344cb559b72248b..59cf5b3b9c8b3499180853d81426953330b6f49e 100755
(executable)
--- a/
tests/command/filter.sh
+++ b/
tests/command/filter.sh
@@
-3,6
+3,7
@@
# This program tests ....
TEMPDIR=/tmp/pspp-tst-$$
# This program tests ....
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
here=`pwd`;
here=`pwd`;
@@
-46,8
+47,8
@@
mkdir -p $TEMPDIR
cd $TEMPDIR
activity="create program"
cd $TEMPDIR
activity="create program"
-cat > $TE
MPDIR/filter.stat
<< EOF
-data list notable /
x
1-2.
+cat > $TE
STFILE
<< EOF
+data list notable /
X
1-2.
begin data.
1
2
begin data.
1
2
@@
-60,7
+61,7
@@
begin data.
9
10
end data.
9
10
end data.
-compute
filter
_$ = mod(x,2).
+compute
FILTER
_$ = mod(x,2).
filter by filter_$.
list.
filter by filter_$.
list.
@@
-75,7
+76,7
@@
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
activity="run program"
-$
here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/filter.stat
+$
SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
if [ $? -ne 0 ] ; then no_result ; fi