mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
b75f374d9c
With version 2.0rc5, Busted started cleaning up between tests more thoroughly. The result was that it managed to unload and reload lgi. However, the C part of lgi is not safe to be reloaded. This caused sporadic errors in the test suite runs. Work around this via a helper script that is run before Busted starts running tests. When we load lgi in this helper script, it is loaded before Busted starts saving and restoring everything and thus lgi won't ever be unloaded. Signed-off-by: Uli Schlachter <psychon@znc.in>
4 lines
235 B
Lua
4 lines
235 B
Lua
-- This script is given to Busted via the --helper argument. Modules loaded here
|
|
-- won't be cleared and reloaded by Busted. This is needed for lgi because lgi
|
|
-- is not safe to reload and yet Busted manages to do this.
|
|
require("lgi")
|