| ... | @@ -131,6 +131,8 @@ fn testStrToLLikeFunctionAnyErrno( | ... | @@ -131,6 +131,8 @@ fn testStrToLLikeFunctionAnyErrno( |
| 131 | } | 131 | } |
| 132 | | 132 | |
| 133 | test "strtol" { | 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 | c._errno().* = @intFromEnum(c.E.SUCCESS); | 136 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 135 | try testStrToLLikeFunctionAnyErrno(c.strtol, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); | 137 | try testStrToLLikeFunctionAnyErrno(c.strtol, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 136 | try testStrToLLikeFunction(c.strtol, @ptrCast("42true"), 0, 42, 2, .SUCCESS); | 138 | try testStrToLLikeFunction(c.strtol, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | @@ -169,6 +171,8 @@ test "strtol" { | ... | @@ -169,6 +171,8 @@ test "strtol" { |
| 169 | } | 171 | } |
| 170 | | 172 | |
| 171 | test "strtoll" { | 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 | c._errno().* = @intFromEnum(c.E.SUCCESS); | 176 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 173 | try testStrToLLikeFunctionAnyErrno(c.strtoll, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); | 177 | try testStrToLLikeFunctionAnyErrno(c.strtoll, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 174 | try testStrToLLikeFunction(c.strtoll, @ptrCast("42true"), 0, 42, 2, .SUCCESS); | 178 | try testStrToLLikeFunction(c.strtoll, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | @@ -207,6 +211,8 @@ test "strtoll" { | ... | @@ -207,6 +211,8 @@ test "strtoll" { |
| 207 | } | 211 | } |
| 208 | | 212 | |
| 209 | test "strtoul" { | 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 | c._errno().* = @intFromEnum(c.E.SUCCESS); | 216 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 211 | try testStrToLLikeFunctionAnyErrno(c.strtoul, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); | 217 | try testStrToLLikeFunctionAnyErrno(c.strtoul, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 212 | try testStrToLLikeFunction(c.strtoul, @ptrCast("42true"), 0, 42, 2, .SUCCESS); | 218 | try testStrToLLikeFunction(c.strtoul, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | @@ -243,6 +249,8 @@ test "strtoul" { | ... | @@ -243,6 +249,8 @@ test "strtoul" { |
| 243 | } | 249 | } |
| 244 | | 250 | |
| 245 | test "strtoull" { | 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 | c._errno().* = @intFromEnum(c.E.SUCCESS); | 254 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 247 | try testStrToLLikeFunctionAnyErrno(c.strtoull, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); | 255 | try testStrToLLikeFunctionAnyErrno(c.strtoull, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 248 | try testStrToLLikeFunction(c.strtoull, @ptrCast("42true"), 0, 42, 2, .SUCCESS); | 256 | try testStrToLLikeFunction(c.strtoull, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | @@ -279,6 +287,8 @@ test "strtoull" { | ... | @@ -279,6 +287,8 @@ test "strtoull" { |
| 279 | } | 287 | } |
| 280 | | 288 | |
| 281 | test "strtoimax" { | 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 | c._errno().* = @intFromEnum(c.E.SUCCESS); | 292 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 283 | try testStrToLLikeFunctionAnyErrno(c.strtoimax, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); | 293 | try testStrToLLikeFunctionAnyErrno(c.strtoimax, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 284 | try testStrToLLikeFunction(c.strtoimax, @ptrCast("42true"), 0, 42, 2, .SUCCESS); | 294 | try testStrToLLikeFunction(c.strtoimax, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |
| ... | @@ -317,6 +327,8 @@ test "strtoimax" { | ... | @@ -317,6 +327,8 @@ test "strtoimax" { |
| 317 | } | 327 | } |
| 318 | | 328 | |
| 319 | test "strtoumax" { | 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 | c._errno().* = @intFromEnum(c.E.SUCCESS); | 332 | c._errno().* = @intFromEnum(c.E.SUCCESS); |
| 321 | try testStrToLLikeFunctionAnyErrno(c.strtoumax, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); | 333 | try testStrToLLikeFunctionAnyErrno(c.strtoumax, @ptrCast("stop42true"), 0, 0, 0, &.{ .SUCCESS, .INVAL }); |
| 322 | try testStrToLLikeFunction(c.strtoumax, @ptrCast("42true"), 0, 42, 2, .SUCCESS); | 334 | try testStrToLLikeFunction(c.strtoumax, @ptrCast("42true"), 0, 42, 2, .SUCCESS); |