[libcxx-dev] ninja check-libcxx failing when running under sudo

JF Bastien via libcxx-dev libcxx-dev at lists.llvm.org
Tue Aug 6 13:24:11 PDT 2019

Do you have a list of the tests that fail, and why? It would be interesting to understand whether those failures are accurate (and we should fix libc++), or whether the tests are erroneous.

It seems like a bad idea to run tests under sudo… but we probably should look into why you’re seeing that behavior.

> On Aug 5, 2019, at 6:20 PM, Taewook Oh via libcxx-dev <libcxx-dev at lists.llvm.org> wrote:
> Hello, 
> It seems that several of libcxx unit tests are failing when running under sudo (sudo ninja check-libcxx). For example, some of the tests check the permission of the file/directory after the filesystem operation, but sudo privilege overrides it. I wonder if it’s possible to guard a test based on the user’s privilege? Thanks!
> Best,
> Taewook
> _______________________________________________
> libcxx-dev mailing list
> libcxx-dev at lists.llvm.org <mailto:libcxx-dev at lists.llvm.org>
> https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev <https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20190806/c743de73/attachment.html>

More information about the libcxx-dev mailing list