Skip to content

Commit 4c7081f

Browse files
committed
dont test windows stuff on linux
1 parent 31b7ab2 commit 4c7081f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/plenary/path2_spec.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ local function set_shellslash(bool)
1414
end
1515

1616
local function it_win(name, test_fn)
17+
if not iswin then
18+
return
19+
end
20+
1721
if not hasshellslash then
1822
it(name, test_fn)
1923
else
@@ -1250,7 +1254,7 @@ SOFTWARE.]]
12501254
assert.are.same("foo/bar/baz", p:expand())
12511255
end)
12521256

1253-
it_win("ignore invalid env var", function()
1257+
it("ignore invalid env var", function()
12541258
local p = Path:new "foo/$NOT_A_REAL_ENV_VAR/baz"
12551259
assert.are.same(p.filename, p:expand())
12561260
end)

0 commit comments

Comments
 (0)