Testsuite: unbreak use of explicit stderr on BSDs, redux
authorJeremy Harris <jgh146exb@wizmail.org>
Wed, 6 Sep 2023 08:55:30 +0000 (09:55 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Wed, 6 Sep 2023 08:55:30 +0000 (09:55 +0100)
test/Makefile.in

index c0013ba42cc845fd1f6656993285ab6c2f057387..90d6892f711810d063b68d97dbe85156a7c29f12 100644 (file)
@@ -28,8 +28,9 @@ all:            binaries sysbinaries
 binaries:      $(BINARIES)
 
 sysbinaries:   FORCE binaries
+               rm -f bin.sys/*
                bin/locate initdb postgres pg_ctl psql mysqld mysql
-               test -e /dev/stderr || ln -s /proc/sys/fd/2 bin.sys/stderr && ln -s /dev/stderr bin.sys/stderr
+               if [ -e /dev/stderr ]; then  ln -s /dev/stderr bin.sys/stderr; else ln -s /proc/sys/fd/2 bin.sys/stderr; fi
                ls -la bin.sys
 
 # Compile and link the programs: