Skip to content

Commit c5995e2

Browse files
authored
[sanitizer_common][test-only] Specify full path for sort executable in popen.cpp (llvm#171622)
This test has begun failing on iossim with 'sh: sort: command not found' in the stderr. I believe this may be due to the change to the lit internal shell not having 'sort' in it's path. This patch adds the full path /usr/bin/sort to work around this.
1 parent 49324cd commit c5995e2

File tree

1 file changed

+1
-1
lines changed
  • compiler-rt/test/sanitizer_common/TestCases/Posix

1 file changed

+1
-1
lines changed

compiler-rt/test/sanitizer_common/TestCases/Posix/popen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
int main(void) {
99
// use a tool that produces different output than input to verify
1010
// that everything worked correctly
11-
FILE *fp = popen("sort", "w");
11+
FILE *fp = popen("/usr/bin/sort", "w");
1212
assert(fp);
1313

1414
// verify that fileno() returns a meaningful descriptor (needed

0 commit comments

Comments
 (0)