]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix elf/tst-dlmopen-twice not to exhaust static TLS
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 18 Oct 2022 15:33:52 +0000 (16:33 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Oct 2022 17:43:58 +0000 (18:43 +0100)
By default glibc only allocates enough static TLS for 4 link namespaces
including the initial one. So only use 3 dlmopens in the test.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/tst-dlmopen-twice.c

index 70c71fe19c7d0bf9d46c3b84df962405eee67ce0..a8d7e5e0818c16f9908f1ac9331f8b31909b15d6 100644 (file)
@@ -46,8 +46,8 @@ do_test (void)
   recurse (1);
 
   /* Then with nesting.  The constant needs to be less than the
-     internal DL_NNS namespace constant.  */
-  recurse (10);
+     glibc.rtld.nns tunable (which is 4 by default).  */
+  recurse (3);
   return 0;
 }