|
Ran
|
Jobs
1
|
Files
306
|
Run time
1min
|
Badge
README BADGES
|
push
travis-ci
<a href="https://github.com/tarantool/tarantool/commit/<a class=hub.com/tarantool/tarantool/commit/1d1a9fe87eedef92af4abcda546655fb8438dc02">1d1a9fe87<a href="https://github.com/tarantool/tarantool/commit/1d1a9fe87eedef92af4abcda546655fb8438dc02">">app: handle concatenated argv name-value correctly The server used to crash when any option argument was passed with a value concatenated to it, like this: &#39;-lvalue&#39;, &#39;-evalue&#39; instead of &#39;-l value&#39; and &#39;-e value&#39;. However this is a valid way of writing values, and it should not have crashed regardless of its validity. The bug was in usage of &#39;optind&#39; global variable from getopt() function family. It is not supposed to be used for getting an option&#39;s value. It points to a next argv to parse. Next argv != value of current argv, like it was with &#39;-lvalue&#39; and &#39;-evalue&#39;. For getting a current value there is a variable 'optarg'. Closes #4775 (cherry picked from commit </a><a class="double-link" href="https://github.com/tarantool/tarantool/commit/<a class="double-link" href="https://github.com/tarantool/tarantool/commit/29cfd564132622b63f78e44ccf34555316c5a3cb">29cfd5641</a>">29cfd5641</a><a href="https://github.com/tarantool/tarantool/commit/1d1a9fe87eedef92af4abcda546655fb8438dc02">)
41815 of 50688 relevant lines covered (82.49%)
886675.08 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 4 | 20811.4 (TARGET=coverage) | 0 |
82.49 |
Travis Job 20811.4 |