view run-test.sh @ 18149:0e74934072e0

lib-charset: Added charset_utf8_to_utf8_begin() wrapper function. It's never supposed to fail, so it makes it nicer for the callers who need to use it.
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Jan 2015 01:05:13 +0200
parents 802187be0f77
children
line wrap: on
line source

#!/bin/sh

trap "rm -f test.out.$$" 0 1 2 3 15
supp_path="`dirname $0`/run-test-valgrind.supp"
if [ -r "$supp_path" ]; then
  valgrind -q --suppressions="$supp_path" --log-file=test.out.$$ $*
else
  valgrind -q --log-file=test.out.$$ $*
fi
ret=$?
if [ -s test.out.$$ ]; then
  cat test.out.$$
  exit 1
fi
exit $ret