-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Try to fix crafting tests on mingw builds #29957
Conversation
- This is an attempt to debug/fix the test failing on the mingw builds for an unknown reason
So I have no idea what's causing these tests to fail on the mingw builds. If anyone has any insight please let me know. I'll probably poke at it a bit more tomorrow. |
Based on the Travis test history looks like it was caused by #29949 (but I guess you already knew that). I took a look at those changes but don't see how they could cause this failure. If you're able to use docker then the docker image with the toolchain set up may be useful to you in debugging this. |
- This really shouldn't be needed, and the tests run fine without it with "normal" builds
Still don't know why these tests were failing, but adding a |
I'm more confused as to why it isn't breaking elsewhere after that change. |
Well, the |
Hrm... do they need to proc a turn to learn it though? |
I don't think any recipes are somehow learned if you didn't call |
But the recipe is somehow learned on non-Mingw platforms. So there's something funky here. |
Should be learned when the character is created, if I'm reading the relevant code correctly: Cataclysm-DDA/src/newcharacter.cpp Lines 557 to 563 in 8533048
It looks to me like the funkiness is happening on mingw, and the code is preforming as expected for the non-mingw platforms. |
Summary
SUMMARY: None
Purpose of change
This is an attempt to debug/fix the crafting tests failing on the mingw builds for an unknown reason
Describe the solution
Add a REQUIRE for
has_recipe()
to see if this sheds any light on the issue.