Skip to content

Commit

Permalink
Merge pull request #14061 from unknownbrackets/ui-tests
Browse files Browse the repository at this point in the history
UI: Correct developer tools test run
  • Loading branch information
hrydgard authored Feb 4, 2021
2 parents b7e1e9a + 17d2a31 commit 1115037
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/jni/TestRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ bool RunTests() {
}
#endif

GraphicsContext *tempCtx = PSP_CoreParameter().graphicsContext;
// Clear the context during tests. We set it back later.
PSP_CoreParameter().graphicsContext = nullptr;

CoreParameter coreParam;
coreParam.cpuCore = (CPUCore)g_Config.iCpuCore;
coreParam.gpuCore = GPUCORE_SOFTWARE;
Expand Down Expand Up @@ -175,6 +179,8 @@ bool RunTests() {
PSP_CoreParameter().pixelWidth = pixel_xres;
PSP_CoreParameter().pixelHeight = pixel_yres;
PSP_CoreParameter().headLess = false;
PSP_CoreParameter().graphicsContext = tempCtx;

g_Config.sReportHost = savedReportHost;
return true; // Managed to execute the tests. Says nothing about the result.
}

0 comments on commit 1115037

Please sign in to comment.