D.gnu - phobos unit tests
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (16/17) Dec 02 2004 Found out my error, I need to build phobos
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
Dec 02 2004