Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testdriver: fix data race introduced in #1101 #1105

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Conversation

leitzler
Copy link
Member

When #1101 was merged I accidentally introduced a data race by modifying
the global VimCommand. We now make a local copy that is modified
instead.

Closes #1104

@leitzler leitzler force-pushed the testdriver-race branch 2 times, most recently from eeaa394 to 9265905 Compare September 13, 2021 21:16
@leitzler leitzler force-pushed the testdriver-race branch 2 times, most recently from 5a0756f to f962214 Compare September 15, 2021 20:34
With #1101 a data race was accidentally introduced where the global
testsetup.VimCommand was overwritten.
We now make a local copy that is modified instead.

Fixing this revealed that #1101 wasn't enough. Testscript conditions
that matches a vim version also used the testscript subcommand instead
of real vim. It now uses the real vim.

Closes #1104
Copy link
Member

@myitcv myitcv left a comment

Choose a reason for hiding this comment

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

LGTM

@leitzler leitzler merged commit 385dbe5 into main Sep 20, 2021
@leitzler leitzler deleted the testdriver-race branch September 20, 2021 20:35
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.

tests: investigate testdriver race
2 participants