Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Better printed information in unittests #1171

Merged
merged 1 commit into from
Feb 15, 2015

Conversation

andralex
Copy link
Member

Per dlang/phobos#2946, we need to specify debug vs. release in the PASS/FAIL information. I've also added 32/64.

debug string mode = "debug";
else string mode = "release";
static if ((void*).sizeof == 4) mode ~= "32";
else mode ~= "64";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be safe

static if ((void*).sizeof == 4) mode ~= "32";
else static if ((void*).sizeof == 8) mode ~= "64";
else assert(false);

@gchatelet
Copy link
Contributor

LGTM

@andralex
Copy link
Member Author

@gchatelet good idea

@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Feb 15, 2015
Better printed information in unittests
@WalterBright WalterBright merged commit 52982cf into dlang:master Feb 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants