mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 14:14:10 +00:00

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
|