Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.getopt: clean imports #2710

Merged
merged 1 commit into from Nov 14, 2014
Merged

std.getopt: clean imports #2710

merged 1 commit into from Nov 14, 2014

Conversation

9il
Copy link
Member

@9il 9il commented Nov 14, 2014

No description provided.

{
import std.stdio; // for testing only
}
import std.traits;
Copy link
Member

Choose a reason for hiding this comment

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

👍 Nice, reduce everything to a single global import. :-)

@quickfur
Copy link
Member

LGTM

@quickfur
Copy link
Member

Auto-merge toggled on

@@ -892,7 +904,7 @@ private bool optMatch(string arg, string optPattern, ref string value,
//writeln("isLong: ", isLong);
// yank the second '-' if present
if (isLong) arg = arg[1 .. $];
immutable eqPos = std.string.indexOf(arg, assignChar);
Copy link
Member

Choose a reason for hiding this comment

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

Awesome!

@mihails-strasuns
Copy link

Fails the tester

@mihails-strasuns
Copy link

Probably unrelated but needs checking

@quickfur
Copy link
Member

@Dicebot Probably unrelated, since the same platform later on became green again on the same commit.

quickfur pushed a commit that referenced this pull request Nov 14, 2014
std.getopt: clean imports
@quickfur quickfur merged commit 4989a62 into dlang:master Nov 14, 2014
@9il 9il deleted the getopt branch November 14, 2014 22:42
@mihails-strasuns
Copy link

FreeBSD 32-bit seems to be a somewhat frequent offender in auto-tester :(

@quickfur
Copy link
Member

This wouldn't be the first time... I remember @MartinNowak was going to look into possible race conditions that intermittently cause the thread unittests to fail, but I don't know if that was ever found. Instead, there's just a timer that expires if the test takes too long to run, and on some platforms the timer is too short and occasionally expires even when the test is actually OK, probably due to heavy system load.

@DmitryOlshansky
Copy link
Member

@Dicebot All of FreeBSD seems to be. And I think it's some FreeBSD 8.x ... just scary.

@quickfur
Copy link
Member

If it's 8.4, it's not too bad, as support isn't expiring until next year... But 8.1 would be pretty scary, since support has already expired in 2012.

@MartinNowak
Copy link
Member

The thread priority issue was fixed with dlang/druntime#550.
Since recently there is some random number test in DMD that fails quite often.

@quickfur
Copy link
Member

Weird, recently I still see thread-related failures every now and then. Not sure if it's the same issue, or more likely, something else that's also thread-related.

@9il
Copy link
Member Author

9il commented Nov 18, 2014

+1

@MartinNowak
Copy link
Member

Weird, recently I still see thread-related failures every now and then. Not sure if it's the same issue, or more likely, something else that's also thread-related.

Please file issues in bugzilla for failing test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants