[PATCH] Modify several tests to use test-skeleton.c
Arjun Shankar
arjun.is@lostca.se
Mon Aug 3 16:14:00 GMT 2015
These tests were skipped by the use-test-skeleton conversion done in
commit 29955b5d because they did not have an `int main (void)'
declaration. Instead their `main' functions were declared with arguments
(i.e. argc, argv) even though they didn't use them.
Remove these arguments and include the test skeleton in these tests.
ChangeLog:
2015-08-03 Arjun Shankar <arjun.is@lostca.se>
* dirent/tst-seekdir.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* elf/tst-dlmodcount.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* elf/tst-order-main.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* elf/tst-pie2.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* inet/tst-ether_aton.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* misc/tst-mntent.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* misc/tst-tsearch.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* posix/tst-regexloc.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* resolv/tst-aton.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdio-common/test-fwrite.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdio-common/tst-ferror.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdio-common/tst-printf.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdio-common/tst-printfsz.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdlib/tst-strtod.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* string/tst-strlen.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* string/tst-svc.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* time/tst-strptime.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* timezone/tst-timezone.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
---
dirent/tst-seekdir.c | 7 +++++--
elf/tst-dlmodcount.c | 7 +++++--
elf/tst-order-main.c | 7 +++++--
elf/tst-pie2.c | 7 +++++--
inet/tst-ether_aton.c | 7 +++++--
misc/tst-mntent.c | 7 +++++--
misc/tst-tsearch.c | 7 +++++--
posix/tst-regexloc.c | 7 +++++--
resolv/tst-aton.c | 7 +++++--
stdio-common/test-fwrite.c | 7 +++++--
stdio-common/tst-ferror.c | 7 +++++--
stdio-common/tst-printf.c | 7 +++++--
stdio-common/tst-printfsz.c | 7 +++++--
stdlib/tst-strtod.c | 7 +++++--
string/tst-strlen.c | 7 +++++--
string/tst-svc.c | 7 +++++--
time/tst-strptime.c | 7 +++++--
timezone/tst-timezone.c | 7 +++++--
18 files changed, 90 insertions(+), 36 deletions(-)
Tested on x86_64 with no regressions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Modify-several-tests-to-use-test-skeleton.c.patch
Type: text/x-patch
Size: 8597 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150803/5b73df90/attachment.bin>
More information about the Libc-alpha
mailing list