aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-05-24 13:16:05 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-05-24 13:16:05 -0400
commit06f7a36d5fa444d15b3b66799b547cac57d9abc7 (patch)
treed1deac0aa6a9195c95b3b7e5bd8ebafa8041d685 /test/test.lua
parent72a0869cabbf22d703d81f1e51db248e4f311d93 (diff)
Always use capital drive letters when opening files in Windows.
Since Windows filenames are case-insensitive, mismatched drive letter case may cause the same file to be open twice.
Diffstat (limited to 'test/test.lua')
-rw-r--r--test/test.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua
index 7fc53b75..1d920f6e 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -729,6 +729,7 @@ function test_lfs_ext_abs_path()
assert_equal(lfs.abspath('.\\bar', 'C:\\foo'), 'C:\\foo\\bar')
assert_equal(lfs.abspath('..\\bar', 'C:\\foo'), 'C:\\bar')
assert_equal(lfs.abspath('C:\\bar', 'C:\\foo'), 'C:\\bar')
+ assert_equal(lfs.abspath('c:\\bar', 'c:\\foo'), 'C:\\bar')
assert_equal(lfs.abspath('..\\../.\\./baz', 'C:\\foo\\bar'), 'C:\\baz')
_G.WIN32 = win32 -- reset just in case