Skip to content

Commit

Permalink
fix strings test (both old and new API)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Nov 2, 2024
1 parent 79565c6 commit 3cf333f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/runtime/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,12 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {
let (resolve, world) = resolve_wit_dir(&dir);
for path in cpp.iter() {
let world_name = &resolve.worlds[world].name;
let out_dir = out_dir.join(format!("cpp-{}", world_name));
let out_dir = out_dir.join(format!(
"cpp-{}",
path.file_name()
.and_then(|os| os.to_str())
.unwrap_or(world_name)
));
drop(fs::remove_dir_all(&out_dir));
fs::create_dir_all(&out_dir).unwrap();

Expand Down

0 comments on commit 3cf333f

Please sign in to comment.