Skip to content

Commit

Permalink
fix testsuite paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rdunnington committed May 18, 2024
1 parent 4e686ad commit d051015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/wasm/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1572,13 +1572,13 @@ pub fn main() !void {
logVerbose("Regenerating wasm and json driver for suite {s}\n", .{suite});

// need to navigate back to repo root because the wast2json process will be running in a subdir
var suite_wast_path_relative = try std.fs.path.join(allocator, &[_][]const u8{ "../../../", suite_wast_path });
var suite_wast_path_relative = try std.fs.path.join(allocator, &[_][]const u8{ "../../../../", suite_wast_path });
defer allocator.free(suite_wast_path_relative);

var suite_wasm_folder: []const u8 = try std.fs.path.join(allocator, &[_][]const u8{ "test", "wasm", suite });
var suite_wasm_folder: []const u8 = try std.fs.path.join(allocator, &[_][]const u8{ "test", "wasm", "wasm-generated", suite });
defer allocator.free(suite_wasm_folder);

std.fs.cwd().makeDir("test/wasm") catch |e| {
std.fs.cwd().makeDir("test/wasm/wasm-generated") catch |e| {
if (e != error.PathAlreadyExists) {
return e;
}
Expand Down

0 comments on commit d051015

Please sign in to comment.