Skip to contentSkip to conversation

tests/unit: Really build pbkdf test on macOS

PATCH Applied Philippe Mathieu-Daudé 3 participants 3 messages Sep 17, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/unit: Really build pbkdf test on macOS

Fix a typo to run the pbkdf crypto cipher tests on macOS.

 $ make check-unit
   ...
   87/102 qemu:unit / test-crypto-pbkdf      OK      2.35s   17 subtests passed
Fixes ebe0302ac8 ("tests/unit: build pbkdf test on macOS")
---
 tests/unit/test-crypto-pbkdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/unit/test-crypto-pbkdf.c +1 -1
index b477cf4e4b..12ee808fbc 100644
@@ -25,7 +25,7 @@
 #include <sys/resource.h>
 #endif
 
-#if defined(_WIN32) || defined(RUSAGE_THREAD) || defined(CONFIG_DARWNI)
+#if defined(_WIN32) || defined(RUSAGE_THREAD) || defined(CONFIG_DARWIN)
 #include "crypto/pbkdf.h"
 
 typedef struct QCryptoPbkdfTestData QCryptoPbkdfTestData;
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Philippe Mathieu-Daudé

Fix a typo to run the pbkdf crypto cipher tests on macOS.

 $ make check-unit
   ...
   87/102 qemu:unit / test-crypto-pbkdf      OK      2.35s   17 subtests passed
Fixes ebe0302ac8 ("tests/unit: build pbkdf test on macOS")
---
 tests/unit/test-crypto-pbkdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/unit/test-crypto-pbkdf.c +0 -0
index b477cf4e4b..12ee808fbc 100644

tests/unit/test-crypto-pbkdf.c line 28

Quoted 5 lines
tests/unit/test-crypto-pbkdf.c +1 -1
@@ -25,7 +25,7 @@
 #include <sys/resource.h>
 #endif
 
-#if defined(_WIN32) || defined(RUSAGE_THREAD) || defined(CONFIG_DARWNI)
+#if defined(_WIN32) || defined(RUSAGE_THREAD) || defined(CONFIG_DARWIN)

/face-palm

tests/unit/test-crypto-pbkdf.c line 31

Quoted 3 lines
tests/unit/test-crypto-pbkdf.c +0 -0
 #include "crypto/pbkdf.h"
 
 typedef struct QCryptoPbkdfTestData QCryptoPbkdfTestData;

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
Quoted 8 lines · Daniel P. Berrangé
Quoted 7 lines · Philippe Mathieu-Daudé

Fix a typo to run the pbkdf crypto cipher tests on macOS.

  $ make check-unit
    ...
    87/102 qemu:unit / test-crypto-pbkdf      OK      2.35s   17 subtests passed
Fixes ebe0302ac8 ("tests/unit: build pbkdf test on macOS")

Picked up for trivial-patches tree, thanks!

/mjt