mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 d8ef23849a
			
		
	
	d8ef23849a
	
	
	
		
			
			It turns out that Busted started cleaning the environment in 2.0rc5 as a result of Olivine-Labs/busted#62. This, in turn, caused the ffi module to be reloaded for each spec file, and LuaJIT doesn't appreciate it. The net effect is an assertion error in LuaJIT. By using the --helper feature of Busted, we can pre-load some modules ahead of Busted and prevent it from reloading them--making LuaJIT happy again.
		
			
				
	
	
		
			8 lines
		
	
	
		
			329 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			329 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| -- Modules loaded here will not be cleared and reloaded by Busted.
 | |
| -- Busted started doing this to help provide more isolation.  See issue #62
 | |
| -- for more information about this.
 | |
| local ffi = require('ffi')
 | |
| local helpers = require('test.unit.helpers')
 | |
| local lfs = require('lfs')
 | |
| local preprocess = require('test.unit.preprocess')
 |