Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bazel_cc_code_coverage_test more robust against GCC version diff…
…erences (bazelbuild#16254) * -fprofile-dir shouldn't be used because on the g++ command line because it has different behaviour with different versions (w.r.t. where the output gcda file ends up). * The gcda and gcno files may end up in the same directory as the object file or in the current working directory. * The output of the gcov call in collect_cc_coverage may be "*.gcda.gcov.json.gz" or "*.gcov.json.gz" (as well as the original text file for much older GCC versions). Also re-enable the test for Ubuntu 20.04 pre and postsubmits. Fixes bazelbuild#16229 Closes bazelbuild#16235. PiperOrigin-RevId: 473218955 Change-Id: I1f4887f251da8f56f8ea525c1a1410e6257bf31b Co-authored-by: Charles Mita <cmita@google.com>
- Loading branch information