aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Tooling/Syntax/BuildTree.cpp
diff options
context:
space:
mode:
authorAiden Grossman <aidengrossman@google.com>2025-09-12 09:51:17 -0700
committerGitHub <noreply@github.com>2025-09-12 09:51:17 -0700
commit615d07ea55ea57afab0205aa739239070448a038 (patch)
tree389814e6c11c9205032949c1b5225fd9f94ee28e /clang/lib/Tooling/Syntax/BuildTree.cpp
parentbd7c2f15e8b9ff09cd415e7f8d01117cb0296e6e (diff)
downloadllvm-615d07ea55ea57afab0205aa739239070448a038.zip
llvm-615d07ea55ea57afab0205aa739239070448a038.tar.gz
llvm-615d07ea55ea57afab0205aa739239070448a038.tar.bz2
[lit] Implement ulimit builtin
This patch implements ulimit inside the lit internal shell. Implementation wise, this functions similar to umask. But instead of setting the limits within the lit test worker process, we set environment variables and add a wrapper around the command to be executed. The wrapper then sets the limits. This is because we cannot increase the limits after lowering them, so we would otherwise end up with a lit test worker stuck with a lower limit. There are several tests where the use of ulimit is essential to the semantics of the test (two in clang, ~7 in compiler-rt), so we need to implement this in order to switch on the internal shell by default without losing test coverage. Reviewers: cmtice, petrhosek, ilovepi Reviewed By: cmtice, ilovepi Pull Request: https://github.com/llvm/llvm-project/pull/157958
Diffstat (limited to 'clang/lib/Tooling/Syntax/BuildTree.cpp')
0 files changed, 0 insertions, 0 deletions