mirror of
https://github.com/brl/mutter.git
synced 2025-02-05 16:14:10 +00:00
![Emmanuele Bassi](/assets/img/avatar_default.png)
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
|