[PATCH] D38977: COFF: Add type server pdb files to linkrepro tar file.

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 15:23:54 PDT 2017


zturner added a comment.

In https://reviews.llvm.org/D38977#900140, @ruiu wrote:

> Yeah, some tests failed on some bots due to the maximum path limitation on Windows. /linkrepro actually works just fine, but in order to verify its contents, we have to untar the produced file into a working directory. That sometimes fails because the length of the current working directory + pathnames in the tar could easily exceed 255 characters long on some bots.


Would it be sufficient to:

a) Use `tar tf` to list the contents
b) untar the file you're interested in like this:

  RUN: tar xOf repro.tar %t/ts.pdb > %t/repro/ts.pdb
  RUN: diff %t/ts.pdb %t/repro/ts.pdb



================
Comment at: lld/test/COFF/linkrepro-pdb.test:4-5
+RUN: rm -rf %t && mkdir -p %t && cd %t
+RUN: yaml2obj %S/Inputs/pdb-type-server-simple-a.yaml -o a.obj
+RUN: yaml2obj %S/Inputs/pdb-type-server-simple-b.yaml -o b.obj
+RUN: llvm-pdbutil yaml2pdb %S/Inputs/pdb-type-server-simple-ts.yaml -pdb ts.pdb
----------------
Should these output files be going somewhere prefixed with `%t`?


https://reviews.llvm.org/D38977





More information about the llvm-commits mailing list