Skip to content
Snippets Groups Projects
Commit ed37f063 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

run.in: Always use exec

Otherwise we can't determine the PID of the main process and
can't kill it properly during tests
parent 6ba7807c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -e
EXEC="${EXEC:-exec}"
if [ "${PHOSH_VALGRIND}" = 1 ]; then
echo "Running phosh under valgrind"
EXEC="valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=vgdump"
WRAPPER="valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=vgdump"
fi
ABS_BUILDDIR='@ABS_BUILDDIR@'
......@@ -16,4 +15,4 @@ gnome-session --session=gnome-dummy --disable-acceleration-check &
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
export G_MESSAGES_DEBUG=all
set -x
${EXEC} "${ABS_BUILDDIR}/src/phosh" $@
exec ${WRAPPER} "${ABS_BUILDDIR}/src/phosh" $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment