aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test-crypto-pbkdf.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2024-09-04 09:58:19 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2024-09-09 15:13:38 +0100
commitebe0302ac822da214f347f6cc37a73139660bed8 (patch)
tree75f110b44a916421af7da570c88714c55b8cba4a /tests/unit/test-crypto-pbkdf.c
parentb0fe44b56b6d02e6f57577cdf69dfb54fd6ada99 (diff)
downloadqemu-ebe0302ac822da214f347f6cc37a73139660bed8.zip
qemu-ebe0302ac822da214f347f6cc37a73139660bed8.tar.gz
qemu-ebe0302ac822da214f347f6cc37a73139660bed8.tar.bz2
tests/unit: build pbkdf test on macOS
Add CONFIG_DARWIN to the pbkdf test build condition, since we have a way to measure CPU time on this platform since commit bf98afc75efedf1. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/unit/test-crypto-pbkdf.c')
-rw-r--r--tests/unit/test-crypto-pbkdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-crypto-pbkdf.c b/tests/unit/test-crypto-pbkdf.c
index 241e1c2..39264cb 100644
--- a/tests/unit/test-crypto-pbkdf.c
+++ b/tests/unit/test-crypto-pbkdf.c
@@ -25,7 +25,7 @@
#include <sys/resource.h>
#endif
-#if defined(_WIN32) || defined(RUSAGE_THREAD)
+#if defined(_WIN32) || defined(RUSAGE_THREAD) || defined(CONFIG_DARWNI)
#include "crypto/pbkdf.h"
typedef struct QCryptoPbkdfTestData QCryptoPbkdfTestData;