#!/bin/sh # tests related to ELFinated .core files # This software is part of the SBCL system. See the README file for # more information. # # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. # # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. . ./subr.sh run_sbcl < (sb-kernel:code-n-entries obj) 0)) (assert (/= (sb-kernel:%code-serialno obj) 0)))) :all) EOF (cd $SBCL_PWD/../src/runtime ; rm -f shrinkwrap-sbcl shrinkwrap-sbcl.s shrinkwrap-sbcl-core.o shrinkwrap-sbcl.core) # reaching here means no crash happened in the allocator # and that the fixups were rewritten into C data space echo Basic smoke test: PASS create_test_subdirectory tmpcore=$TEST_DIRECTORY/$TEST_FILESTEM.tmpcore run_sbcl <