On Wed, Apr/08/2009 11:51:31AM, Rafael Folco wrote: > > I just forgot to mention that removing @ from "if ($#{@$ret} < 0) {" it > worked fine. >
That might be masking a problem in your INI file, but it is hard to know for sure without seeing your INI file. > On Wed, 2009-04-08 at 11:36 -0300, Rafael Folco wrote: > > Well, I took a look at /tmp/ompi-core-testers/lib/MTT/Values.pm line 75. > > > > This piece of code looks wrong to me: > > > > if ($#{@$ret} < 0) { > > > > $ret references an array > > @$ret points to the first element of this array > > $# returns the number of elements > > ? @$ret is the array, e.g., $ perl -e 'use Data::Dumper; $x = [1,2,3]; print Dumper @$x;' $VAR1 = 1; $VAR2 = 2; $VAR3 = 3; -Ethan > > So this line is trying to count elements of the first element??! Doesn't > > make sense. Correct me if I am wrong, what am I missing here ? > > > > "if ($#{$ret} < 0) {" would be correct, without @. > > > > I believe "strict refs" has been forced somewhere on SLES11... I also > > tried on other distro and it works fine. > > > > Thanks, > > > > Rafael > > > > On Tue, 2009-04-07 at 15:53 -0300, Rafael Folco wrote: > > > Hi, > > > > > > I'm trying to run MTT on SLES11, but I am getting an error message > > > during the RUN phase and I can't figure out what is the problem. > > > > > > *** ERROR: Module aborted: MTT::Test::Specify::Simple:Specify: Can't use > > > string ("183") as an ARRAY ref while "strict refs" in use at > > > /tmp/ompi-core-testers/lib/MTT/Values.pm line 75. > > > > > > What I could see was that this error is nothing specific to any > > > particular test, it happens at certain points during the RUN phase. > > > Also, the BUILD phase has been completed successfully for all tests. > > > > > > Anybody have already seen this? Any thoughts ? > > > > > > Thanks in advance. > > > > > > Rafael > > > > > > > > > > -- > Rafael Folco > OpenHPC / Test Lead > IBM Linux Technology Center > E-Mail: rfo...@linux.vnet.ibm.com > > _______________________________________________ > mtt-users mailing list > mtt-us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users