Skip to content

Commit

Permalink
tests: Relax issue SimonKagstrom#31 test for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Jan 28, 2016
1 parent 80e01d5 commit 0cdc725
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ add_executable(setpgid-kill setpgid-kill/setpgid-kill-main.cc ../src/utils.cc)
add_executable(issue31 daemon/test-issue31.cc)
add_executable(dlopen dlopen/dlopen.cc dlopen/dlopen-main.cc)
add_executable(s short-file.c)
add_executable(lock-prefix assembly/lock-prefix.c)

add_executable(pie pie.c)
set_target_properties(pie PROPERTIES COMPILE_FLAGS "-g -fpie -fPIE")
Expand Down
3 changes: 3 additions & 0 deletions tests/bash/shell-main
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,6 @@ echo "Covered?"

id="# ${work_runtime_error}."
echo afterid

source `dirname $0`/first-dir/c.sh
source `dirname $0`/first-dir/b.sh
4 changes: 2 additions & 2 deletions tests/tools/compiled.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ def runTest(self):
self.setUp()
rv,o = self.do(testbase.sources + "/tests/daemon/test-script.sh " + testbase.kcov + " " + testbase.outbase + "/kcov " + testbase.testbuild + "/issue31", False)
dom = parse_cobertura.parseFile(testbase.outbase + "/kcov/issue31/cobertura.xml")
assert parse_cobertura.hitsPerLine(dom, "test-issue31.cc", 28) == 1
assert parse_cobertura.hitsPerLine(dom, "test-issue31.cc", 11) == 1
assert parse_cobertura.hitsPerLine(dom, "test-issue31.cc", 28) >= 1
assert parse_cobertura.hitsPerLine(dom, "test-issue31.cc", 11) >= 1
assert parse_cobertura.hitsPerLine(dom, "test-issue31.cc", 8) == 0

class merge_same_file_in_multiple_binaries(testbase.KcovTestCase):
Expand Down

0 comments on commit 0cdc725

Please sign in to comment.