-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Some testcases fail and one never finishes #1032
Comments
Which compiler are you using? What are the error messages? |
Some cases that failed before individually don't print errors for some reason.
|
I got these errors in the FreeBSD port with this patch applied: https://bz-attachments.freebsd.org/attachment.cgi?id=192018 |
The error message reads like an input file could not be found. Can you please make sure you ran the tests as described in https://github.com/nlohmann/json#execute-unit-tests ? |
For me on Arch Linux on an Intel i7-3520M all tests pass but the last one just took an enormous amount of time:
Maybe you need to wait a littler longer for it to complete? |
Indeed the Unicode tests take the longest time. It's best to execute them with |
I do out-of-source build, that is located in
Is this not the right way to run tests? |
I'm not a Cmake expert - I am certain this works: https://github.com/nlohmann/json#execute-unit-tests This is how we do it on Travis and AppVeyor. |
Exact same sequence of commands fail on 2 testcases:
These might be FreeBSD-specific, not sure. |
In all cases, this is an assertion inside the Catch code. This is not a library issue, but should be reported at https://github.com/catchorg/Catch2 - maybe they know what this failing assertion means. |
Thanks for reporting! |
I close this issue as this seems to be an issue in the intersection between Catch and FreeBSD. |
sections, see also catchorg/Catch2#816 (comment) As a result, when built with gcc, loop iterations were skipped. When built with clang, the test aborted with an assertion in catch.hpp line 6222. This also addresses the issues discussed here: nlohmann#1032 (comment) and here: catchorg/Catch2#1241 Please note that this introduces new problems, as some of the unit tests fail now - the library stores keys in lexographical order, while the cbor/msgpack/ubjson examples store them in original order.
@nlohmann This is a bug in the unit test, that leads to aborts when built with clang, while it skips tests without crashing on gcc. I'll open a pull request. |
|
This test performs millions of assertions. It will finish, it just takes a lot of time.
Von meinem iPhone gesendet
… Am 08.08.2019 um 19:02 schrieb ***@***.*** ***@***.***>:
test-unicode_all still never finishes in version 3.7.0 on FreeBSD 12 amd64 (clang8).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@yurivict I can confirm @nlohmann's clarification:
|
OS: FreeBSD-11.1 amd64
Version 3.1.2 built from port, while trying to update it.
The text was updated successfully, but these errors were encountered: