aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/startup_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 45bfa93b56..62a45fdf88 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -221,6 +221,11 @@ describe('startup', function()
clear{args={'--embed'}}
eq(2, eval('1+1'))
end)
+
+ it('does not crash when expanding cdpath during early_init', function()
+ clear{env={CDPATH='~doesnotexist'}}
+ eq(',~doesnotexist', eval('&cdpath'))
+ end)
end)
describe('sysinit', function()