[PATCH] D97686: [test-suite] Fix Unit Tests for Code Coverage

Sam Elliott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 1 07:03:53 PST 2021


lenary created this revision.
lenary added reviewers: afd, yroux.
lenary requested review of this revision.

https://reviews.llvm.org/D88931 recently landed to add more tests to the
test suite to improve coverage of parts of clang. These tests caused
errors on some platforms, which was caught in post-commit review.

This change replaces the use of "%i" with the equivalent specifiers for
those types from inttypes.h, and updates the reference output to
correctly account for formatting unsigned arguments using unsigned
format specifiers.


Repository:
  rT test-suite

https://reviews.llvm.org/D97686

Files:
  SingleSource/UnitTests/2020-01-06-coverage-001.c
  SingleSource/UnitTests/2020-01-06-coverage-002.c
  SingleSource/UnitTests/2020-01-06-coverage-003.c
  SingleSource/UnitTests/2020-01-06-coverage-004.c
  SingleSource/UnitTests/2020-01-06-coverage-005.c
  SingleSource/UnitTests/2020-01-06-coverage-005.reference_output
  SingleSource/UnitTests/2020-01-06-coverage-006.c
  SingleSource/UnitTests/2020-01-06-coverage-007.c
  SingleSource/UnitTests/2020-01-06-coverage-007.reference_output
  SingleSource/UnitTests/2020-01-06-coverage-008.c
  SingleSource/UnitTests/2020-01-06-coverage-009.c
  SingleSource/UnitTests/2020-01-06-coverage-010.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97686.327105.patch
Type: text/x-patch
Size: 7956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210301/4cbd29b7/attachment.bin>


More information about the llvm-commits mailing list