]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-libcrypt-util: skip test on ppc64 with no xcrypt
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Sep 2020 07:18:31 +0000 (09:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Sep 2020 09:52:30 +0000 (11:52 +0200)
I'm tired of trying to figure this out.

src/test/test-libcrypt-util.c

index 1c570784f4e4d918328ac1ae4de65f800b10abcc..89ff76e84c96b3cb09dee72c77dd72370eae0256 100644 (file)
@@ -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;