Subject: | tests fail: temp files being reused |
Tests fail when HARNESS_OPTIONS=j9. It looks like you're re-using the same temp files/directories between tests, which is bad when there is more than one test running at once. You should create a new tempdir each time, such as what is provided for you in File::Temp.
--> Working on Mac::Pasteboard
Fetching http://mirrors.gossamer-threads.com/CPAN/authors/id/W/WY/WYANT/Mac-Pasteboard-0.006.tar.gz
-> OK
Unpacking Mac-Pasteboard-0.006.tar.gz
Entering Mac-Pasteboard-0.006
Checking configure dependencies from META.json
Checking if you have Module::Build 0.36 ... Yes (0.4204)
Configuring Mac-Pasteboard-0.006
Running Build.PL
The pbtool script is a front-end for Mac::Pasteboard, for ad-hoc
manipulation of Mac OS X pasteboards.
Do you want to install pbtool? [n ]n
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Mac-Pasteboard' version '0.006'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280210)
Checking if you have strict 0 ... Yes (1.07)
Checking if you have Carp 0 ... Yes (1.29)
Checking if you have Encode 0 ... Yes (2.49)
Checking if you have warnings 0 ... Yes (1.18)
Checking if you have Scalar::Util 1.01 ... Yes (1.35)
Checking if you have Test::More 0.88 ... Yes (1.001002)
Building and testing Mac-Pasteboard-0.006
Building Mac-Pasteboard
Pasteboard.xs -> lib/Mac/Pasteboard.xs
constant-c.inc -> lib/Mac/constant-c.inc
constant-h.inc -> lib/Mac/constant-h.inc
constant-xs.inc -> lib/Mac/constant-xs.inc
pbl.c -> lib/Mac/pbl.c
pbl.h -> lib/Mac/pbl.h
ppport.h -> lib/Mac/ppport.h
cc -Ilib/Mac -I/Users/ether/perl5/perlbrew/perls/18.2/lib/5.18.2/darwin-2level/CORE -DTIGER -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o lib/Mac/pbl.o lib/Mac/pbl.c
cc -Ilib/Mac -I/Users/ether/perl5/perlbrew/perls/18.2/lib/5.18.2/darwin-2level/CORE -DXS_VERSION="0.006" -DVERSION="0.006" -DTIGER -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o lib/Mac/Pasteboard.o lib/Mac/Pasteboard.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Mac/Pasteboard/Pasteboard.bs')
env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector -framework ApplicationServices -o blib/arch/auto/Mac/Pasteboard/Pasteboard.bundle lib/Mac/Pasteboard.o lib/Mac/pbl.o
t/error.t .. ok
t/basic.t .. ok
Pasteboard error -25130 (badPasteboardSyncErr): The pasteboard has been modified and must be synchronized before use at t/misc.t line 27.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 1.
t/misc.t ...
Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
t/paste.t .. ok
t/synch.t .. ok
# Failed test 'Place text data on the default pasteboard.'
# at t/copy.t line 66.
# got: ''
# expected: 'There was a young lady named Bright'
# Failed test 'Flavor com.apple.traditional-mac-plain-text should be present on the default pasteboard'
# at t/copy.t line 69.
# Looks like you failed 2 tests of 18.
t/copy.t ...
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/18 subtests
Test Summary Report
-------------------
t/misc.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/copy.t (Wstat: 512 Tests: 18 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 2
Files=6, Tests=44, 1 wallclock secs ( 0.05 usr 0.03 sys + 0.48 cusr 0.28 csys = 0.84 CPU)
Result: FAIL
Failed 2/6 test programs. 2/44 subtests failed.