diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-12-02 09:46:13 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-12-02 09:46:13 +0100 |
commit | f6c8ba975525a1fdd8a649c24458b091e817f280 (patch) | |
tree | a90bf3b5ad27cd8cf52940d9b840a4653887ac92 | |
parent | b0bafb0d12ad04acdc7d812edfcf160979cce83d (diff) |
Add test for recent bug.
-rw-r--r-- | Makefile.am | 2 | ||||
-rwxr-xr-x | test/run_dmenu_empty.sh | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 95881f2b..2e43fb4f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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" diff --git a/test/run_dmenu_empty.sh b/test/run_dmenu_empty.sh new file mode 100755 index 00000000..f241dd3e --- /dev/null +++ b/test/run_dmenu_empty.sh @@ -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 |