December 02, 2004 phobos unit tests | ||||
---|---|---|---|---|
| ||||
Found out my error, I need to build phobos with -unittest enabled in order to run them... (default rule says -release, which skips them) cd phobos make DFLAGS="-Os -pipe -funittest -nostdinc" \ libphobos.a unittest ./unittest (where "-Os -pipe" are my normal build flags for gdc) Built on my Mac with a patched gcc 3.3.5 and gdc 0.8: http://svn.kuehne.cn/dstress/raw_results/mac-OS-X-10.3.6_gdc-0.8-patch/ So now I get the "expected" failure from the unittest run: > Error: AssertError Failure ../gcc/d/phobos/std/math.d(576) Due to it assuming that a real is 80 bits, but it's only 64. But the documentation should probably mention that you need to build phobos with the -unittest D flag ? http://home.earthlink.net/~dvdfrdmn/d/INSTALL.html --anders |
Copyright © 1999-2021 by the D Language Foundation