[NFC][compiler-rt][profile] Remove non-Posix -h option from test

We are running `ls -lh` in gcov-execlp.c test in Posix folder.
However `-h` is not a POSIX option,ls on some POSIX system (eg: AIX)
may not support it.

This patch remove this option to avoid break.

Reviewed By: anhtuyen

Differential Revision: https://reviews.llvm.org/D111807
This commit is contained in:
Jinsong Ji 2021-10-14 14:52:17 +00:00
parent c2e5c95a14
commit 4fee8a1691
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ void func2(void) {} // CHECK-NEXT: #####: [[#@LINE]]:
int main(void) { // CHECK-NEXT: 1: [[#@LINE]]:
func1(); // CHECK-NEXT: 1: [[#@LINE]]:
#ifdef EXECVP
char *argv[] = {"ls", "-l", "-h", (char *)0};
char *argv[] = {"ls", "-l", (char *)0};
execvp("ls", argv); // EXECVP: 1: [[#@LINE]]: execvp
#else
execlp("ls", "-l", "-h", (char *)0); // EXECLP: 1: [[#@LINE]]: execlp
execlp("ls", "-l", (char *)0); // EXECLP: 1: [[#@LINE]]: execlp
#endif
func2(); // CHECK: #####: [[#@LINE]]: func2
return 0; // CHECK-NEXT: #####: [[#@LINE]]: