[all-commits] [llvm/llvm-project] 31f69d: [libc] Fix integration test args/env in LibcTest l...
Jeff Bailey via All-commits
all-commits at lists.llvm.org
Wed Mar 4 01:48:01 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 31f69d333e4906a9180ee76e48096e3d1a1f1234
https://github.com/llvm/llvm-project/commit/31f69d333e4906a9180ee76e48096e3d1a1f1234
Author: Jeff Bailey <jbailey at raspberryginger.com>
Date: 2026-03-04 (Wed, 04 Mar 2026)
Changed paths:
M libc/cmake/modules/LLVMLibCTestRules.cmake
M libc/utils/libctest/format.py
Log Message:
-----------
[libc] Fix integration test args/env in LibcTest lit format (#184438)
Integration tests with ARGS or ENV in their add_integration_test() call
were being run with no arguments or environment variables by the
LibcTest lit format, causing failures in startup_args_test,
sprintf_size_test, getenv_test, execv_test, execve_test, and
getcwd_test.
Fix this by having add_integration_test() emit a sidecar
<executable>.params JSON file (via file(GENERATE)) whenever ARGS or ENV
are specified. LibcTest.execute() reads this file at test time and
passes the args and environment to the test executable.
Also always set PWD=exec_dir in the test environment so that
getenv("PWD") matches getcwd() for tests that compare them.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list