Skip to content

Commit

Permalink
mount "tmp" instead of "/tmp"
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo Vacchi <[email protected]>
  • Loading branch information
evacchi committed Feb 8, 2024
1 parent 5c7a68e commit 6647c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/integration_test/stdlibs/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var (

fsconfig := wazero.NewFSConfig().
WithDirMount(".", "/").
WithDirMount(os.TempDir(), "/tmp")
WithDirMount(os.TempDir(), "tmp")

c, stdout, stderr = defaultModuleConfig()
c = c.WithFSConfig(fsconfig).
Expand Down Expand Up @@ -110,7 +110,7 @@ var (
c = c.WithFSConfig(
wazero.NewFSConfig().
WithDirMount(sysroot, "/").
WithDirMount(os.TempDir(), "/tmp")).
WithDirMount(os.TempDir(), "tmp")).
WithEnv("PWD", normalizedTestdir)

args := []string{fname, "-test.short", "-test.v"}
Expand Down

0 comments on commit 6647c98

Please sign in to comment.