diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-30 10:01:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-30 10:01:40 -0500 |
| commit | 65b1a4953fd5b87f30260beb363d0e968dc8e291 (patch) | |
| tree | ab01d1b6699d103b4b075807f47c136926404f92 /lib/std/packed_int_array.zig | |
| parent | e3a383a661aaf9b43016358e2951ff9d792f240e (diff) | |
| parent | 9c196efa2afe0e337ac0b16bd1138e89393f6106 (diff) | |
| download | zig-65b1a4953fd5b87f30260beb363d0e968dc8e291.tar.gz zig-65b1a4953fd5b87f30260beb363d0e968dc8e291.zip | |
Merge pull request #4324 from fengb/testing-allocator
Remove debug.global_allocator in favor of testing.allocator
Diffstat (limited to 'lib/std/packed_int_array.zig')
| -rw-r--r-- | lib/std/packed_int_array.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig index bc29e985b5..3dfa55e74b 100644 --- a/lib/std/packed_int_array.zig +++ b/lib/std/packed_int_array.zig @@ -604,7 +604,7 @@ test "PackedIntArray at end of available memory" { p: PackedArray, }; - const allocator = std.heap.page_allocator; + const allocator = std.testing.allocator; var pad = try allocator.create(Padded); defer allocator.destroy(pad); @@ -618,7 +618,7 @@ test "PackedIntSlice at end of available memory" { } const PackedSlice = PackedIntSlice(u11); - const allocator = std.heap.page_allocator; + const allocator = std.testing.allocator; var page = try allocator.alloc(u8, std.mem.page_size); defer allocator.free(page); |
