[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble testing dispatch.cc
From: |
John W. Eaton |
Subject: |
Re: trouble testing dispatch.cc |
Date: |
Fri, 23 Jan 2009 09:46:23 -0500 |
On 23-Jan-2009, Jaroslav Hajek wrote:
| I'm having trouble with the dispatch tests, too. Mine doesn't crash,
| but fails due to parse error.
| I get a couple more parse errors during make check (in test_prefer). I
| suspect this is related to the
| recent changes in the parser.
I see the following failures when I test my current build (the tip for
me is 8578:4b6558abe675):
>>>>> processing /export/home/jwe/src/octave/src/DLD-FUNCTIONS/dispatch.cc
***** test # replace base m-file
echo_to_file ('function a=dispatch_x(a)', "dispatch_x.m");
dispatch('dispatch_x','length','string')
assert(dispatch_x(3),3)
assert(dispatch_x("a"),1)
sleep (2);
echo_to_file ('function a=dispatch_x(a),++a;', "dispatch_x.m");
rehash();
assert(dispatch_x(3),4)
assert(dispatch_x("a"),1)
!!!!! test failed
`dispatch_x' undefined near line 5 column 9
>>>>> processing /export/home/jwe/src/octave/src/data.cc
***** assert(log2(complex(0,Inf)), Inf + log2(i));
!!!!! test failed
assert (log2 (complex (0, Inf)),Inf + log2 (i)) expected
Inf + 2.266i
but got
Inf - NaNi
NaNs don't match
>>>>> processing test_prefer
***** test
ped = print_empty_dimensions ();
print_empty_dimensions (0);
a = cell (1, 1);
b = type -q a;
assert(!isempty(findstr(b,"[]")));
assert(isempty(findstr(b,"[](0x0)")));
print_empty_dimensions (ped);
!!!!! test failed
type: `a' undefined ***** test
ped = print_empty_dimensions ();
print_empty_dimensions (1);
a = cell (1, 1);
b = type -q a;
assert(!isempty(findstr(b,"[](0x0)")));
print_empty_dimensions (ped);
!!!!! test failed
type: `a' undefined
The failing test in data.cc is not new for me.
| What's worse, simple commands like "help help" fail. Functional forms work.
Evaluating "help help" works for me. Do you have a PKG_ADD file in
the new scripts/help directory in your build tree? Did you run
configure again after the latest changes?
jwe