mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
6a502f7104
Set the MALLOC_CHECK_ and MALLOC_PERTURB_ environment variables to catch allocation issues.
13 lines
249 B
Bash
Executable File
13 lines
249 B
Bash
Executable File
#!/bin/sh
|
|
|
|
BINARY=$1
|
|
shift
|
|
|
|
TMP=`./$BINARY -l -m thorough | grep '^/' | sed -e s/_/-/g`
|
|
for i in $TMP
|
|
do
|
|
TESTS="$TESTS wrappers/`basename $i`"
|
|
done
|
|
|
|
G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester "$@" $TESTS
|