Add a testcase for PR binutils/23460
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Aug 2018 12:00:45 +0000 (05:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Aug 2018 12:00:59 +0000 (05:00 -0700)
commit36a900f483789dc2ec4bfd31386e29b52fd2e019
treebf4c769ed210a01fc53eb6bac5d794d43f49e25e
parent09a8cc152be1b6ad2e309ac2d61caa5a4a1c3a54
Add a testcase for PR binutils/23460

Add a testcase to limit open files to 16 for AR with plugin.  Before

commit 103da91bc083f94769e3758175a96d06cef1f8fe
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Aug 1 14:34:41 2018 +0100

    Close resource leaks in the BFD library's plugin handler.

it failed with:

../binutils/ar: tmpdir/pr23460f.o: plugin needed to handle lto object

PR binutils/23460
* testsuite/ld-plugin/lto.exp: Run the PR binutils/23460 test.
* testsuite/ld-plugin/pr23460a.c: New file.
* testsuite/ld-plugin/pr23460b.c: Likewise.
* testsuite/ld-plugin/pr23460c.c: Likewise.
* testsuite/ld-plugin/pr23460d.c: Likewise.
* testsuite/ld-plugin/pr23460e.c: Likewise.
* testsuite/ld-plugin/pr23460f.c: Likewise.
ld/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr23460a.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr23460b.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr23460c.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr23460d.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr23460e.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr23460f.c [new file with mode: 0644]