Skip to content

Commit 4c612ae

Browse files
gh-157: Make passing/writefile-fail-dir.pre Win DIR creation idempotent.
1 parent 07ffe2b commit 4c612ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cases/passing/writefile-fail-dir.pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ IMPORT(path)
33
STR: d = path.TEMPFILE("prefix-writefile-fail-dir")
44

55
IF(EQ(OS(),"win")){
6-
ASSERT(EQ(CL(JOIN("md ", path.WINPATH(d))), 0d0))
6+
ASSERT(EQ(CL(JOIN("powershell -NoProfile -NonInteractive -Command \"New-Item -ItemType Directory -Force -Path '", path.WINPATH(d), "'\"")), 0d0))
77
} ELSE {
88
ASSERT(EQ(CL(JOIN("mkdir -p ", d)), 0d0))
99
}

0 commit comments

Comments
 (0)