Btw, 01load.t fails with segfault. So the prove output is not too helpful.
I think it dies after the use_ok 'Wx'. What's interesting, the test
succeeds, but then perl segfaults right away.
Rest of the tests go ok, oddly enough :)
Kind regards,
Athanasios
prove -v -b t/01_load.t
t/01_load.t ..
1..6
ok 1 - use Wx;
Failed 5/6 subtests
Test Summary Report
-------------------
t/01_load.t (Wstat: 10 Tests: 1 Failed: 0)
Non-zero wait status: 10
Parse errors: Bad plan. You planned 6 tests but ran 1.
Files=1, Tests=1, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.15 cusr 0.03
csys = 0.23 CPU)
Result: FAIL
On Sun, Nov 25, 2012 at 12:06 AM, Mark Dootson via RT <bug-Wx@rt.cpan.org>wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=81416 >
>
> Hi,
>
> On 24/11/2012 21:21, athanasios douitsis via RT wrote:
>
> > This has to do with wxwidgets and not your module, right ? If so, please
> > close the bug report straight away.
> >
>
> Err - no, Wx is completely broken on Mac for wxWidgets 2.9.4. I think
> the attached patch should work - though I haven't tested it yet.
>
> I'm just puzzled how I've managed to build my own Mac Wx versions.
>
> Thanks for the report
>
> Mark
>
>
> --- cpp/app.h 2012-09-26 15:23:47.349000000 +0100
> +++ cpp/app.h 2012-11-24 21:53:04.922000000 +0000
> @@ -70,7 +70,7 @@
> {
> AV* files;
> files = wxPli_stringarray_2_av( aTHX_ fileNames );
> - wxPliCCback( aTHX, &m_callback, G_DISCARD|G_SCALAR,
> + wxPliCCback( aTHX_ &m_callback, G_DISCARD|G_SCALAR,
> "S", sv_2mortal( newRV_noinc( (SV*)files ) ) );
> } else
> wxApp::MacOpenFiles( fileNames );
> @@ -81,7 +81,7 @@
> dTHX;
> if( wxPliFCback( aTHX_ &m_callback, "MacOpenFile" ) )
> {
> - wxPliCCback( aTHX, &m_callback, G_DISCARD|G_SCALAR, "P",
> &fileName );
> + wxPliCCback( aTHX_ &m_callback, G_DISCARD|G_SCALAR, "P",
> &fileName );
> } else
> wxApp::MacOpenFile( fileName );
> }
> @@ -91,7 +91,7 @@
> dTHX;
> if( wxPliFCback( aTHX_ &m_callback, "MacOpenURL" ) )
> {
> - wxPliCCback( aTHX, &m_callback, G_DISCARD|G_SCALAR, "P", &url
> );
> + wxPliCCback( aTHX_ &m_callback, G_DISCARD|G_SCALAR, "P", &url
> );
> } else
> wxApp::MacOpenURL( url );
> }
> @@ -101,7 +101,7 @@
> dTHX;
> if( wxPliFCback( aTHX_ &m_callback, "MacPrintFile" ) )
> {
> - wxPliCCback( aTHX, &m_callback, G_DISCARD|G_SCALAR, "P",
> &fileName );
> + wxPliCCback( aTHX_ &m_callback, G_DISCARD|G_SCALAR, "P",
> &fileName );
> } else
> wxApp::MacPrintFile( fileName );
> }
> @@ -111,7 +111,7 @@
> dTHX;
> if( wxPliFCback( aTHX_ &m_callback, "MacNewFile" ) )
> {
> - wxPliCCback( aTHX, &m_callback, G_DISCARD|G_SCALAR, NULL );
> + wxPliCCback( aTHX_ &m_callback, G_DISCARD|G_SCALAR, NULL );
> } else
> wxApp::MacNewFile();
> }
> @@ -121,7 +121,7 @@
> dTHX;
> if( wxPliFCback( aTHX_ &m_callback, "MacReopenApp" ) )
> {
> - wxPliCCback( aTHX, &m_callback, G_DISCARD|G_SCALAR, NULL );
> + wxPliCCback( aTHX_ &m_callback, G_DISCARD|G_SCALAR, NULL );
> } else
> wxApp::MacReopenApp();
> }
>
>