[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2 test failures on Mac OS 10.6
From: |
Ben Abbott |
Subject: |
2 test failures on Mac OS 10.6 |
Date: |
Tue, 22 Dec 2009 13:55:44 -0500 |
I'm seeing two test failures on Mac OS 10.6. The first error is ...
>>>>> processing
>>>>> /Users/bpabbott/Development/mercurial/local_clone/src/mappers.cc
***** assert (erf (erfinv ([-0.999 -0.99 0.9999 0.99999])), [-0.999 -0.99
0.9999 0.99999], 1e-16)
!!!!! test failed
assert (erf (erfinv ([-0.999, -0.99, 0.9999, 0.99999])),[-0.999, -0.99, 0.9999,
0.99999],1e-16) expected
-0.99900 -0.99000 0.99990 0.99999
but got
-0.99900 -0.99000 0.99990 0.99999
maximum absolute error 1.11022e-16 exceeds tolerance 1e-16
The actual error is equal to eps/2. Any reason not to increase the tolerance to
eps?
I couldn't duplicate the 2nd error form the command line.
>>>>> processing test_system
***** testif HAVE_GETPWUID
x = getpwuid (getuid ());
assert((strcmp (x.dir, tilde_expand ("~"))
&& strcmp (x.dir, tilde_expand (sprintf ("~%s", x.name)))
&& strcmp ("foobar", tilde_expand ("foobar"))));
!!!!! test failed
assert ((strcmp (x.dir, tilde_expand ("~")) && strcmp (x.dir, tilde_expand
(sprintf ("~%s", x.name))) && strcmp ("foobar", tilde_expand ("foobar"))))
failed
octave:1> x = getpwuid (getuid ())
x =
{
name = bpabbott
passwd = ********
uid = 501
gid = 501
gecos = Ben Abbott
dir = /Users/bpabbott
shell = /bin/bash
}
octave:2> strcmp (x.dir, tilde_expand ("~"))
ans = 1
octave:3> strcmp (x.dir, tilde_expand (sprintf ("~%s", x.name)))
ans = 1
octave:4> strcmp ("foobar", tilde_expand ("foobar"))
ans = 1
octave:5> assert ((strcmp (x.dir, tilde_expand ("~")) && strcmp (x.dir,
tilde_expand (sprintf ("~%s", x.name))) && strcmp ("foobar", tilde_expand
("foobar"))))
octave:7> (strcmp (x.dir, tilde_expand ("~")) && strcmp (x.dir, tilde_expand
(sprintf ("~%s", x.name))) && strcmp ("foobar", tilde_expand ("foobar")))
ans = 1
When I tried to run the test from the command line ...
octave:6> test test_system
***** test
pause (0);
printf_assert ("ok\n");
assert(prog_output_assert("ok"));
!!!!! test failed
`printf_assert' undefined near line 4 column 2
The error occurs before the test that failed during "make check". I don't see
printf_assert in the sources. Can someone illuminate me as to where it is?
Ben
- 2 test failures on Mac OS 10.6,
Ben Abbott <=