I'm pretty unhappy this patch. DebugInfoPDBTests uses an API that requires some magic txt file to be next to the unit test executable that stores the absolute path to the LLVM source root. The choices here are:
- Don't use the unittest() template for DebugInfoPDBTests and set output_dir for unit tests in two places (the gni file for every test but this one, and the BUILD.gn file for this specific test).
- Add a 3rd unittest_foo() template variation for this one test.
I went with the former, and added a comment to the template to look out for this.
(The CMake build has the same issue.)