diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-05 22:13:12 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-06 15:14:36 +0000 |
commit | 8d30fc5bd2b352897b81756400ab50d2be859209 (patch) | |
tree | f71fe388bf942a8675b011e377c55587da2133f0 /spec | |
parent | c3345ac3c416d5f0eb229258262b112f33bf0441 (diff) | |
download | luarocks-8d30fc5bd2b352897b81756400ab50d2be859209.tar.gz luarocks-8d30fc5bd2b352897b81756400ab50d2be859209.tar.bz2 luarocks-8d30fc5bd2b352897b81756400ab50d2be859209.zip |
fix(windows): output native slashes on fs.find
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/build_spec.lua | 6 | ||||
-rw-r--r-- | spec/unit/fs_spec.lua | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/build_spec.lua b/spec/unit/build_spec.lua index 3ef8eece..e8f13940 100644 --- a/spec/unit/build_spec.lua +++ b/spec/unit/build_spec.lua | |||
@@ -128,15 +128,15 @@ describe("LuaRocks build #unit", function() | |||
128 | 128 | ||
129 | local modules = build_builtin.autodetect_modules(libs, incdirs, libdirs) | 129 | local modules = build_builtin.autodetect_modules(libs, incdirs, libdirs) |
130 | assert.same(modules, { | 130 | assert.same(modules, { |
131 | module1 = location .. "/module1.lua", | 131 | module1 = P(location .. "/module1.lua"), |
132 | ["dir1.module2"] = { | 132 | ["dir1.module2"] = { |
133 | sources = location .. "/dir1/module2.c", | 133 | sources = P(location .. "/dir1/module2.c"), |
134 | libraries = libs, | 134 | libraries = libs, |
135 | incdirs = incdirs, | 135 | incdirs = incdirs, |
136 | libdirs = libdirs | 136 | libdirs = libdirs |
137 | }, | 137 | }, |
138 | my_module = { | 138 | my_module = { |
139 | sources = location .. "/dir1/dir2/module3.c", | 139 | sources = P(location .. "/dir1/dir2/module3.c"), |
140 | libraries = libs, | 140 | libraries = libs, |
141 | incdirs = incdirs, | 141 | incdirs = incdirs, |
142 | libdirs = libdirs | 142 | libdirs = libdirs |
diff --git a/spec/unit/fs_spec.lua b/spec/unit/fs_spec.lua index 621a7727..c2a842bf 100644 --- a/spec/unit/fs_spec.lua +++ b/spec/unit/fs_spec.lua | |||
@@ -1063,9 +1063,9 @@ describe("luarocks.fs #unit", function() | |||
1063 | end | 1063 | end |
1064 | assert.same(count, 3) | 1064 | assert.same(count, 3) |
1065 | assert.is_not.same(contents[tmpdir], true) | 1065 | assert.is_not.same(contents[tmpdir], true) |
1066 | assert.same(contents["intfile1"], true) | 1066 | assert.same(contents[P"intfile1"], true) |
1067 | assert.same(contents["intdir"], true) | 1067 | assert.same(contents[P"intdir"], true) |
1068 | assert.same(contents["intdir/intfile2"], true) | 1068 | assert.same(contents[P"intdir/intfile2"], true) |
1069 | end) | 1069 | end) |
1070 | 1070 | ||
1071 | it("uses the current working directory if the argument is nil", function() | 1071 | it("uses the current working directory if the argument is nil", function() |