[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/18] tests: improve error message when saving TLS PSK file f
From: |
Daniel P . Berrangé |
Subject: |
[PATCH v2 02/18] tests: improve error message when saving TLS PSK file fails |
Date: |
Thu, 10 Mar 2022 17:18:05 +0000 |
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
tests/unit/crypto-tls-psk-helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/crypto-tls-psk-helpers.c
b/tests/unit/crypto-tls-psk-helpers.c
index 7f8a488961..4bea7c6fa2 100644
--- a/tests/unit/crypto-tls-psk-helpers.c
+++ b/tests/unit/crypto-tls-psk-helpers.c
@@ -30,7 +30,7 @@ void test_tls_psk_init(const char *pskfile)
fp = fopen(pskfile, "w");
if (fp == NULL) {
- g_critical("Failed to create pskfile %s", pskfile);
+ g_critical("Failed to create pskfile %s: %s", pskfile,
strerror(errno));
abort();
}
/* Don't do this in real applications! Use psktool. */
--
2.34.1
- [PATCH v2 00/18] tests: introduce testing coverage for TLS with migration, Daniel P . Berrangé, 2022/03/10
- [PATCH v2 02/18] tests: improve error message when saving TLS PSK file fails,
Daniel P . Berrangé <=
- [PATCH v2 01/18] tests: fix encoding of IP addresses in x509 certs, Daniel P . Berrangé, 2022/03/10
- [PATCH v2 03/18] tests: support QTEST_TRACE env variable, Daniel P . Berrangé, 2022/03/10
- [PATCH v2 05/18] tests: add more helper macros for creating TLS x509 certs, Daniel P . Berrangé, 2022/03/10
- [PATCH v2 09/18] tests: introduce ability to provide hooks for migration precopy test, Daniel P . Berrangé, 2022/03/10
- [PATCH v2 10/18] tests: switch migration FD passing test to use common precopy helper, Daniel P . Berrangé, 2022/03/10
- [PATCH v2 11/18] tests: expand the migration precopy helper to support failures, Daniel P . Berrangé, 2022/03/10