Skip to content

Commit c2ccb2d

Browse files
authored
enable a formatValue test runs on all platforms (#10872)
The Linux-specific restriction was added in #4464, but the reasoning for this limitation is unclear. These tests should work across all platforms, so remove the restriction
1 parent 123e6e7 commit c2ccb2d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

std/format/internal/write.d

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,13 +3111,10 @@ if (isDelegate!T)
31113111
import std.format : formatValue;
31123112

31133113
void func() @system { __gshared int x; ++x; throw new Exception("msg"); }
3114-
version (linux)
3115-
{
3116-
FormatSpec!char f;
3117-
auto w = appender!string();
3118-
formatValue(w, &func, f);
3119-
assert(w.data.length >= 15 && w.data[0 .. 15] == "void delegate()");
3120-
}
3114+
FormatSpec!char f;
3115+
auto w = appender!string();
3116+
formatValue(w, &func, f);
3117+
assert(w.data.length >= 15 && w.data[0 .. 15] == "void delegate()");
31213118
}
31223119

31233120
// string elements are formatted like UTF-8 string literals.

0 commit comments

Comments
 (0)