]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86-64: Update tst-glibc-hwcaps-2.c for x86-64 baseline
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 21 Jan 2021 19:57:27 +0000 (11:57 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Jan 2021 17:37:44 +0000 (09:37 -0800)
Return EXIT_FAILURE only if the level 2 libx86-64-isa-level.so is used
on x86-64 baseline machine.

sysdeps/unix/sysv/linux/x86_64/tst-glibc-hwcaps-2.c

index 2d8f7ec462e2053f0354a50a1e6e79068d15f65a..b2234200894420a0388817985ed52791c54b39cc 100644 (file)
@@ -51,7 +51,7 @@ do_test (void)
     case 2:
       /* The default libx86-64-isa-level.so is used.  */
       printf ("The default shared library is used.\n");
-      if (has_isa_v3 || has_isa_v4 || !has_isa_v2)
+      if (has_isa_v3 || has_isa_v4 || (!has_isa_v2 && level == 2))
        ret = EXIT_FAILURE;
       else
        ret = EXIT_SUCCESS;