patch 8.1.1524: tests are silently skipped
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
diff --git a/src/testdir/test_sha256.vim b/src/testdir/test_sha256.vim
index dd47079..7f802b1 100644
--- a/src/testdir/test_sha256.vim
+++ b/src/testdir/test_sha256.vim
@@ -1,7 +1,10 @@
" Tests for the sha256() function.
-if !has('cryptv') || !exists('*sha256')
- finish
+if !has('cryptv')
+ throw 'Skipped, cryptv feature missing'
+endif
+if !exists('*sha256')
+ throw 'Skipped, sha256 function missing'
endif
function Test_sha256()