diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-11-06 17:14:19 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-11-06 17:15:05 -0700 |
| commit | 663f0b399c5f4e2528a969fba6cd58d8f9784f5a (patch) | |
| tree | 4c8b036d1cbf53a9f207d598cb7f540f5f3fa7cb /test/runtime_safety.zig | |
| parent | ceaa569bfa089cb5110580047693a43f4512081b (diff) | |
| download | zig-663f0b399c5f4e2528a969fba6cd58d8f9784f5a.tar.gz zig-663f0b399c5f4e2528a969fba6cd58d8f9784f5a.zip | |
update runtime safety test case - unsigned-signed vector cast
now it returns "integer cast truncated bits" instead of "attempt to cast
negative value to unsigned integer" which I think is correct.
Diffstat (limited to 'test/runtime_safety.zig')
| -rw-r--r-- | test/runtime_safety.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runtime_safety.zig b/test/runtime_safety.zig index a0b4a555a5..72355b01aa 100644 --- a/test/runtime_safety.zig +++ b/test/runtime_safety.zig @@ -89,7 +89,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { \\const std = @import("std"); \\const V = @import("std").meta.Vector; \\pub fn panic(message: []const u8, stack_trace: ?*@import("builtin").StackTrace) noreturn { - \\ if (std.mem.eql(u8, message, "attempt to cast negative value to unsigned integer")) { + \\ if (std.mem.eql(u8, message, "integer cast truncated bits")) { \\ std.process.exit(126); // good \\ } \\ std.process.exit(0); // test failed |
