libqb/tests/start.test
Chrissie Caulfield 73472e0b13
Tidy some scripts (#454)
* 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
2022-01-19 12:50:45 +00:00

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