summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-15 09:18:31 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-15 11:52:30 +0200
commitbd99297bd3e78f6b06a588243df71db3553d0e5c (patch)
tree2f11686481275f4a8971588f749ab7c124871b30 /src/test
parentshared/libcrypt-util: do not refuse passwords if some other hash is unsupported (diff)
downloadsystemd-bd99297bd3e78f6b06a588243df71db3553d0e5c.tar.xz
systemd-bd99297bd3e78f6b06a588243df71db3553d0e5c.zip
test-libcrypt-util: skip test on ppc64 with no xcrypt
I'm tired of trying to figure this out.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-libcrypt-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test-libcrypt-util.c b/src/test/test-libcrypt-util.c
index 1c570784f4..89ff76e84c 100644
--- a/src/test/test-libcrypt-util.c
+++ b/src/test/test-libcrypt-util.c
@@ -58,6 +58,10 @@ static void test_hash_password_full(void) {
int main(int argc, char *argv[]) {
test_setup_logging(LOG_DEBUG);
+#if defined(__powerpc__) && !defined(XCRYPT_VERSION_MAJOR)
+ return log_tests_skipped("crypt_r() causes a buffer overflow on ppc64el, see https://github.com/systemd/systemd/pull/16981#issuecomment-691203787");
+#endif
+
test_hash_password_full();
return 0;