Skip to content

Commit

Permalink
Fix the `kcov' hang bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nima committed Mar 21, 2017
1 parent bba2fe6 commit 6a4a0d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ env:

matrix:
allow_failures:
- env: CONTEXT=coverage MODULE=git
- env: CONTEXT=coverage MODULE=hgd
- env: CONTEXT=execute MODULE=tunnel
- env: CONTEXT=coverage MODULE=tunnel
- env: CONTEXT=execute MODULE=tutorial
Expand Down
2 changes: 1 addition & 1 deletion module/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function ${utf}Dyn${i}NoArgs() {
core:softimport ${module}
cpf " %{@comment ___simbol} %{!function:${module}:${fn}} {no-args} "
if assertEquals "import ${module}" ${CODE_SUCCESS?} \$?; then
${ffn} >/dev/null 2>&1
${ffn}
((e=\$? % ${CODE_DEFAULT?})) #. See why above
if assertEquals "exit code" ${CODE_SUCCESS?} \${e}; then
theme HAS_PASSED
Expand Down
4 changes: 2 additions & 2 deletions share/unit/citm
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ function citm:kcov() {
echo "$ citm:kcov run ${*}"
mkdir coverage
if [ ${#TRAVIS_JOB_ID} -gt 0 ]; then
kcov coverage "$@"
else
kcov --coveralls-id=${TRAVIS_JOB_ID?} coverage "$@"
else
kcov coverage "$@"
fi
e=$?
echo "# citm:kcov run exit status: $e"
Expand Down

0 comments on commit 6a4a0d1

Please sign in to comment.