[compiler-rt] [sanitizer_common] posix_spawn test should forward DYLD_LIBRARY_PATH (PR #168795)

Dan Blackwell via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 02:46:35 PST 2025


================
@@ -23,11 +27,18 @@ int main(int argc, char **argv) {
       argv[0], "2", "3", "4", "2", "3", "4", "2", "3", "4",
       "2",     "3", "4", "2", "3", "4", "2", "3", "4", NULL,
   };
-  char *const env[] = {
+  char *env[] = {
       "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B",
       "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", "A=B", NULL,
   };
 
+  for (char **e = environ; *e; e++) {
----------------
DanBlackwell wrote:

NIT: these are single statement for- and if- so braces could be omitted.

https://github.com/llvm/llvm-project/pull/168795


More information about the llvm-commits mailing list