forked from OSchip/llvm-project
[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:
parent
c2e5c95a14
commit
4fee8a1691
|
@ -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]]:
|
||||
|
|
Loading…
Reference in New Issue