mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
tests: Use /tmp for tmpdirs that contain sockets
Socket paths have a length limit, and depending on the working directory of the source code, these tests occasionally fail if the path is too long. Avoid this by using a template string that is absolute and in /tmp, which should avoid the socket path length issues. This fixes building libssh with pkcs11 provider support in 'fedpkg mockbuild'. Signed-off-by: Clemens Lang <cllang@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
1176a71d61
commit
2c918aad67
@@ -16,7 +16,7 @@
|
||||
#define PUB_URI_FMT "pkcs11:token=%s;object=%s;type=public"
|
||||
#define PRIV_URI_FMT "pkcs11:token=%s;object=%s;type=private?pin-value=%s"
|
||||
|
||||
const char template[] = "temp_dir_XXXXXX";
|
||||
const char template[] = "/tmp/temp_dir_XXXXXX";
|
||||
const unsigned char INPUT[] = "1234567890123456789012345678901234567890"
|
||||
"123456789012345678901234";
|
||||
struct pki_st {
|
||||
|
||||
Reference in New Issue
Block a user