Re: Mac::Carbon for Intel ... Done?
At 8:10 -0500 2006.06.23, Ken Williams wrote: >On Jun 19, 2006, at 9:40 PM, Paul McCann wrote: > >> Hi Chris, >> >>> Go play with it, if you have an Intel Mac. Let me know if you find >>> anything wrong, and let me know soon, since I have less than a >>> week left >>> with this Intel Mac. >> >> The module (Mac-Carbon-0.75) was fine through "make" on my intel >> Mac (modulo all the "deprecated" warnings of course, which I >> imagine should be ignored). >> >> However "make test" failed with the following problem: >> >> AppleEvents/t/desc.NOK 2# Failed test 'require '"$Bin/ >> helper.pl"';' >> # in AppleEvents/t/desc.t at line 11. >> # Tried to require ''"$Bin/helper.pl"''. >> # Error: Can't locate "$Bin/helper.pl" in @INC > >Chris: it's not interpolating the $Bin variable and the quotes are >literal quotes too. But the problem was: why did it work on *my* computer? Turns out to be a combination of my typo, and an old version of Test::More. First, I reversed the quotes. I initially had: require "$Bin/helper.pl"; I changed that to: require_ok("$Bin/helper.pl"); That would have worked (I now know) on a newer Test::More, but it did not work on mine, so I changed it to: require_ok('"$Bin/helper.pl"'); I meant to put the single quotes inside the double quotes, but I didn't notice because ... it worked! The reason why is because Test::More changes that to: eval
Re: Mac::Carbon for Intel ... Done?
On Jun 19, 2006, at 9:40 PM, Paul McCann wrote: Hi Chris, Go play with it, if you have an Intel Mac. Let me know if you find anything wrong, and let me know soon, since I have less than a week left with this Intel Mac. The module (Mac-Carbon-0.75) was fine through "make" on my intel Mac (modulo all the "deprecated" warnings of course, which I imagine should be ignored). However "make test" failed with the following problem: AppleEvents/t/desc.NOK 2# Failed test 'require '"$Bin/ helper.pl"';' # in AppleEvents/t/desc.t at line 11. # Tried to require ''"$Bin/helper.pl"''. # Error: Can't locate "$Bin/helper.pl" in @INC Chris: it's not interpolating the $Bin variable and the quotes are literal quotes too. -Ken
Re: Mac::Carbon for Intel ... Done?
Hi again, Yes, AppleEvents/t/event and AppleEvents/t/desc were both failing with the same error message: === AppleEvents/t/eventNOK 2# Failed test 'require '"$Bin/ helper.pl"';' # in AppleEvents/t/event.t at line 11. # Tried to require ''"$Bin/helper.pl"''. [...]. AppleEvents/t/desc.NOK 2# Failed test 'require '"$Bin/ helper.pl"';' # in AppleEvents/t/desc.t at line 11. # Tried to require ''"$Bin/helper.pl"''. === > Second, do you have the file AppleEvents/t/helper.pl? Yep, present and correct. > Finally, you can hardcode the path to helper.pl in desc.t and event.t and run the tests again. OK: after a bit of head-scratching and a few failed attempts to do this I scrounged together the following modification to the BEGIN block for both desc.t and event.t: BEGIN { use_ok('Mac::AppleEvents'); # require_ok('"$Bin/helper.pl"'); push @INC,"/Users/pmccann/Desktop/downloaded/Mac-Carbon-0.75/ AppleEvents/t"; require_ok("helper.pl"); } With that in place we get success: % make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t */t/*.t AppleEvents/t/desc.ok AppleEvents/t/eventok Components/t/Componentsok Files/t/Alias..ok 1/17 skipped: This fails on both UFS and Intel ... so just stop caring. It's deprecated. Files/t/Constants..ok Files/t/Files..ok Files/t/Info...ok Gestalt/t/Gestalt..ok MacPerl/t/MacPerl..ok 3/13 skipped: Set MAC_CARBON_GUI in env to run tests Memory/t/Memoryok MoreFiles/t/MoreFiles..ok Notification/t/Notificationok 11/11 skipped: Set MAC_CARBON_GUI in env to run tests Processes/t/Processes..ok 2/6 skipped: No parent available Resources/t/Resources..ok Sound/t/Sound..ok Speech/t/Speechok t/Carbon...ok Types/t/Types..ok All tests successful, 17 subtests skipped. Files=18, Tests=2958, 33 wallclock secs ( 2.08 cusr + 0.81 csys = 2.89 CPU) Cheers, Paul
Re: Mac::Carbon for Intel ... Done?
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Paul McCann) wrote: > Hi Chris, > > > Go play with it, if you have an Intel Mac. Let me know if you find > > anything wrong, and let me know soon, since I have less than a week > > left > > with this Intel Mac. > > The module (Mac-Carbon-0.75) was fine through "make" on my intel Mac > (modulo all the "deprecated" warnings of course, which I imagine > should be ignored). Yeah. > However "make test" failed with the following problem: Someone else had the same problem. First, did any other test fail? I imagine AppleEvents/t/desc and AppleEvents/t/event failed. Any others? I had a report about Speech.t. Second, do you have the file AppleEvents/t/helper.pl? If so, then I am supposing FindBin is not working for you as it works for me, which puzzles me, but not enough that I will spend much more time on it, I'll just throw something together to make it work. Finally, you can hardcode the path to helper.pl in desc.t and event.t and run the tests again. Thanks, -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/
Re: Mac::Carbon for Intel ... Done?
Hi Chris, Go play with it, if you have an Intel Mac. Let me know if you find anything wrong, and let me know soon, since I have less than a week left with this Intel Mac. The module (Mac-Carbon-0.75) was fine through "make" on my intel Mac (modulo all the "deprecated" warnings of course, which I imagine should be ignored). However "make test" failed with the following problem: AppleEvents/t/desc.NOK 2# Failed test 'require '"$Bin/ helper.pl"';' # in AppleEvents/t/desc.t at line 11. # Tried to require ''"$Bin/helper.pl"''. # Error: Can't locate "$Bin/helper.pl" in @INC (@INC contains: / Users/pmccann/Desktop/downloaded/Mac-Carbon-0.75/blib/lib /Users/ pmccann/Desktop/downloaded/Mac-Carbon-0.75/blib/arch /System/Library/ Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6/ darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/ 5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6/darwin-thread- multi-2level /Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread- multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/ 5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/ Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level /System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 . / System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/ Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/ Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread- multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl / System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/ Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at (eval 6) line 2. Cheers, Paul
Mac::Carbon for Intel ... Done?
OK, I've uploaded Mac-Carbon-0.75 to the CPAN. http://use.perl.org/~pudge/journal/29967 Go play with it, if you have an Intel Mac. Let me know if you find anything wrong, and let me know soon, since I have less than a week left with this Intel Mac. A new Mac::Glue release is following. It is currently broken on Intel, too. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/