Prevent ExtUtils-CBuilder leaving test output on Windows
authorSteve Hay <steve.m.hay@googlemail.com>
Thu, 29 Aug 2013 12:06:50 +0000 (13:06 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Thu, 29 Aug 2013 12:57:19 +0000 (13:57 +0100)
commit47ce55cb24970b00161d833503e1ff9f669d5b62
tree72a71f4dbacd37dc840ff325b06be1163bd7c7a9
parent53f775c2ac46477914a80e552244b55e4cae4d4c
Prevent ExtUtils-CBuilder leaving test output on Windows

The link function call in the have_compiler and have_cplusplus tests create
a compilet.def file on Windows which is correctly recorded for cleaning up
when the EU::CB object is destroyed, but if another one gets made in the
meantime then ExtUtils::Mksymlists::Mksymlists moves the first one to
compilet_def.old, which isn't recorded for cleaning up and gets left
behind when the test script has finished. Using a new object each time,
destroying the previous one first, prevents this.
dist/ExtUtils-CBuilder/t/00-have-compiler.t