Commit 396fee59 authored by Stefan Behnel's avatar Stefan Behnel

coverage: prefer .c/.cpp file that was explicitly asked for over trying to find one ourselves

parent 1a4286f5
......@@ -79,7 +79,9 @@ class Plugin(CoveragePlugin):
# none of our business
return None, None
if os.path.exists(basename + '.c'):
if ext in ('.c', '.cpp'):
c_file = filename
elif os.path.exists(basename + '.c'):
c_file = basename + '.c'
elif os.path.exists(basename + '.cpp'):
c_file = basename + '.cpp'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment