|
Repo Added
|
Files
89
|
Badge
README BADGES
|
push
github
test: skip lj-1470 test for unconfigured timezones `os.time()` uses `mktime()` to specify time by the given table. `mktime()` produces the call to `tzset()` to determine the system's timezone. If the TZ variable does not appear in the environment, the system timezone is used. The system timezone is configured by copying, or linking, a file in the tzfile(5) format to /etc/localtime. So, if this file is omitted (like in RED OS), the errno is set to a non-zero value. This leads to the nil returned by the `os.time()` for -1 time value. This patch skips the test if this file is missed to be sure that we don't obtain any false positive failures due to system misconfigurations. Reviewed-by: Evgeniy Temirgaleev <e.temirgaleev@tarantool.org> Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Signed-off-by: Sergey Kaplun <skaplun@tarantool.org> (cherry picked from commit 712e6d859)
5732 of 6058 branches covered (94.62%)
Branch coverage included in aggregate %.
21861 of 23556 relevant lines covered (92.8%)
3972348.95 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|