Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e094496

Browse files
authored
fixup! [clang] Forward -fvalidate-ast-input-files-content when loading AST dumps
Apparently `-t 300001010000` is not a universally valid date format. This should fix the buildbot failure caused by #196298 Replace with an in-line python script that should be more portable.
1 parent 178651f commit e094496

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

clang/test/Analysis/ctu/reusable-pch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// Step 2b: Run with content validation - no difference.
2020
// RUN: %{ctu_analysis} %t/main.c -fvalidate-ast-input-files-content
2121

22-
// Step 3: Set mtime of the source from which PCH was built to the year 3000 (way in the future).
23-
// RUN: touch -t 300001010000 %t/other.c
22+
// Step 3: Advance mtime of the source from which PCH was built.
23+
// RUN: %python -c "import os, sys, time; os.utime(sys.argv[1], (time.time() + 120, time.time() + 120))" %t/other.c
2424

2525
// Step 4a: Run CTU using the "stale" PCH, and it should still load it and find the division by zero bug.
2626
// RUN: %{ctu_analysis} -fvalidate-ast-input-files-content %t/main.c

0 commit comments

Comments
 (0)