summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-22 01:30:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-22 01:30:47 +0300
commit5bf1ce172ec746b030cc2d9bbd37f95ac402f684 (patch)
treee17e71df34fb50367da777f67949e3afa26d8ede /src/test
parent6f47614ffebe771a786afee07013a674bea04a8c (diff)
downloadmv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.tar.gz
mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.tar.bz2
mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.tar.xz
mv-5bf1ce172ec746b030cc2d9bbd37f95ac402f684.zip
dehardcode render values.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testmain.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index d9d003f93..f7cb65275 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -276,7 +276,7 @@ int TestMain::readValue(const int ver, int def)
int TestMain::invokeTest(std::string test)
{
- mConfig.setValue("opengl", 0);
+ mConfig.setValue("opengl", static_cast<int>(RENDER_SOFTWARE));
mConfig.write();
const int ret = execFileWait(fileName, fileName, "-t", test);
@@ -294,7 +294,7 @@ int TestMain::invokeTest4()
int TestMain::invokeSoftwareRenderTest(std::string test)
{
- mConfig.setValue("opengl", 0);
+ mConfig.setValue("opengl", static_cast<int>(RENDER_SOFTWARE));
mConfig.write();
const int ret = execFileWait(fileName, fileName, "-t", test, 30);
log->log("%s: %d", test.c_str(), ret);
@@ -303,7 +303,7 @@ int TestMain::invokeSoftwareRenderTest(std::string test)
int TestMain::invokeFastOpenGLRenderTest(std::string test)
{
- mConfig.setValue("opengl", 1);
+ mConfig.setValue("opengl", static_cast<int>(RENDER_NORMAL_OPENGL));
mConfig.write();
const int ret = execFileWait(fileName, fileName, "-t", test, 30);
log->log("%s: %d", test.c_str(), ret);
@@ -312,7 +312,7 @@ int TestMain::invokeFastOpenGLRenderTest(std::string test)
int TestMain::invokeFastOpenBatchTest(std::string test)
{
- mConfig.setValue("opengl", 1);
+ mConfig.setValue("opengl", static_cast<int>(RENDER_NORMAL_OPENGL));
mConfig.write();
const int ret = execFileWait(fileName, fileName, "-t", test, 30);
// log->log("%s: %d", test.c_str(), ret);
@@ -321,7 +321,7 @@ int TestMain::invokeFastOpenBatchTest(std::string test)
int TestMain::invokeSafeOpenGLRenderTest(std::string test)
{
- mConfig.setValue("opengl", 2);
+ mConfig.setValue("opengl", static_cast<int>(RENDER_SAFE_OPENGL));
mConfig.write();
const int ret = execFileWait(fileName, fileName, "-t", test, 30);
log->log("%s: %d", test.c_str(), ret);