mirror of https://github.com/davatorium/rofi.git
Add test for recent bug.
This commit is contained in:
parent
b0bafb0d12
commit
f6c8ba9755
|
@ -182,6 +182,8 @@ test-x: ${bin_PROGRAMS}
|
||||||
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
|
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
|
||||||
echo "Issue 275"
|
echo "Issue 275"
|
||||||
$(top_srcdir)/test/run_test.sh 207 $(top_srcdir)/test/run_issue_275.sh $(top_builddir)
|
$(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"
|
echo "End tests"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue