Use test macros in phold and timerfd tests, fix bugs#1131
Use test macros in phold and timerfd tests, fix bugs#1131robgjansen merged 7 commits intoshadow:devfrom robgjansen:phold-timerfd-tests
Conversation
|
Related: #902 for the phold and timerfd tests. |
| if(emNanoSecs >= EMULATED_TIME_OFFSET) { | ||
| simNanoSecs = EMULATED_TIME_TO_SIMULATED_TIME(emNanoSecs); | ||
| } else { | ||
| simNanoSecs = 0; |
There was a problem hiding this comment.
How do we get here, and why do we want to set to zero in that case?
| ## TODO swap the following lines when all tests have been converted to the macros | ||
| #set_tests_properties(leakcheck-shadow-grep PROPERTIES DEPENDS "${ALL_SHADOW_TESTS}") | ||
| set_tests_properties(leakcheck-shadow-grep PROPERTIES DEPENDS "bind-shadow-ptrace;bind-shadow-preload;clone-shadow-ptrace;config-convert-shadow;cpp-shadow-ptrace;cpp-shadow-preload;epoll-shadow-ptrace;epoll-writeable-shadow-ptrace;eventfd-shadow-ptrace;eventfd-shadow-preload;file-shadow-ptrace;mmap-shadow-ptrace;phold-shadow-ptrace;phold-threaded-shadow-ptrace;random-shadow-ptrace;random-shadow-preload;shutdown-shadow-ptrace;shutdown-shadow-preload;sleep-shadow-ptrace;sleep-shadow-preload;sockbuf-shadow-ptrace;socket-shadow-ptrace;socket-shadow-preload;bind-shadow-ptrace;bind-shadow-preload;listen-shadow-ptrace;listen-shadow-preload;getsockname-shadow-ptrace;getsockname-shadow-preload;accept-shadow-ptrace;accept-shadow-preload;timerfd-shadow-ptrace;udp-uniprocess-shadow-ptrace;udp-uniprocess-shadow-preload;udp-shadow-ptrace;unistd-shadow-ptrace;unistd-shadow-preload") | ||
| set_tests_properties(leakcheck-shadow-grep PROPERTIES DEPENDS "${ALL_SHADOW_TESTS}") |
| @@ -0,0 +1 @@ | |||
| phold.yaml No newline at end of file | |||
There was a problem hiding this comment.
Huh; I guess this is an 'include'? I didn't know yaml supported that; SO seems to think it doesn't :). Since this isn't standard yaml could probably use a comment
There was a problem hiding this comment.
It's a symbolic link checked into the repo.
| @@ -0,0 +1 @@ | |||
| phold.yaml No newline at end of file | |||
|
Oh huh, just noticed this is marked as a draft. I got an email notification for the PR and misinterpreted it as a review request 🤦♂️ |
Codecov Report
@@ Coverage Diff @@
## dev #1131 +/- ##
==========================================
+ Coverage 55.96% 57.07% +1.10%
==========================================
Files 136 136
Lines 20158 20133 -25
Branches 4830 4842 +12
==========================================
+ Hits 11282 11491 +209
+ Misses 5964 5669 -295
- Partials 2912 2973 +61
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Thanks for the preemptive review :) |
This PR finishes converting the remaining tests to the new macros: