loaders: JPG: Fix bussy loop on corrupted file.
[gfxprim.git] / tests / framework / runtest.sh
blob03e99b8d23479642feadbc0dc49d91807547c8ee
1 #!/bin/sh
4 # By default the glibc __libc_message() writes to /dev/tty before calling
5 # the abort(). Exporting this macro makes it to use stderr instead.
7 # The main usage of the function are malloc assertions, so this makes us catch
8 # the malloc error message by catching stderr output.
10 export LIBC_FATAL_STDERR_=1
12 LD_PRELOAD=`pwd`/libtst_preload.so ./test "$@"