patch 8.2.0458: missing feature check in test function

Problem:    Missing feature check in test function.
Solution:   Add check commands.
diff --git a/src/testdir/test_excmd.vim b/src/testdir/test_excmd.vim
index 755099c..ec252a6 100644
--- a/src/testdir/test_excmd.vim
+++ b/src/testdir/test_excmd.vim
@@ -247,6 +247,9 @@
 endfunc
 
 func Test_confirm_cmd_cancel()
+  CheckNotGui
+  CheckRunVimInTerminal
+
   " Test for closing a window with a modified buffer
   let buf = RunVimInTerminal('', {'rows': 20})
   call term_sendkeys(buf, ":set nomore\n")