authorgravatar for 4678790+dweiller@users.noreply.github.comDominic <4678790+dweiller@users.noreply.github.com> 2023-02-08 22:39:38+11:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-02-08 22:39:38+11:00
log948754c5d4b707c991c4db9cdfd968e6f4866ea4
tree186af6c30836699633d1fa26b18f69402fe90322
parentedc0e84270c04acf432096c4772bfe199afdaf15
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

clone package table into custom test runner

Co-authored-by: Veikka Tuominen <git@vexu.eu>

1 files changed, 1 insertions(+), 4 deletions(-)

src/Compilation.zig+1-4
......@@ -1627,10 +1627,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
16271627 const pkg = try Package.create(gpa, "root", test_dir, basename);
16281628
16291629 // copy package table from main_pkg to root_pkg
1630 var iter = main_pkg.table.valueIterator();
1631 while (iter.next()) |v| {
1632 try pkg.add(gpa, v.*);
1633 }
1630 pkg.table = try main_pkg.table.clone(gpa);
16341631 break :test_pkg pkg;
16351632 } else try Package.createWithDir(
16361633 gpa,