https://github.com/vim/vim/pull/8192
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Merging #8192 (53c59da) into master (918b089) will decrease coverage by
86.88%.
The diff coverage isn/a.
@@ Coverage Diff @@ ## master #8192 +/- ## =========================================== - Coverage 89.35% 2.46% -86.89% =========================================== Files 148 146 -2 Lines 166793 161660 -5133 =========================================== - Hits 149038 3990 -145048 - Misses 17755 157670 +139915
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | ? |
|
| huge-gcc-none | ? |
|
| huge-gcc-testgui | ? |
|
| huge-gcc-unittests | 2.46% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/sha256.c | 0.00% <0.00%> (-97.96%) |
⬇️ |
| src/digraph.c | 0.00% <0.00%> (-97.78%) |
⬇️ |
| src/gui_gtk_f.c | 0.00% <0.00%> (-97.54%) |
⬇️ |
| src/match.c | 0.00% <0.00%> (-97.13%) |
⬇️ |
| src/crypt_zip.c | 0.00% <0.00%> (-97.06%) |
⬇️ |
| src/evalbuffer.c | 0.00% <0.00%> (-96.83%) |
⬇️ |
| src/debugger.c | 0.00% <0.00%> (-96.62%) |
⬇️ |
| src/libvterm/src/rect.h | 0.00% <0.00%> (-96.56%) |
⬇️ |
| src/textprop.c | 0.00% <0.00%> (-96.41%) |
⬇️ |
| src/evalfunc.c | 0.00% <0.00%> (-96.18%) |
⬇️ |
| ... and 134 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 918b089...53c59da. Read the comment docs.
@dpelle commented on this pull request.
In src/testdir/test_writefile.vim:
> @@ -58,7 +58,16 @@ func Test_writefile_fails_conversion()
call assert_fails('write ++enc=cp932', 'E513:')
call assert_equal(contents, readfile('Xfile'))
+ " With 'backupcopy' set, if there is a conversion error, the backup file is
+ " still creaetd.
typo: creatd → created
In src/testdir/test_writefile.vim:
> @@ -257,6 +269,15 @@ func Test_write_errors()
let long_fname = repeat('n', 5000)
call assert_fails('exe "w " .. long_fname', 'E75:')
call assert_fails('call writefile([], long_fname)', 'E482:')
+
+ " Test for writing to a block device on Unix-like systems
+ if has('unix') && getfperm('/dev/loop0') != ''
Maybe safer if we also check getftype('/dev/loop0') == 'bdev'?
I also wonder what happens if we run this test as root.
@yegappan commented on this pull request.
In src/testdir/test_writefile.vim:
> @@ -257,6 +269,15 @@ func Test_write_errors()
let long_fname = repeat('n', 5000)
call assert_fails('exe "w " .. long_fname', 'E75:')
call assert_fails('call writefile([], long_fname)', 'E482:')
+
+ " Test for writing to a block device on Unix-like systems
+ if has('unix') && getfperm('/dev/loop0') != ''
I ran the test as root and the test passed.
I see some other test failure in FreeBSD (Cirrus CI). I am not able to reproduce this failure in my local FreeBSD system.
It goes appear to fail consistently on FreeBSD. Perhaps it is running as root and something else?
It goes appear to fail consistently on FreeBSD. Perhaps it is running as root and something else?