diff options
Diffstat (limited to 'system')
| -rw-r--r-- | system/init.lua | 7 |
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 | ||
| 127 | end | 134 | end |
| 128 | 135 | ||
| 129 | 136 | ||
