www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - When using the -profile flag is it known behaviour that phobos unit

reply Gary Willoughby <dev nomad.so> writes:
When using the -profile flag is it known behaviour that phobos 
unit tests fail?

(Ubuntu 16.04 - DMD64 D Compiler v2.071.0)

For example, when following these steps I get a failed unit test:

$ cd /usr/include/dmd/phobos/std/
$ rdmd -I/usr/include/dmd/phobos/std 
-I/usr/include/dmd/phobos/core -main -unittest -profile format.d

Without the -profile flag it works.
Jun 24 2016
parent reply Gary Willoughby <dev nomad.so> writes:
On Friday, 24 June 2016 at 17:36:49 UTC, Gary Willoughby wrote:
 When using the -profile flag is it known behaviour that phobos 
 unit tests fail?

 (Ubuntu 16.04 - DMD64 D Compiler v2.071.0)

 For example, when following these steps I get a failed unit 
 test:

 $ cd /usr/include/dmd/phobos/std/
 $ rdmd -I/usr/include/dmd/phobos/std 
 -I/usr/include/dmd/phobos/core -main -unittest -profile format.d

 Without the -profile flag it works.
You may need to add the --force option to rdmd. $ rdmd --force -I/usr/include/dmd/phobos/std -I/usr/include/dmd/phobos/core -main -unittest -profile format.d
Jun 24 2016
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 6/24/2016 10:50 AM, Gary Willoughby wrote:
 On Friday, 24 June 2016 at 17:36:49 UTC, Gary Willoughby wrote:
 When using the -profile flag is it known behaviour that phobos unit tests fail?

 (Ubuntu 16.04 - DMD64 D Compiler v2.071.0)

 For example, when following these steps I get a failed unit test:

 $ cd /usr/include/dmd/phobos/std/
 $ rdmd -I/usr/include/dmd/phobos/std -I/usr/include/dmd/phobos/core -main
 -unittest -profile format.d

 Without the -profile flag it works.
You may need to add the --force option to rdmd. $ rdmd --force -I/usr/include/dmd/phobos/std -I/usr/include/dmd/phobos/core -main -unittest -profile format.d
Please post bug reports to bugzilla. They'll get lost in the n.g.
Jun 24 2016
parent reply Gary Willoughby <dev nomad.so> writes:
On Friday, 24 June 2016 at 22:24:09 UTC, Walter Bright wrote:
 Please post bug reports to bugzilla. They'll get lost in the 
 n.g.
Done. https://issues.dlang.org/show_bug.cgi?id=16204
Jun 25 2016
parent Walter Bright <newshound2 digitalmars.com> writes:
On 6/25/2016 12:52 AM, Gary Willoughby wrote:
 Done.
Good!
Jun 25 2016