[sanitizer_common][test-only] Specify full path for sort executable in popen.cpp (#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.
NOKEYCHECK=True
GitOrigin-RevId: c5995e25ba6a32b839cefe86abf721f57f9bf615
diff --git a/test/sanitizer_common/TestCases/Posix/popen.cpp b/test/sanitizer_common/TestCases/Posix/popen.cpp
index 6bf6255..fdbdb2f 100644
--- a/test/sanitizer_common/TestCases/Posix/popen.cpp
+++ b/test/sanitizer_common/TestCases/Posix/popen.cpp
@@ -8,7 +8,7 @@
int main(void) {
// use a tool that produces different output than input to verify
// that everything worked correctly
- FILE *fp = popen("sort", "w");
+ FILE *fp = popen("/usr/bin/sort", "w");
assert(fp);
// verify that fileno() returns a meaningful descriptor (needed