Issue 80868
Summary tools/llvm-readtapi/stubify-simple.test fails when it is disallowed to write into the input directory
Labels llvm-tools
Assignees cyndyishida
Reporter ilya-biryukov
    We have noticed our tests don't pass with https://github.com/llvm/llvm-project/commit/7189219ec9fc768f159917052b4b5998d077c39f internally.
We have a stricter setup in which we don't allow to write into arbitrary files during test execution.

It turns out that `stubify-simple.test` actually writes into `.tbd` file during its execution and gets "permission denied" error in our setup.

This happens because if uses a path of the `InterfaceFile` to figure out the output path and it can be empty in some cases.
In particular, if I `assert(!IF->getPath().empty())` to [this line](https://github.com/llvm/llvm-project/blob/7189219ec9fc768f159917052b4b5998d077c39f/llvm/tools/llvm-readtapi/llvm-readtapi.cpp#L204), the test fails upstream as well.

@cyndyishida could you please take a look?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to