diff options
author | Daniel Thornburgh <dthorn@google.com> | 2023-07-12 14:16:32 -0700 |
---|---|---|
committer | Daniel Thornburgh <dthorn@google.com> | 2023-07-12 14:28:56 -0700 |
commit | 6be453ed7fb788cf6b24dedf7f5221a5eeeff0d3 (patch) | |
tree | 0da2c8e151408162dcbe99afd63ba4c3b7fd2e9d /compiler-rt | |
parent | 119c512cb26030d58618800075428d748cf90948 (diff) | |
download | llvm-6be453ed7fb788cf6b24dedf7f5221a5eeeff0d3.zip llvm-6be453ed7fb788cf6b24dedf7f5221a5eeeff0d3.tar.gz llvm-6be453ed7fb788cf6b24dedf7f5221a5eeeff0d3.tar.bz2 |
[debuginfod] Use dedicated cache dir for tests
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/profile/Linux/binary-id-debuginfod.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/test/profile/Linux/binary-id-debuginfod.c b/compiler-rt/test/profile/Linux/binary-id-debuginfod.c index 62f50e7..86d7945 100644 --- a/compiler-rt/test/profile/Linux/binary-id-debuginfod.c +++ b/compiler-rt/test/profile/Linux/binary-id-debuginfod.c @@ -9,10 +9,12 @@ // RUN: cp %t/libfoo.so %t/buildid/12345678/debuginfo // RUN: cp %t/main %t/buildid/abcd1234/debuginfo // RUN: llvm-profdata merge -o %t/profdata %t/profdir/default_*.profraw -// RUN: env DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata | FileCheck %s +// RUN: mkdir -p %t/debuginfod-cache +// RUN: env DEBUGINFOD_CACHE_PATH=%t/debuginfod-cache DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata | FileCheck %s // RUN: echo "bad" > %t/libfoo.so %t/buildid/12345678/debuginfo // RUN: echo "bad" > %t/buildid/abcd1234/debuginfo -// RUN: env DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata -debuginfod=false %t/main | FileCheck %s --check-prefix=NODEBUGINFOD +// RUN: rm -rf %t/debuginfod-cache/* +// RUN: env DEBUGINFOD_CACHE_PTH=%t/debuginfod-cache DEBUGINFOD_URLS=file://%t llvm-cov show -instr-profile %t/profdata -debuginfod=false %t/main | FileCheck %s --check-prefix=NODEBUGINFOD // CHECK: 1| 1|void foo(void) {} // CHECK: 2| 1|void bar(void) {} |