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 regression: -d:nimHasLibFFI was not being tested anymore #14234

Merged
merged 2 commits into from May 6, 2020

Conversation

timotheecour
Copy link
Member

fix regression: -d:nimHasLibFFI was not being tested anymore, in part because testament was silently treating some errors as easy to overlook messages

  • turned that message into an error
  • -d:nimHasLibFFI is now also being tested with nim cpp (both building nim with -d:nimHasLibFFI and running tests)
  • use correct signatures for importc procs

in part because testament was silently treating some errors as easy to overlook messages
* turned that message into an error
* -d:nimHasLibFFI is now being tested with nim cpp
* use correct signatures for importc procs
@Araq
Copy link
Member

Araq commented May 5, 2020

Excellent but fails on OpenBSD with

Error: unhandled exception: trunner.nim(40, 14) output == expected ../../lib/system/ansi_c.nim(126, 3) Error: cannot import symbol: stderr from current exe: /home/build/Nim/bin/nim.ctffi nor libc: /usr/lib/libc.so(.95.1|)
foo

@timotheecour
Copy link
Member Author

timotheecour commented May 6, 2020

@Araq PTAL, I have a proper fix in mind that would solve other issues as well but it's out of scope for this PR so I've simply disabled just the part of the test that was failing for openbsd

@Araq Araq merged commit 330b3c4 into nim-lang:devel May 6, 2020
@timotheecour timotheecour deleted the pr_fix_tevalffi branch May 6, 2020 23:19
EchoPouet pushed a commit to EchoPouet/Nim that referenced this pull request Jun 13, 2020
…g#14234)

* * fix regression: -d:nimHasLibFFI was not being tested anymore,
in part because testament was silently treating some errors as easy to overlook messages
* turned that message into an error
* -d:nimHasLibFFI is now being tested with nim cpp
* use correct signatures for importc procs
* workaround for openbsd to unblock ctffi testing
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

2 participants