[phobos] unittest failure on wine
Shin Fujishiro
rsinfu at gmail.com
Thu Sep 16 15:05:43 PDT 2010
Lars Tandle Kyllingstad <lars at kyllingen.net> wrote:
> I am not seeing that error.
>
> Also, I wrote the code that throws that exception, namely
> std.process.environment.opIndex(), and I have absolutely no clue how it
> can be thrown. environment is rather new, and the only place it's used
> in Phobos right now is in its own unittest...
Repro:
environment["std_process_empty"] = "";
assert (environment["std_process_empty"] == "");
I think it's a bug of Wine. When a variable is an empty string ("\0"),
GetEnvironmentVariable(var, null, 0) should return 1. But Wine's impl
returns 0.
Shin
More information about the phobos
mailing list