digitalmars.D.bugs - 0.143 phobos library fails in unit test mode
- Grzegorz Adam Hankiewicz (41/41) Jan 15 2006 I have compiled the phobos library with -unittest. Now whenever I
- Grzegorz Adam Hankiewicz (2/10) Jan 24 2006 Bumping, this still happens in 0.144.
I have compiled the phobos library with -unittest. Now whenever I try to run any program I get: $ ./alarm-wake-up now math.signbit.unittest math.poly.unittest math.poly.unittest using inline asm Error: AssertError Failure math(1854) The line points at the last unit test of the file, a polynomial calculation. I've put some printfs and the case code being run is the assembler version. If I force the C version uncommenting the asm one everything works ok and the program runs. Don't know much about asm. Any help to fix this? I'm using this: Index: std/math.d =================================================================== --- std/math.d (revision 17) +++ std/math.d (working copy) -54,7 +54,7 module std.math; -//debug=math; // uncomment to turn on debugging printf's +debug=math; // uncomment to turn on debugging printf's private import std.stdio; private import std.c.stdio; -1804,6 +1804,7 { version (D_InlineAsm_X86) { + debug (math) printf("math.poly.unittest using inline asm\n"); asm // assembler by W. Bright { // EDX = (A.length - 1) * real.sizeof -1832,6 +1833,7 } else { + debug (math) printf("math.poly.unittest not using asm\n"); int i = A.length - 1; real r = A[i]; while (--i >= 0)
Jan 15 2006
The Sun, 15 Jan 2006 19:34:07 +0100, Grzegorz Adam Hankiewicz wrote:I have compiled the phobos library with -unittest. Now whenever I try to run any program I get: $ ./alarm-wake-up now math.signbit.unittest math.poly.unittest math.poly.unittest using inline asm Error: AssertError Failure math(1854)Bumping, this still happens in 0.144.
Jan 24 2006