#include <data/file-name.h>
#include "dirname.h"
-#include "canonicalize.h"
#include "xalloc.h"
#include "gettext.h"
return CMD_FAILURE;
}
- *filename = canonicalize_file_name (relative_filename);
- free (relative_filename);
+ *filename = relative_filename;
return CMD_SUCCESS;
}
# This program tests the INSERT command
-TEMPDIR=/tmp/pspp-tst-$$
+BASETEMPDIR=/tmp/pspp-tst-$$
+TEMPDIR=$BASETEMPDIR/link
TESTFILE=$TEMPDIR/`basename $0`.sps
# ensure that top_srcdir and top_builddir are absolute
cleanup()
{
if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then
- echo "NOT cleaning $TEMPDIR"
+ echo "NOT cleaning $BASETEMPDIR"
return ;
fi
cd /
- rm -rf $TEMPDIR
+ rm -rf $BASETEMPDIR
}
exit 0;
}
-mkdir -p $TEMPDIR
+mkdir -p $BASETEMPDIR/target
+
+ln -s $BASETEMPDIR/target $TEMPDIR
cd $TEMPDIR
EOF
if [ $? -ne 0 ] ; then fail ; fi
-
-
pass;