| ... | ... | @@ -131,6 +131,8 @@ fn testStrToLLikeFunctionAnyErrno( |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | test "strtol" { |
| 134 | if (builtin.target.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi == .msvc) return error.SkipZigTest; // TODO |
| 135 | |
| 134 | 136 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 135 | 137 | try testStrToLLikeFunctionAnyErrno(c.strtol, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 136 | 138 | try testStrToLLikeFunction(c.strtol, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | ... | @@ -169,6 +171,8 @@ test "strtol" { |
| 169 | 171 | } |
| 170 | 172 | |
| 171 | 173 | test "strtoll" { |
| 174 | if (builtin.target.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi == .msvc) return error.SkipZigTest; // TODO |
| 175 | |
| 172 | 176 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 173 | 177 | try testStrToLLikeFunctionAnyErrno(c.strtoll, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 174 | 178 | try testStrToLLikeFunction(c.strtoll, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | ... | @@ -207,6 +211,8 @@ test "strtoll" { |
| 207 | 211 | } |
| 208 | 212 | |
| 209 | 213 | test "strtoul" { |
| 214 | if (builtin.target.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi == .msvc) return error.SkipZigTest; // TODO |
| 215 | |
| 210 | 216 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 211 | 217 | try testStrToLLikeFunctionAnyErrno(c.strtoul, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 212 | 218 | try testStrToLLikeFunction(c.strtoul, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | ... | @@ -243,6 +249,8 @@ test "strtoul" { |
| 243 | 249 | } |
| 244 | 250 | |
| 245 | 251 | test "strtoull" { |
| 252 | if (builtin.target.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi == .msvc) return error.SkipZigTest; // TODO |
| 253 | |
| 246 | 254 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 247 | 255 | try testStrToLLikeFunctionAnyErrno(c.strtoull, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 248 | 256 | try testStrToLLikeFunction(c.strtoull, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | ... | @@ -279,6 +287,8 @@ test "strtoull" { |
| 279 | 287 | } |
| 280 | 288 | |
| 281 | 289 | test "strtoimax" { |
| 290 | if (builtin.target.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi == .msvc) return error.SkipZigTest; // TODO |
| 291 | |
| 282 | 292 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 283 | 293 | try testStrToLLikeFunctionAnyErrno(c.strtoimax, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 284 | 294 | try testStrToLLikeFunction(c.strtoimax, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | ... | @@ -317,6 +327,8 @@ test "strtoimax" { |
| 317 | 327 | } |
| 318 | 328 | |
| 319 | 329 | test "strtoumax" { |
| 330 | if (builtin.target.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi == .msvc) return error.SkipZigTest; // TODO |
| 331 | |
| 320 | 332 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 321 | 333 | try testStrToLLikeFunctionAnyErrno(c.strtoumax, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 322 | 334 | try testStrToLLikeFunction(c.strtoumax, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |