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

Fix a misleading skip message in test-tty.lua #732

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

rdw-software
Copy link
Contributor

While looking into the Valgrind/assertion failure, I noticed the following message being output:

skip, not on linux or macos

I found this puzzling as I'm actually on Linux. The message also appears in CI workflows using the ubuntu-latest image.

A brief investigation yielded that the early exit in test-tty.lua is faulty; it expects the second pcall return value to be nil, but in this case it's the typical module 'ffi' not found error (that is, a string value).

The ffi module isn't found because the valgrind workflow only builds PUC Lua and uses that to run the tests. Seeing how there's conditional logic/cdef uses here, it may be worth running valgrind + tests with both engines just in case?

When running tests with Lua instead of LuaJIT, a misleading message is output.
This is because pcall returns false and an error (i.e., a string value) here.
Copy link
Member

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

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

Thanks!

@squeek502 squeek502 merged commit e2d3d18 into luvit:master Nov 6, 2024
14 checks passed
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.

2 participants