mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-12 18:01:16 +00:00
* Tidy some scripts Errors reported by Centos covscan I changed %N to %s as BSD's date command doesn't support %N. Seconds + PID should be enough .... * Shrink the name of the dlock tests as they cause random failures When the PID numbers get big, the socket name overflows the allowed limit * Increase timeout of thread check. It's been seen to time out too early and fail the tests
14 lines
353 B
Bash
Executable File
14 lines
353 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# Generate a unique(ish) name for the IPCs we will use in the tests and
|
|
# save it in a file for all of the tests to use. This way we know for sure
|
|
# which sockets are our and which we can ignore.
|
|
# The test programs all add "qb-test-<name>-" to the front of this.
|
|
#
|
|
|
|
NAME="$$-`date +%s`"
|
|
|
|
printf "$NAME" > ipc-test-name
|
|
mkdir -p $SOCKETDIR
|