llvm-project/llvm/test/tools/llvm-objcopy/ELF
Alexandre Ganea a680ea2c72 Fix "last accessed time" test failing on Windows
Before this patch, the tests in llvm/test/tools/llvm-objcopy/ELF/strip-preserve-atime.test used to fail on my machine, because the "last accessed time" is disabled in the OS by default since Windows XP. One needs to explicitly enable it for the feature to work. Otherwise the last access time is the last write time. Please see: https://superuser.com/questions/251263/the-last-access-date-is-not-changed-even-after-reading-the-file-on-windows-7

    Differential Revision: https://reviews.llvm.org/D85669
2020-08-10 16:03:14 -04:00
..
Inputs [test] Re-enable accidentally disabled X86 tests 2020-03-19 09:29:23 -07:00
abs-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
add-gnu-debuglink.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
add-note.test [llvm-readobj] Include section name of notes. 2020-03-05 09:53:14 -08:00
add-section-remove.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
add-section-special.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
add-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
add-symbol-new-symbol-visibility.test
add-symbol-new-symtab.test [llvm-objcopy] Fix crash when removing symbol table at same time as adding a symbol 2020-07-05 05:14:00 +03:00
add-symbol-no-symtab.test [yaml2obj] - Change the order of implicitly created sections. 2020-02-19 15:09:19 +03:00
add-symbol.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
adjacent-segments.test
archive-unknown-members.test
armexidx-link.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
auto-remove-shndx.test
bad-build-id.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
bad-output-format.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
basic-archive-copy.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
basic-binary-copy.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
basic-copy.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
basic-keep.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
basic-only-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
basic-relocations.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
binary-first-seg-offset-zero.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
binary-input-and-output.test
binary-input-error.test [llvm-objcopy] Ignore -B --binary-architecture= 2019-09-14 01:36:31 +00:00
binary-input.test [llvm-objcopy] Add --set-section-alignment 2019-10-02 12:41:25 +00:00
binary-no-paddr.test [llvm-objcopy] Don't specialize the all zero p_paddr case 2020-04-27 11:20:41 -07:00
binary-out-error.test
binary-output-empty.test
binary-output-target.test Support bfdname "elf32-hexagon". 2020-04-06 17:22:56 -05:00
binary-paddr.test [llvm-objcopy] -O binary: skip empty sections 2020-05-01 14:25:37 -07:00
binary-remove-all-but-one.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
binary-remove-end.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
binary-remove-middle.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
binary-segment-layout.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
build-id-link-dir.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
cannot-delete-dest.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
change-entry-point.test
check-addr-offset-align-binary.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
check-addr-offset-align.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
common-symbol.test [Hexagon][llvm-objcopy] Add missing check for SHN_HEXAGON_SCOMMON_1 2020-06-24 19:56:01 -05:00
compress-and-decompress-debug-sections-error.test
compress-debug-sections-default-gnu.test
compress-debug-sections-default.test
compress-debug-sections-groups.test
compress-debug-sections-invalid-format.test
compress-debug-sections-symbols.test
compress-debug-sections-zlib-gnu.test
compress-debug-sections-zlib-header.test
compress-debug-sections-zlib.test
compress-debug-sections.test
copy-after-strip-sections.test
copy-osabi.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
cross-arch-headers.test [Object] Use BFD name for little-endian PowerPC64 2020-04-19 20:10:05 -07:00
cross-arch-sections-symbols.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
deterministic-archive.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
discard-all-debug.test
discard-all.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
discard-locals-rel.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
discard-locals.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
discard-mix-local-and-all.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
drawf-fission.test
dump-section-before-add-remove.test [llvm-objcopy] Reorder --dump-section before --remove-section for ELF 2020-06-05 10:45:51 -07:00
dump-section.test [llvm-objcopy][ELF] Allow --dump-section to dump an empty non-SHT_NOBITS section 2020-05-05 08:26:34 -07:00
dynamic-relocations.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
dynamic.test
dynrelocsec-remove-shinfo-reference.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
dynrelocsec-remove-shlink-reference.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
dynstr.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
dynsym-error-remove-strtab.test
dynsym.test
elf32be.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
elf32le.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
elf64be.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
empty-section.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
error-format.test
explicit-keep-remove.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
explicit-only-section-remove.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
fail-no-output-directory.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
globalize.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
group-addr-misaligned.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
group-big-endian.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
group-reorder.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
group-unchanged.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
group.test [llvm-objcopy] Emit error if removing symtab referenced by group section 2020-06-29 10:42:03 +01:00
hexagon-unsupported-on-x86.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
identical-segments.test
ihex-reader.test
ihex-writer.test
input-output-target.test [llvm-objcopy][test] Clean up -B tests 2019-09-25 03:41:01 +00:00
invalid-e_phoff.test
invalid-e_shoff.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
invalid-p_filesz-p_offset.test [yaml2obj] - Program headers: add an additional check for `Offset` 2020-04-22 12:49:05 +03:00
invalid-preserve-dates.test
keep-file-symbols.test Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols 2020-04-20 21:18:48 -07:00
keep-global-symbols-mix-globalize.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
keep-global-symbols.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
keep-many.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
keep-only-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
keep-symbol-remove-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
keep-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
linked-section.test
localize-hidden.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
localize.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
many-sections.test [Object] Change ELFObjectFile<ELFT>::getFileFormatName() to use BFD names 2020-03-16 07:42:04 -07:00
marker-segment.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
mirror-permissions-unix.test
mirror-permissions-win.test
new-symbol-visibility.test
no-build-id-no-notes.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
no-build-id.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
no-strip-all.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
no-symbol-relocation.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
null-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
objcopy-version.test
only-keep-debug.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
only-section-many.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
only-section-remove-strtab.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
only-section-strip-non-alloc.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
only-section-strip-undefined.test [llvm-objcopy][test] Fix tests when path contains "bar" 2020-01-30 17:56:12 -08:00
overlap-chain.test
overlapping-sections-in-segments.test [llvm-objcopy] - Remove python invocations from 2 test cases. 2019-09-17 08:38:53 +00:00
overlapping-sections.test [llvm-objcopy] - Remove python invocations from 2 test cases. 2019-09-17 08:38:53 +00:00
parent-loop-check.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
partitions.test [llvm-readelf] Make --all output order closer to GNU readelf 2020-03-04 12:22:12 -08:00
prefix-alloc-sections-dynrelocsec.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
prefix-alloc-sections.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
prefix-symbols.test [tools][tests] - Use --check-prefixes instead of multiple --check-prefix. NFCI. 2020-04-17 12:35:25 +03:00
preserve-segment-contents-ehdr-phdrs.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
preserve-segment-contents.test [yaml2obj] - Allocate the file space for SHT_NOBITS sections in some cases. 2020-06-11 12:54:53 +03:00
program-headers.test
pt-phdr.test
redefine-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
regex.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
reloc-error-remove-symtab.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
reloc-no-symtab.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
relocatable-phdr.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
relocations-no-symtab.test [llvm-objcopy] - Do not crash on object that has relocations but no symbol table. 2019-10-30 13:17:22 +03:00
remove-linked-section.test
remove-multiple-sections.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
remove-section-group.test [llvm-objcopy][ELF] Fix removing SHT_GROUP sections. 2020-05-29 20:24:53 +07:00
remove-section-in-group.test [llvm-objcopy][ELF] Fix removing a group member. 2020-05-29 20:24:53 +07:00
remove-section-in-segment.test
remove-section-with-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
remove-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
remove-shndx.test
remove-shstrtab-error.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
remove-symtab.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
rename-section-and-prefix-alloc-sections.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
rename-section-duplicate-names.test
rename-section-empty-string.test
rename-section-flag-osproc-mask.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
rename-section-flag-preserved.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
rename-section-flag.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
rename-section-multiple.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
rename-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
respect-umask.test
response-file.test
same-file-strip.test
section-index-unsupported.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
sectionless-segment.test
segment-shift-section-remove.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
segment-shift.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
segment-test-remove-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
set-section-alignment.test [yaml2obj, obj2yaml] - Add support for SHT_NOTE sections. 2019-10-25 13:25:56 +03:00
set-section-flags-and-rename.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
set-section-flags-multiple.test [LLVM/tools][test] - Remove/fix dead check prefixes. 2020-04-15 13:09:51 +03:00
set-section-flags.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
shared-strtab-shstrtab.s Make test more robust 2020-04-06 14:47:05 +01:00
shstrtab-optimize.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
standard-streams.test
strict-no-add.test
strip-all-and-keep-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-all-and-remove.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-all-gnu.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-all.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-debug-and-remove.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-debug.test Reland D76675 [llvm-objcopy] Match GNU behaviour regarding file symbols 2020-04-20 21:18:48 -07:00
strip-dwo-groups.test [yaml2obj] - Stop using square brackets for unique suffixes. 2020-05-19 12:59:13 +03:00
strip-dwo-inplace.test
strip-group-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-multiple-files.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-non-alloc.test [llvm-objcopy][test] Improve empty section tests 2020-02-26 08:57:23 -08:00
strip-preserve-arm-attributes.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-preserve-atime.test Fix "last accessed time" test failing on Windows 2020-08-10 16:03:14 -04:00
strip-preserve-mtime.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-reloc-symbol.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-section-err.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-sections-keep.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-sections-only-section.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-sections.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-symbol-and-relocation.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-symbol.test Revert D83834 "Add test utility 'extract'" 2020-07-28 13:26:33 -07:00
strip-unneeded-all-symbols.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-unneeded-remove-debug-keep-link.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-unneeded.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
strip-version.test
strtab-optimize.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-copy.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-empty-name.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symtab-error-on-remove-strtab.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symtab-link.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
tail-merged-string-tables.test [llvm-objcopy][test] Fix tests when path contains "bar" 2020-01-30 17:56:12 -08:00
triple-overlap.test
two-seg-remove-end.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
two-seg-remove-first.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
two-seg-remove-third-sec.test [yaml2obj] - Set a default value for `PAddr` property of a program header to a value of `VAddr` 2020-03-14 17:44:57 +03:00
weaken-all.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
weaken.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
wildcard-flags.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
wildcard-syntax.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00