Skip to content

Conversation

@boomanaiden154
Copy link
Contributor

There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

@llvmbot llvmbot added compiler-rt PGO Profile Guided Optimizations labels Oct 26, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 26, 2025

@llvm/pr-subscribers-pgo

Author: Aiden Grossman (boomanaiden154)

Changes

There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.


Full diff: https://github.com/llvm/llvm-project/pull/165146.diff

1 Files Affected:

  • (modified) compiler-rt/test/memprof/TestCases/log_path_test.cpp (+2-1)
diff --git a/compiler-rt/test/memprof/TestCases/log_path_test.cpp b/compiler-rt/test/memprof/TestCases/log_path_test.cpp
index 664ab79393195..683ca67122c31 100644
--- a/compiler-rt/test/memprof/TestCases/log_path_test.cpp
+++ b/compiler-rt/test/memprof/TestCases/log_path_test.cpp
@@ -18,7 +18,8 @@
 // RUN: %env_memprof_opts=print_text=true:log_path=/dev/null/INVALID not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-BAD-DIR --dump-input=always
 
 // Too long log_path.
-// RUN: %env_memprof_opts=print_text=true:log_path=`for((i=0;i<10000;i++)); do echo -n $i; done` \
+// RUN: %python -c "for i in range(0, 10000): print(i, end='')" > %t.long_log_path
+// RUN: %env_memprof_opts=print_text=true:log_path=%{readfile:%t.long_log_path} \
 // RUN:   not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-LONG --dump-input=always
 
 // Specifying the log name via the __memprof_profile_filename variable.

boomanaiden154 added a commit to boomanaiden154/llvm-project that referenced this pull request Oct 26, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Pull Request: llvm#165146
Created using spr 1.3.7

[skip ci]
Created using spr 1.3.7
Created using spr 1.3.7

[skip ci]
Created using spr 1.3.7
boomanaiden154 added a commit to boomanaiden154/llvm-project that referenced this pull request Oct 30, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Pull Request: llvm#165146
boomanaiden154 added a commit to boomanaiden154/llvm-project that referenced this pull request Oct 30, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Pull Request: llvm#165146
boomanaiden154 added a commit to boomanaiden154/llvm-project that referenced this pull request Oct 30, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Pull Request: llvm#165146
@boomanaiden154 boomanaiden154 changed the base branch from users/boomanaiden154/main.memprof-make-test-work-with-internal-shell to main October 30, 2025 19:46
Created using spr 1.3.7
@boomanaiden154 boomanaiden154 merged commit bb8261b into main Oct 30, 2025
5 of 9 checks passed
@boomanaiden154 boomanaiden154 deleted the users/boomanaiden154/memprof-make-test-work-with-internal-shell branch October 30, 2025 19:47
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Oct 30, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Reviewers: fmayer, snehasish, teresajohnson

Reviewed By: fmayer, teresajohnson

Pull Request: llvm/llvm-project#165146
luciechoi pushed a commit to luciechoi/llvm-project that referenced this pull request Nov 1, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Reviewers: fmayer, snehasish, teresajohnson

Reviewed By: fmayer, teresajohnson

Pull Request: llvm#165146
DEBADRIBASAK pushed a commit to DEBADRIBASAK/llvm-project that referenced this pull request Nov 3, 2025
There is one test that uses a subshell to generate a long path name.
Replace it with a python invocation and a readfile substitution. This
helps move compiler-rt over to lit's internal shell.

Reviewers: fmayer, snehasish, teresajohnson

Reviewed By: fmayer, teresajohnson

Pull Request: llvm#165146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler-rt PGO Profile Guided Optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants