1 2 3 4 5 6 7
#! /bin/sh LD_LIBRARY_PATH=. ./main exitCode=$? if test "$exitCode" != 46; then echo "bad exit code!" exit 1 fi