Skip to content

Conversation

mhinz
Copy link
Member

@mhinz mhinz commented Nov 30, 2018

  • switch to Xcode 10.1
  • calculate load and adjust timer tests
  • fix Test_help_tagjump()

@marvim marvim added the WIP label Nov 30, 2018
@mhinz mhinz changed the title [WIP] macOS: test with Xcode 10.0 [WIP] macOS: test with Xcode 10 Nov 30, 2018
@justinmk

This comment has been minimized.

@mhinz

This comment has been minimized.

@justinmk
Copy link
Member

justinmk commented Dec 6, 2018

If someone wants to do that, sure. It's not a one-time task: more tests will fail over time, and those need to be monitored, and later fixed.

@mhinz
Copy link
Member Author

mhinz commented Dec 6, 2018

Then I try looking into the issues of this PR (after I had a look how you handled similar issues earlier).

@mhinz mhinz force-pushed the xcode10 branch 9 times, most recently from 20f371d to 2b1c42f Compare December 14, 2018 20:45
@mhinz mhinz force-pushed the xcode10 branch 8 times, most recently from ab21b35 to e4e4eff Compare December 15, 2018 11:56
@mhinz mhinz force-pushed the xcode10 branch 4 times, most recently from e39c633 to c915c12 Compare January 15, 2019 23:40
@mhinz mhinz force-pushed the xcode10 branch 5 times, most recently from cb6d300 to 001c54c Compare January 16, 2019 22:01
@mhinz mhinz changed the title [WIP] macOS: test with Xcode 10 [RFC] Load-adjust timer tests Jan 16, 2019
@mhinz
Copy link
Member Author

mhinz commented Jan 16, 2019

I think this PR is ready now. 💪

(The failing macOS jobs are due to the unrelated Test_help_tagjump() old test.)

mhinz added 4 commits January 17, 2019 15:59
The Vim version of Test_help_tagjump() tests for `:help sm?le` here. That
command got removed from Nvim, so the test was changed to check against `:help
sp?it` instead.

The new test already handled the case that on Win `:h split` would jump to the
entry for split() and on all other systems to the entry for :split.

Then this commit happened:

   bb3aa82 lua/stdlib: vim.inspect, string functions

Since then `:h split` would jump to split() for macOS as well! I'm not sure why.

Anyway, instead of adding another check for has('mac'), we change the test once
more to be more akin to the original test. Instead of testing for :smile, which
is exclusive to Vim, we check against :checkhealth, which is exclusive to Nvim.
@neovim neovim deleted a comment from codecov bot Jan 17, 2019
@neovim neovim deleted a comment from codecov bot Jan 17, 2019
func Test_oneshot()
let g:val = 0
let timer = timer_start(50, 'MyHandler')
let slept = WaitFor('g:val == 1')
call assert_equal(1, g:val)
if has('reltime')
call assert_inrange(40, 120, slept)
call s:assert_inrange(40, 120, slept)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be clearer if LoadAdjust() was explicitly called here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, but you merged it already. :P I guess we just silently do it the next time that file is changed in any way.

@justinmk justinmk merged commit 8093cbd into neovim:master Jan 17, 2019
@justinmk justinmk removed the RFC label Jan 17, 2019
@mhinz mhinz deleted the xcode10 branch January 17, 2019 22:34
@justinmk justinmk mentioned this pull request Jan 17, 2019
justinmk added a commit to justinmk/neovim that referenced this pull request May 18, 2019
Also, don't compute load factor unless load_adjust() was called, it
slows down the test suite.

ref neovim#9292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants