#!/bin/sh
. ./subr.sh
run_sbcl --eval '(exit :code (or #+linux 0 1))'
if [ $? -eq 1 ]
then
exit $EXIT_TEST_WIN
fi
test_sbcl=../src/runtime/heap-reloc-test
rm -f $test_sbcl
set -e
(cd ../src/runtime ; make heap-reloc-test)
export SBCL_FAKE_MMAP_INSTRUCTION_FILE=`pwd`/heap-reloc/fakemap
i=1
while [ $i -le 6 ]
do
echo Trial $i
i=`expr $i + 1`
$test_sbcl --lose-on-corruption --disable-ldb --noinform --core ../output/sbcl.core \
--no-sysinit --no-userinit --noprint --disable-debugger \
--eval '(gc :full t)' --quit
done
rm -f $test_sbcl
exit $EXIT_TEST_WIN