| ... | ... | @@ -765,7 +765,15 @@ test "CrossTarget.parse" { |
| 765 | 765 | |
| 766 | 766 | const text = try cross_target.zigTriple(std.testing.allocator); |
| 767 | 767 | defer std.testing.allocator.free(text); |
| 768 | | std.testing.expectEqualSlices(u8, "native-native-gnu.2.1.1", text); |
| 768 | |
| 769 | var buf: [256]u8 = undefined; |
| 770 | const triple = std.fmt.bufPrint( |
| 771 | buf[0..], |
| 772 | "native-native-{}.2.1.1", |
| 773 | .{@tagName(std.Target.current.abi)}, |
| 774 | ) catch unreachable; |
| 775 | |
| 776 | std.testing.expectEqualSlices(u8, triple, text); |
| 769 | 777 | } |
| 770 | 778 | { |
| 771 | 779 | const cross_target = try CrossTarget.parse(.{ |