File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub fn build(b: *Builder) void {
10
10
lib .setBuildMode (mode );
11
11
lib .install ();
12
12
13
- const main_tests = b .addTest ("src/tests.zig" );
13
+ const main_tests = b .addTest ("src/tests.zig" );
14
14
main_tests .linkLibC ();
15
15
main_tests .addSystemIncludeDir ("./src/c_include" );
16
16
main_tests .linkSystemLibrary ("jemalloc" );
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ test "allocate memory and free" {
8
8
height : i32 ,
9
9
index : usize ,
10
10
};
11
-
11
+
12
12
const memory : []TestStruct = jemalloc_allocator .alloc (TestStruct , 1 ) catch @panic ("test failure" );
13
13
jemalloc_allocator .free (memory );
14
14
}
@@ -20,7 +20,7 @@ test "allocate memory, use it and free" {
20
20
title : []const u8 ,
21
21
index : usize ,
22
22
};
23
-
23
+
24
24
const memory : []TestStruct = jemalloc_allocator .alloc (TestStruct , 1 ) catch @panic ("test failure" );
25
25
26
26
memory [0 ] = TestStruct {
You can’t perform that action at this time.
0 commit comments