Applied fix from patch 1037010, submitted by mator.
diff --git a/ltpmenu b/ltpmenu
index e842e74..0a5e3e8 100755
--- a/ltpmenu
+++ b/ltpmenu
@@ -495,6 +495,12 @@
 RUNALL_FLAGS=" "
 RESULTS_FILE=" "
 
+# test for dialog program exist
+if [ ! -x /usr/bin/dialog ]; then
+       echo "Sorry, ltpmenu GUI not available, can't find dialog. Exiting...";
+       exit 1;
+fi
+
 # call cleanup function on program exit.
 trap "cleanup" 0