llvm-project/llvm/test/tools/llvm-objcopy/COFF
Alfonso Sánchez-Beato b25ab4f313 [llvm-objcopy][COFF] Fix test for debug dir presence
If the number of directories was 6 (equal to the DEBUG_DIRECTORY
index), patchDebugDirectory() was run even though the debug directory
is actually the 7th entry. Use <= in the comparison to fix that.

This fixes https://llvm.org/PR51243

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

Reviewed by: jhenderson
2021-09-10 09:57:18 +01:00
..
Inputs
add-gnu-debuglink.test
add-section-and-set-flags.test [llvm-objcopy] [COFF] Consider section flags when adding section 2021-08-25 23:11:41 +03:00
add-section.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
basic-copy.test
bigobj.test
check-debug-dir-present.test [llvm-objcopy][COFF] Fix test for debug dir presence 2021-09-10 09:57:18 +01:00
debug-dir-unmapped.test [llvm-objcopy] [COFF] Do not patch debug entries if PointerToRawData is zero 2021-08-06 09:23:25 -07:00
debug-entry-no-payload.test [llvm-objcopy] [COFF] Do not patch debug entries if PointerToRawData is zero 2021-08-06 09:23:25 -07:00
discard-all.test
only-keep-debug.test
only-section.test
patch-debug-dir.test
patch-debug-dir2.test
redefine-symbol.test
remove-section.test
set-section-flags.test
strip-all.test
strip-debug.test
strip-reloc-symbol.test
strip-symbol.test
strip-unneeded.test
weak-external.test