From 9438feb4e73e84b8d202663f50b998ae64550aeb Mon Sep 17 00:00:00 2001 From: Son Luong Ngoc Date: Thu, 14 Jul 2022 08:04:25 +0200 Subject: [PATCH] test cgo: ensure helper script works (#3236) Small QOL change to ensure that generate_imported_dylib.sh runs would always success even when an older version of the symlink exists locally. --- tests/core/cgo/generate_imported_dylib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/cgo/generate_imported_dylib.sh b/tests/core/cgo/generate_imported_dylib.sh index 7fa598ea11..41227b7737 100755 --- a/tests/core/cgo/generate_imported_dylib.sh +++ b/tests/core/cgo/generate_imported_dylib.sh @@ -18,7 +18,7 @@ case "$(uname -s)" in # symlink (https://www.oracle.com/database/technologies/instant-client/macos-intel-x86-downloads.html). # Let's cover this non-standard case as well. cc -shared -Wl,-install_name,@rpath/libversioned.dylib.2 -o libversioned.dylib.2 imported.c - ln -s libversioned.dylib.2 libversioned.dylib + ln -fs libversioned.dylib.2 libversioned.dylib ;; *) echo "Unsupported OS: $(uname -s)" >&2