about summary refs log tree commit diff
path: root/elf/tst-dlopenfail-2.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:00 +0200
commit7862ff8e699ca8f605b832c6e529f5b10e678edd (patch)
tree4bbd164dd7c202811bb7a7a5647b92568a9e2bc9 /elf/tst-dlopenfail-2.c
parentb8cdc3bba71140d9c122ebde01c5094db1889485 (diff)
downloadglibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar.gz
glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.tar.xz
glibc-7862ff8e699ca8f605b832c6e529f5b10e678edd.zip
elf: Use custom NODELETE DSO for tst-dlopenfail, tst-dlopenfail-2
Once libpthread is empty and no longer marked NODELETE, it no longer
can be used for testing.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/tst-dlopenfail-2.c')
-rw-r--r--elf/tst-dlopenfail-2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/elf/tst-dlopenfail-2.c b/elf/tst-dlopenfail-2.c
index 50eed81cb0..168c4b2c7f 100644
--- a/elf/tst-dlopenfail-2.c
+++ b/elf/tst-dlopenfail-2.c
@@ -28,10 +28,7 @@
 static int
 do_test (void)
 {
-  /* This test uses libpthread as the canonical NODELETE module.  If
-     libpthread is no longer NODELETE because it has been merged into
-     libc, the test needs to be updated.  */
-  TEST_VERIFY (dlsym (NULL, "pthread_create") == NULL);
+  TEST_VERIFY (dlsym (NULL, "no_delete_mod_function") == NULL);
 
   /* This is expected to fail because of the missing dependency.  */
   puts ("info: attempting to load tst-dlopenfailmod1.so");