aboutsummaryrefslogtreecommitdiff
path: root/spec/build_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-20 13:43:44 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-23 20:47:09 -0300
commit2c4ff5240bf298fec07749f5984de2f08b8736ec (patch)
treef0b4dfec401fa1a132fc5786467fb8683d17bdcb /spec/build_spec.lua
parent79bd1739d8ca004ddd0b2fa5e24da4a6f4b776fa (diff)
downloadluarocks-2c4ff5240bf298fec07749f5984de2f08b8736ec.tar.gz
luarocks-2c4ff5240bf298fec07749f5984de2f08b8736ec.tar.bz2
luarocks-2c4ff5240bf298fec07749f5984de2f08b8736ec.zip
fix: better normalization for paths and slashes
Fixes #1195.
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r--spec/build_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua
index 5e78aa4f..0a270ec4 100644
--- a/spec/build_spec.lua
+++ b/spec/build_spec.lua
@@ -5,6 +5,7 @@ local run = test_env.run
5local testing_paths = test_env.testing_paths 5local testing_paths = test_env.testing_paths
6local write_file = test_env.write_file 6local write_file = test_env.write_file
7local git_repo = require("spec.util.git_repo") 7local git_repo = require("spec.util.git_repo")
8local P = test_env.P
8 9
9test_env.unload_luarocks() 10test_env.unload_luarocks()
10local cfg = require("luarocks.core.cfg") 11local cfg = require("luarocks.core.cfg")
@@ -661,7 +662,7 @@ describe("LuaRocks build #unit", function()
661 write_file("bin/binfile", "", finally) 662 write_file("bin/binfile", "", finally)
662 663
663 local _, install, copy_directories = build_builtin.autodetect_modules({}, {}, {}) 664 local _, install, copy_directories = build_builtin.autodetect_modules({}, {}, {})
664 assert.same(install, { bin = { "bin/binfile" } }) 665 assert.same(install, { bin = { P"bin/binfile" } })
665 assert.same(copy_directories, { "doc", "docs", "samples", "tests" }) 666 assert.same(copy_directories, { "doc", "docs", "samples", "tests" })
666 667
667 lfs.rmdir("doc") 668 lfs.rmdir("doc")