-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
All unit tests fail? #787
Comments
We compile and execute the test suite without problems using GCC 6.3.0 on Ubuntu, see https://travis-ci.org/nlohmann/json/jobs/287422140. Did you run the tests like this? $ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
$ ctest |
Yes, I ran them exactly as directed on the page https://github.com/nlohmann/json#projects-using-json-for-modern-c, except that I am working on CentOS 7 (1611) not Ubuntu.
I just looked:
%ctest --version
ctest version 2.8.12.2
By chance is there a ctest version requirement that I may not be meeting?
[https://avatars3.githubusercontent.com/u/159488?v=4&s=400]<https://github.com/nlohmann/json#projects-using-json-for-modern-c>
GitHub - nlohmann/json: JSON for Modern C++<https://github.com/nlohmann/json#projects-using-json-for-modern-c>
github.com
to the files you want to use JSON objects. That's it. Do not forget to set the necessary switches to enable C++11 (e.g., -std=c++11 for GCC and Clang).
Thanks,
…-don-
________________________________
From: Niels Lohmann <notifications@github.com>
Sent: Monday, October 16, 2017 10:41:07 AM
To: nlohmann/json
Cc: Don Doerner; Author
Subject: Re: [nlohmann/json] All unit tests fail? (#787)
We compile and execute the test suite without problems using GCC 6.3.0 on Ubuntu, see https://travis-ci.org/nlohmann/json/jobs/287422140<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-ci.org%2Fnlohmann%2Fjson%2Fjobs%2F287422140&data=02%7C01%7Cdon.doerner%40quantum.com%7C6db5d1e5c7f04a363a9308d514bd159a%7C322a135f14fb4d72aede122272134ae0%7C1%7C0%7C636437724702033883&sdata=cIwnVXAsVZvqLw1ZR%2F4W%2F53zKAGnGt7CQPE1nbUEpL8%3D&reserved=0>.
Did you run the tests like this?
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
$ ctest
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.luolix.top%2Fnlohmann%2Fjson%2Fissues%2F787%23issuecomment-336965230&data=02%7C01%7Cdon.doerner%40quantum.com%7C6db5d1e5c7f04a363a9308d514bd159a%7C322a135f14fb4d72aede122272134ae0%7C1%7C0%7C636437724702033883&sdata=5IsPE5gcYbE%2FJp8JBdo8Pc5DaUAvn88c2WWX9sewSog%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.luolix.top%2Fnotifications%2Funsubscribe-auth%2FAPcb3vsZ9qBWQUEkzwK0FVpX8wMf9URiks5ss5UzgaJpZM4P6-KU&data=02%7C01%7Cdon.doerner%40quantum.com%7C6db5d1e5c7f04a363a9308d514bd159a%7C322a135f14fb4d72aede122272134ae0%7C1%7C0%7C636437724702033883&sdata=eX2iKWdwMeow292Mjy28XZ%2FaqEMXtB%2FZb9hiEc7ze1Y%3D&reserved=0>.
The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through security software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.
|
I am using ctest version 3.9.4. To be sure, can you provide some log files from the failing tests? It's hard to tell right now. |
Found it, my mistake, please close the issue.
FYI, the problem was that when I updated my compiler, I didn't point at the right libraries.
Thanks,
…-don-
________________________________
From: Niels Lohmann <notifications@github.com>
Sent: Monday, October 16, 2017 11:05:01 AM
To: nlohmann/json
Cc: Don Doerner; Author
Subject: Re: [nlohmann/json] All unit tests fail? (#787)
I am using ctest version 3.9.4. To be sure, can you provide some log files from the failing tests? It's hard to tell right now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.luolix.top%2Fnlohmann%2Fjson%2Fissues%2F787%23issuecomment-336975298&data=02%7C01%7Cdon.doerner%40quantum.com%7Ca9fd8c3364ab40c48afe08d514c06c1f%7C322a135f14fb4d72aede122272134ae0%7C1%7C0%7C636437739038641460&sdata=tnx5Sf0B9UMVAQyfFARAaxPDbEM4cAPsvJE0PbJVpdM%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.luolix.top%2Fnotifications%2Funsubscribe-auth%2FAPcb3lmy7ZygwmXJnnkRPpEHSaauGqXlks5ss5rNgaJpZM4P6-KU&data=02%7C01%7Cdon.doerner%40quantum.com%7Ca9fd8c3364ab40c48afe08d514c06c1f%7C322a135f14fb4d72aede122272134ae0%7C1%7C0%7C636437739038641460&sdata=GwzTea%2FHz5EfaJ%2FmUBHhL84pmoHnO%2B2g1d975ZoIIaY%3D&reserved=0>.
The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through security software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using up-level cmake:
%cmake3 --version
cmake3 version 3.6.3
Using up-level compiler (6.3.0, on the list)
%c++ --version
c++ (GCC) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Tests built with a couple of innocuous warnings like this:
.../json/test/src/unit-serialization.cpp:71:18: warning: ‘std::ostream& nlohmann::operator>>(const
nlohmann::basic_json<>&, std::ostream&)’ is deprecated [-Wdeprecated-declarations]
But all tests fail: "0% tests passed, 70 tests failed out of 70"
Any idea what may be happening?
The text was updated successfully, but these errors were encountered: