1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Add test for recent bug.

This commit is contained in:
Dave Davenport 2015-12-02 09:46:13 +01:00
parent b0bafb0d12
commit f6c8ba9755
2 changed files with 18 additions and 0 deletions

View file

@ -182,6 +182,8 @@ test-x: ${bin_PROGRAMS}
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
echo "Issue 275"
$(top_srcdir)/test/run_test.sh 207 $(top_srcdir)/test/run_issue_275.sh $(top_builddir)
echo "Crash empty list"
$(top_srcdir)/test/run_test.sh 208 $(top_srcdir)/test/run_dmenu_empty.sh $(top_builddir)
echo "End tests"

16
test/run_dmenu_empty.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
cat /dev/null | rofi -dmenu &
RPID=$!
sleep 4
xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
if [ ${RETV} -eq 1 ]
then
exit 0
else
exit 1
fi