llvm-project/llvm/test/tools/llvm-profdata
Joel E. Denny 2622419c78 [lit] Fix internal diff's --strip-trailing-cr and use it
Using GNU diff, `--strip-trailing-cr` removes a `\r` appearing before
a `\n` at the end of a line.  Without this patch, lit's internal diff
only removes `\r` if it appears as the last character.  That seems
useless.  This patch fixes that.

This patch also adds `--strip-trailing-cr` to some tests that fail on
Windows bots when D68664 is applied.  Based on what I see in the bot
logs, I think the following is happening.  In each test there, lit
diff is comparing a file with `\r\n` line endings to a file with `\n`
line endings.  Without D68664, lit diff reads those files in text
mode, which in Windows causes `\r\n` to be replaced with `\n`.
However, with D68664, lit diff reads the files in binary mode instead
and thus reports that every line is different, just as GNU diff does
(at least under Ubuntu).  Adding `--strip-trailing-cr` to those tests
restores the previous behavior while permitting the behavior of lit
diff to be more like GNU diff.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D68839

llvm-svn: 375020
2019-10-16 17:21:57 +00:00
..
Inputs [llvm-profdata] Make "malformed-ptr-to-counter-array.test" textual 2019-10-12 00:23:15 +00:00
c-general.test
compact-sample.proftext [llvm-profdata] Profile dump for compact binary format 2019-08-13 17:56:08 +00:00
compat.proftext
count-mismatch.proftext
csprof-dump.test
cutoff.test
gcc-gcov-sample-profile.test [tests] Add host-byteorder-*-endian; update XFAILs of big-endian triples 2019-05-01 15:36:18 +00:00
general.proftext
hash-mismatch.proftext
inline-samples.test
input-dir.test
input-filenames.test
instr-remap.test
invalid-profdata.test [llvm-profdata] Add mode to recover from profile read failures 2019-09-03 22:23:16 +00:00
lit.local.cfg
malformed-ptr-to-counter-array.test [llvm-profdata] Reinstate tools/llvm-profdata/malformed-ptr-to-counter-array.test 2019-10-15 17:53:48 +00:00
memop-size-prof.proftext
merge_empty_profile.test
multiple-inputs.test
multiple-profdata-merge.test
nocompress.test Replace 'REQUIRES: nozlib' with '!zlib' because we don't need two ways 2019-05-10 18:47:39 +00:00
overflow-instr.test
overflow-sample.test
overlap.test
overlap_cs.test
overlap_vp.test
profile-symbol-list-compress.test [SampleFDO] Add compression support for any section in ExtBinary profile format 2019-10-07 16:12:37 +00:00
profile-symbol-list.test [lit] Fix internal diff's --strip-trailing-cr and use it 2019-10-16 17:21:57 +00:00
raw-32-bits-be.test
raw-32-bits-le.test
raw-64-bits-be.test
raw-64-bits-le.test
raw-magic-but-no-header.test
raw-two-profiles.test
roundtrip-compress.test [SampleFDO] Add compression support for any section in ExtBinary profile format 2019-10-07 16:12:37 +00:00
roundtrip.test [lit] Fix internal diff's --strip-trailing-cr and use it 2019-10-16 17:21:57 +00:00
same-filename.test [llvm-profdata] Don't make the output overwrite the input file. 2019-07-09 09:57:45 +00:00
sample-profile-basic.test [AutoFDO] Make call targets order deterministic for sample profile 2019-08-20 20:52:00 +00:00
sample-remap.test [lit] Fix internal diff's --strip-trailing-cr and use it 2019-10-16 17:21:57 +00:00
show-instr-level.test
show-prof-size.test Recommit [SampleFDO] Expose an interface to return the size of a section 2019-09-21 17:23:55 +00:00
text-dump.test
text-format-errors.test [llvm-profdata] Add mode to recover from profile read failures 2019-09-03 22:23:16 +00:00
threaded-count-mismatch.test
value-prof.proftext
weight-instr.test
weight-sample.test