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

Add command line history tests #20

Merged
merged 4 commits into from
Feb 4, 2024

Conversation

apainintheneck
Copy link
Owner

I realized that this was something that could be tested in a relatively straightforward manner without needing an interactive console session.

@apainintheneck
Copy link
Owner Author

Closes #16.

@apainintheneck
Copy link
Owner Author

I'm not entirely sure why this would be failing right now on Linux but it seems like there is some sort of problem loading lines from a file. Nothing seems out of the ordinary here code wise so I'll have to do a bit more digging to figure it out. Interestingly enough, there are no problems on macOS.

Essentially what I've done here is pull a patch from Github user @emvigo related
to building linenoise using C11 without errors on Linux. The hope is that this
might fix the history test errors I'm seeing on CI right now.

- antirez/linenoise#173
- https://github.com/emvigo
@apainintheneck
Copy link
Owner Author

I was able to pull in this PR from a few years ago and that fixed all of the problems. I think the problem was that it was missing the string headers and that caused problems with strdup but I'm not entirely sure.

Thanks @emvigo for that PR from 5 years ago! It was a big help.

@apainintheneck apainintheneck merged commit 5ee67bb into main Feb 4, 2024
2 checks passed
@apainintheneck apainintheneck deleted the add-tests-for-command-line-history branch February 4, 2024 05:45
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.

None yet

1 participant