-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ctest failed when doing "C++ Quickstart With CMake" #329
Comments
I have the same problem. Something with timezones is broken on mac. Note: I am in Prague timezone. |
This comment has been minimized.
This comment has been minimized.
Same here (OS X 10.15) with current master branch (as of August 23). |
The environment variable Can someone look into automatically setting this in our CMake configuration? https://stackoverflow.com/questions/59690736/how-to-get-a-relative-path-for-cmake-unit-tests may be useful. |
Thanks, I'll give it a try. Though why is that directory hardcoded here:
|
If the You should prefer to use the system data in your application, which is usually kept up to date by the package manager/update process of your OS. On the other hand, for our tests, they should use the provided test data. This is for the same reason mock objects are common in testing. The tests are testing the behavior of the library given a fixed version of the timezone data, not the current accuracy of the test data. You don't need your tests to start failing just because the data changed. You only need to know that the library is capable of using the timezone database that it has been given. I'm not sure if that is the question you were asking, but hopefully I've answered it. |
Thank you for the explanation, that makes sense. I've tried compiling with setting cmake option -DTZDIR=absolute/path/to/absl/time/internal/cctz/testdata/zoneinfo. But the absl_time_test still gets aborted. |
|
I have the similar problem as the following tests FAILED:
I want to know how to deal with it. |
I performed the steps as specified https://abseil.io/docs/cpp/quickstart-cmake. But when I executed
ctest
, there was the following error:Here is my environment:
The text was updated successfully, but these errors were encountered: