elf: add test for dl-printf
authorRoy Eldar <royeldar0@gmail.com>
Thu, 25 May 2023 14:41:59 +0000 (17:41 +0300)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 25 May 2023 16:51:23 +0000 (18:51 +0200)
commitd2b1af43057c2bde5b180868a67d2b2bc2de95b7
tree183f86a2bf99bbdbc0ac81f70669452a9ebc381e
parentdae801527386f94e9d2fabf23c37863d1b599153
elf: add test for dl-printf

This patch checks _dl_debug_vdprintf, by passing various inputs to
_dl_dprintf and comparing the output with invocations of snprintf.

Signed-off-by: Roy Eldar <royeldar0@gmail.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/Makefile
elf/tst-dl-printf-static.c [new file with mode: 0644]