aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-06-20 10:07:32 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-06-20 10:07:32 +0200
commit906044cb31569d7681ccf9d161f98fe3bd409277 (patch)
tree1dace996ca187b7f45197d29fff10891a80d6d61 /system
parente0871d7be63dd428d4a2b9a3db4e033894165cef (diff)
downloadluasystem-906044cb31569d7681ccf9d161f98fe3bd409277.tar.gz
luasystem-906044cb31569d7681ccf9d161f98fe3bd409277.tar.bz2
luasystem-906044cb31569d7681ccf9d161f98fe3bd409277.zip
add tests for autotermrestore
Diffstat (limited to 'system')
-rw-r--r--system/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/init.lua b/system/init.lua
index ee43c4b..926370c 100644
--- a/system/init.lua
+++ b/system/init.lua
@@ -124,6 +124,13 @@ do -- autotermrestore
124 system.termrestore(self) end) 124 system.termrestore(self) end)
125 return true 125 return true
126 end 126 end
127
128 -- export a reset function only upon testing
129 if _G._TEST then
130 function system._reset_global_backup()
131 global_backup = nil
132 end
133 end
127end 134end
128 135
129 136