Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
test(launcher): give up on the busy bundle lock after 1 s, not 30
raymondchinse87ca64ad38c
diff --git a/dylib/tests/launchercheck.sh b/dylib/tests/launchercheck.shindex bdc99b5..b6aac6a 100644--- a/dylib/tests/launchercheck.sh+++ b/dylib/tests/launchercheck.sh@@ -11,6 +11,9 @@ loader_line=$(grep -A1 '^if \[ -x "\$loader_macos/wine" \]; then$' "$SRC" | sed[ -n "$funcs" ] || { echo "FAIL: bundle functions not found"; exit 1; }[ -n "$name_lines" ] || { echo "FAIL: bundle name lines not found"; exit 1; }[ -n "$launcher_body" ] || { echo "FAIL: launcher script not found"; exit 1; }+# A busy lock is waited out for 30 s; the lock contention case below needs it to give up.+funcs=$(printf '%s\n' "$funcs" | sed 's|/usr/bin/lockf -s -t 30 7|/usr/bin/lockf -s -t 1 7|')+printf '%s\n' "$funcs" | grep -q 'lockf -s -t 1 7' || { echo "FAIL: bundle lock wait not found"; exit 1; }eval "$funcs"fails=0