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
Automatic time update/NITZ unit tests #8
Conversation
|
Updated pull request: added missing files. |
|
|
||
| #define log_debug(msg, ...) \ | ||
| do { \ | ||
| printf("log_debug: "); printf(msg, ##__VA_ARGS__); printf("\n"); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but If the msg is always literal string, then you could do just: printf("log_debug: " msg "\n", ##VA_ARGS);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update, looks better!
|
Updated pull request, changes:
[1] spiiroin about tests/ut_networktime/qmlogstub.h: Minor, but If the msg is always literal string, then you could do just: printf("log_debug: " msg "\n", ##VA_ARGS); |
|
The changes in this pull request obviously require changes to the spec file used in build.pub.meego.com timed OBS project. Here's a OBS branch of timed that includes changes in this pull request and has an updated spec file. |
Move tests.xml to test directory, add automatic time update related unit tests, remove obsolete tests.
Test setup changes: test.xml is installed to directory /opt/tests/timed-tests/test-definition.
Rename src/root.pro to src/src.pro for a smoother build setup.
|
Updated pull request, added copyright headers. |
Automatic time update/NITZ unit tests
Unit tests for "public" classes included in the handling of automatic time/timezone update: NetworkTimeInfo, NetworkTime, NetworkOperator.
In addition, adds .gitignore