diff options
| author | Vladimir Vereschaka <vvereschaka@accesssoftek.com> | 2019-11-05 17:09:50 -0800 |
|---|---|---|
| committer | Vladimir Vereschaka <vvereschaka@accesssoftek.com> | 2019-11-05 17:09:50 -0800 |
| commit | bcbb121ff6c8440382abfce8f2911a095f14602b (patch) | |
| tree | 62a39c5eb2a1c5b75e7ecc1f6ad6a16c2f193dd1 /llvm/test/tools/llvm-profdata | |
| parent | b36e3a8bac3ee95a5a67ab0acb6ef2a2602226a7 (diff) | |
| download | bcm5719-llvm-bcbb121ff6c8440382abfce8f2911a095f14602b.tar.gz bcm5719-llvm-bcbb121ff6c8440382abfce8f2911a095f14602b.zip | |
Fixed a profdata file size detection on Windows system.
The space symbols are allowed in the group names on Windows system (as
example: Domain Users). In that case the test extracts a wrong field
from the output to get a size of the profdata file.
This patch avoids a printing of the group names in the test output and
extracts a proper field as a file size.
Differential Revision: https://reviews.llvm.org/D69317
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
| -rw-r--r-- | llvm/test/tools/llvm-profdata/show-prof-size.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-profdata/show-prof-size.test b/llvm/test/tools/llvm-profdata/show-prof-size.test index cc9b16aa08c..926027992ee 100644 --- a/llvm/test/tools/llvm-profdata/show-prof-size.test +++ b/llvm/test/tools/llvm-profdata/show-prof-size.test @@ -1,5 +1,5 @@ ; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile.proftext -o %t.1.output -; RUN: ls -l %t.1.output |tr -s ' ' |cut -f5 -d ' ' > %t.txt +; RUN: ls -o %t.1.output |tr -s ' ' |cut -f4 -d ' ' > %t.txt ; RUN: llvm-profdata show -sample -show-sec-info-only %t.1.output >> %t.txt ; RUN: FileCheck %s --input-file=%t.txt ; Check llvm-profdata shows the correct file size. |

