aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-03-17 00:22:03 -0400
committerAndrew Dunstan <andrew@dunslane.net>2011-03-17 00:22:03 -0400
commit158e04274776a4648f6ad99376d98f0fc893500c (patch)
treed0cd6f79cf8e4e118ee1dfcc1dddf7ad2112fb96
parent56423c143cce5347217d27119f5f52eaab899721 (diff)
downloadpostgresql-158e04274776a4648f6ad99376d98f0fc893500c.tar.gz
postgresql-158e04274776a4648f6ad99376d98f0fc893500c.zip
Use correct PATH separator for Cygwin in pg_regress.c.
This has been broken for years, and I'm not sure why it has not been noticed before, but now a very modern Cygwin breaks on it, and the fix is clearly correct. Backpatching to all live branches.
-rw-r--r--src/test/regress/pg_regress.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index 3a6e3403094..f386220eb21 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -796,8 +796,10 @@ initialize_environment(void)
add_to_path("LD_LIBRARY_PATH", ':', libdir);
add_to_path("DYLD_LIBRARY_PATH", ':', libdir);
add_to_path("LIBPATH", ':', libdir);
-#if defined(WIN32) || defined(__CYGWIN__)
+#if defined(WIN32)
add_to_path("PATH", ';', libdir);
+#elif defined(__CYGWIN__)
+ add_to_path("PATH", ':', libdir);
#endif
}
else