[PATCH] D51561: [CMake] Add support for unittests that have input files

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 6 11:32:24 PDT 2018


zturner added a comment.

Also there’s not really that many of these files, and they’re very small.
Making it opt-in seems more troue than it’s worth because there’s not going
to be a measurable impact of writing the files.

It would be nice to have a standalone executable that can be lit-run but
it’s a lot of work for little gain in some cases. Fwiw this pattern is also
prevalent in lldb with minidump tests. There too it would be nice to have a
dedicated test executable, but again it’s a lot of work. In this particular
case, it’s even questionable how appropriate that would be, because I’m
really testing an implementation detail, which is what unit tests are for),
but it requires an input file to exercise. Mocking up a “fake” pdb file
class is another option, but that’s also a lot of work and the solution
here is pretty straightforward and “just works”


Repository:
  rL LLVM

https://reviews.llvm.org/D51561





More information about the llvm-commits mailing list