Test something

This commit is contained in:
Dave Davenport 2016-08-19 19:40:39 +02:00
parent 6225b29d94
commit e55dfe8b10
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# wait till it is up, run rofi with error message
sleep 1;
ulimit -c unlimited
echo -e -n "aap\nnoot\nmies" | rofi -dmenu -normal-window -multi-select > output.txt &
RPID=$!
sleep 4
@ -18,6 +19,11 @@ xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
if [ "${RETV}" == "139" ]
then
echo "thread apply all bt" | gdb rofi core.*
fi
OUTPUT=$(cat output.txt | tr '\n' ' ')
if [ "${OUTPUT}" != 'noot mies ' ]
then