Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/xcode/test_xcode_dependencies.lua2
-rw-r--r--tests/actions/xcode/test_xcode_project.lua2
-rw-r--r--tests/testfx.lua3
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/actions/xcode/test_xcode_dependencies.lua b/tests/actions/xcode/test_xcode_dependencies.lua
index e748b2b..6012981 100644
--- a/tests/actions/xcode/test_xcode_dependencies.lua
+++ b/tests/actions/xcode/test_xcode_dependencies.lua
@@ -14,7 +14,7 @@
-- Setup/Teardown
---------------------------------------------------------------------------
- local sln, prj, prj2, tr
+ local sln, prj, prj2, tr, _OS_original
function suite.setup()
premake.action.set("xcode3")
xcode.used_ids = { } -- reset the list of generated IDs
diff --git a/tests/actions/xcode/test_xcode_project.lua b/tests/actions/xcode/test_xcode_project.lua
index 4ab50ba..3585d01 100644
--- a/tests/actions/xcode/test_xcode_project.lua
+++ b/tests/actions/xcode/test_xcode_project.lua
@@ -14,7 +14,7 @@
-- Setup/Teardown
---------------------------------------------------------------------------
- local sln, tr
+ local sln, tr, _OS_original
function suite.setup()
premake.action.set("xcode3")
io.eol = "\n"
diff --git a/tests/testfx.lua b/tests/testfx.lua
index 1182a13..3c412a7 100644
--- a/tests/testfx.lua
+++ b/tests/testfx.lua
@@ -191,12 +191,13 @@
--
-- Test execution function
--
-
+ local _OS_host = _OS
local function test_setup(suite, fn)
-- clear out some important globals
_ACTION = "test"
_ARGS = { }
_OPTIONS = { }
+ _OS = _OS_host
premake.solution.list = { }
io.indent = nil