summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan2011-03-17 04:13:11 +0000
committerAndrew Dunstan2011-03-17 04:13:11 +0000
commit08fc2d4f99b3a651f4b088a70c1aa21556343b69 (patch)
treec743dcbcc67d5340d11811a86e338da80b0fe3e2
parent09dfc3d704875f1780832ba692b58f2b0ff3f3fe (diff)
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 238d72b3998..94ad263fb49 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -805,8 +805,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