LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 48917 - tools/llvm-elfabi/preserve-dates-stub.test fails on Windows
Summary: tools/llvm-elfabi/preserve-dates-stub.test fails on Windows
Status: RESOLVED FIXED
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: release-12.0.0
  Show dependency tree
 
Reported: 2021-01-28 02:02 PST by Hans Wennborg
Modified: 2021-02-03 14:25 PST (History)
3 users (show)

See Also:
Fixed By Commit(s): 771b35965457ebd5faaed8a1c3d2bcefffe721a3 e2d822c3bdf6


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Wennborg 2021-01-28 02:02:20 PST
See discussion on https://reviews.llvm.org/D92902 which introduced the problem.

On my machine it fails as below. It appears 'touch' does not like the date for whatever reason. This means I'm not able to build 12.0.0-rc1.



********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: LLVM :: tools/llvm-elfabi/preserve-dates-tbe.test (39967 of 42071)
******************** TEST 'LLVM :: tools/llvm-elfabi/preserve-dates-tbe.test' FAILED ********************
Script:
--
: 'RUN: at line 3';   llvm-elfabi --elf c:\src\llvm_package_1200-rc1\llvm-project\llvm\test\tools\llvm-elfabi/Inputs/gnu_hash.so --emit-tbe=c:\src\llvm_package_1200-rc1\build32_stage0\test\tools\llvm-elfabi\Output\preserve-dates-tbe.test.tmp
: 'RUN: at line 4';   touch -m -t 197001010000 c:\src\llvm_package_1200-rc1\build32_stage0\test\tools\llvm-elfabi\Output\preserve-dates-tbe.test.tmp
: 'RUN: at line 5';   llvm-elfabi --elf c:\src\llvm_package_1200-rc1\llvm-project\llvm\test\tools\llvm-elfabi/Inputs/gnu_hash.so --emit-tbe=c:\src\llvm_package_1200-rc1\build32_stage0\test\tools\llvm-elfabi\Output\preserve-dates-tbe.test.tmp --write-if-changed
: 'RUN: at line 6';   ls -l c:\src\llvm_package_1200-rc1\build32_stage0\test\tools\llvm-elfabi\Output\preserve-dates-tbe.test.tmp | c:\src\llvm_package_1200-rc1\build32_stage0\bin\filecheck.exe --allow-unused-prefixes=false c:\src\llvm_package_1200-rc1\llvm-project\llvm\test\tools\llvm-elfabi\preserve-dates-tbe.test
--
Exit Code: 1

Command Output (stdout):
--
$ ":" "RUN: at line 3"
$ "llvm-elfabi" "--elf" "c:\src\llvm_package_1200-rc1\llvm-project\llvm\test\tools\llvm-elfabi/Inputs/gnu_hash.so" "--emit-tbe=c:\src\llvm_package_1200-rc1\build32_stage0\test\tools\llvm-elfabi\Output\preserve-dates-tbe.test.tmp"
$ ":" "RUN: at line 4"
$ "touch" "-m" "-t" "197001010000" "c:\src\llvm_package_1200-rc1\build32_stage0\test\tools\llvm-elfabi\Output\preserve-dates-tbe.test.tmp"
# command stderr:
touch: invalid date format `197001010000'

error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (2):
  LLVM :: tools/llvm-elfabi/preserve-dates-stub.test
  LLVM :: tools/llvm-elfabi/preserve-dates-tbe.test
Comment 1 Hans Wennborg 2021-02-02 01:05:07 PST
This was fixed in https://github.com/llvm/llvm-project/commit/771b35965457ebd5faaed8a1c3d2bcefffe721a3

Tom, can you please merge this to the 12.x branch?
Comment 2 Tom Stellard 2021-02-03 14:25:06 PST
Merged: e2d822c3bdf6