Revert "Fixed a profdata file size detection on Windows system."
authorVladimir Vereschaka <vvereschaka@accesssoftek.com>
Mon, 11 Nov 2019 01:58:29 +0000 (17:58 -0800)
committerVladimir Vereschaka <vvereschaka@accesssoftek.com>
Mon, 11 Nov 2019 02:05:24 +0000 (18:05 -0800)
This reverts commit bcbb121ff6c8440382abfce8f2911a095f14602b.

Using 'ls -o' is not compatible way to fix the problem. FreeBSD and OSX
version of 'ls' do not support -o flag and test gets failed on these
platforms.

Differential Revision: https://reviews.llvm.org/D69317

llvm/test/tools/llvm-profdata/show-prof-size.test

index 9260279..cc9b16a 100644 (file)
@@ -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 -o %t.1.output |tr -s ' ' |cut -f4 -d ' ' > %t.txt
+; RUN: ls -l %t.1.output |tr -s ' ' |cut -f5 -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.