mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 05:35:11 +00:00
ea54773994
The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in llvm. Differential Revision: https://reviews.llvm.org/D36495 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310953 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
963 B
Plaintext
22 lines
963 B
Plaintext
# Test that we can write source file names to PDBs and read them back.
|
|
# Because the subsection the file names are stored in is 4-byte
|
|
# aligned, there is a possibility of misaligning the file names. This
|
|
# will cause them to be read back empty or truncated. To guard
|
|
# against this, we test with two different lengths of file name data
|
|
# that differ by one byte, so that at least one of those will only
|
|
# pass if alignment is implemented correctly.
|
|
|
|
RUN: rm -rf %t && mkdir -p %t
|
|
RUN: llvm-pdbutil yaml2pdb -pdb=%t/source-names-1.pdb %p/Inputs/source-names-1.yaml
|
|
RUN: llvm-pdbutil pdb2yaml -module-files %t/source-names-1.pdb \
|
|
RUN: | FileCheck -check-prefix=CHECK1 %s
|
|
RUN: llvm-pdbutil yaml2pdb -pdb=%t/source-names-2.pdb %p/Inputs/source-names-2.yaml
|
|
RUN: llvm-pdbutil pdb2yaml -module-files %t/source-names-2.pdb \
|
|
RUN: | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
CHECK1: SourceFiles:
|
|
CHECK1: 'C:\src\test.c'
|
|
|
|
CHECK2: SourceFiles:
|
|
CHECK2: 'C:\src\test.cc'
|