summaryrefslogtreecommitdiff
path: root/mnv/src
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-05 20:59:48 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-05 20:59:48 +0300
commit7e9da79a0df28f875a35c2b5d128e41044c3cd53 (patch)
tree8d75eff0cabf414fbb358b6e08725f2613379189 /mnv/src
parent8e281d214b033189abca8e65db581d063e9e82b4 (diff)
downloadProject-Tick-master.tar.gz
Project-Tick-master.zip
NOISSUE Refactor GitHub Actions and Dockerfiles for improved functionality and error handlingHEADmaster
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'mnv/src')
-rw-r--r--mnv/src/scriptfile.c2
-rw-r--r--mnv/src/testdir/util/screendump.mnv16
2 files changed, 15 insertions, 3 deletions
diff --git a/mnv/src/scriptfile.c b/mnv/src/scriptfile.c
index 37f055eed5..afa36b6ca5 100644
--- a/mnv/src/scriptfile.c
+++ b/mnv/src/scriptfile.c
@@ -1004,7 +1004,7 @@ load_pack_plugin(char_u *fname)
source_all_matches(pat);
{
- char_u *cmd = mnv_strsave((char_u *)"g:did_load_filetypes");
+ char_u *cmd = mnv_strsave((char_u *)"get(g:, 'did_load_filetypes', 0)");
// If runtime/filetype.mnv wasn't loaded yet, the scripts will be
// found when it loads.
diff --git a/mnv/src/testdir/util/screendump.mnv b/mnv/src/testdir/util/screendump.mnv
index 2f28c759a8..91346911a1 100644
--- a/mnv/src/testdir/util/screendump.mnv
+++ b/mnv/src/testdir/util/screendump.mnv
@@ -165,7 +165,11 @@ func VerifyScreenDump(buf, filename, options, ...)
" Leave a bit of time for updating the original window while we spin wait.
sleep 10m
call delete(testfile)
- call term_dumpwrite(a:buf, testfile, options_copy)
+ try
+ call term_dumpwrite(a:buf, testfile, options_copy)
+ catch /E958/
+ return 1
+ endtry
call assert_report('See new dump file: call term_dumpload("testdir/' .. testfile .. '")')
" No point in retrying.
let g:run_nr = 10
@@ -179,7 +183,15 @@ func VerifyScreenDump(buf, filename, options, ...)
" Leave a bit of time for updating the original window while we spin wait.
sleep 1m
call delete(testfile)
- call term_dumpwrite(a:buf, testfile, options_copy)
+ try
+ call term_dumpwrite(a:buf, testfile, options_copy)
+ catch /E958/
+ " The terminal job already finished; no point retrying.
+ return 1
+ endtry
+ if !filereadable(testfile)
+ return 1
+ endif
" Filtering done with "FileComparisonPreAction()" may change "refdump*".
let refdump = CopyStringList(refdump_orig)
let testdump = ReadAndFilter(testfile, filter)