Make demos timeout more generous for leak check tests

* It's fine as-is in release, but in development builds it can take almost a
  minute to reach that frame and capture.
This commit is contained in:
baldurk
2021-07-05 14:20:48 +01:00
parent c08747d792
commit 979f5244e2
5 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -135,6 +135,7 @@ class TestCase:
demos_test_name = ''
demos_frame_cap = 5
demos_frame_count = 1
demos_timeout = None
demos_captures_expected = None
_test_list = {}
@@ -208,10 +209,13 @@ class TestCase:
if self.demos_test_name != '':
logfile = os.path.join(util.get_tmp_dir(), 'demos.log')
timeout = self.demos_timeout
if timeout is None:
timeout = util.get_demos_timeout()
return capture.run_and_capture(util.get_demos_binary(), self.demos_test_name + " --log " + logfile,
self.demos_frame_cap, frame_count=self.demos_frame_count,
captures_expected=self.demos_captures_expected, logfile=logfile,
opts=self.get_capture_options(), timeout=util.get_demos_timeout())
opts=self.get_capture_options(), timeout=timeout)
raise NotImplementedError("If run() is not implemented in a test, then"
"get_capture() and check_capture() must be.")
@@ -6,6 +6,7 @@ class D3D11_Leak_Check(rdtest.TestCase):
demos_test_name = 'D3D11_Leak_Check'
demos_frame_cap = 50000
demos_frame_count = 10
demos_timeout = 120
def check_capture(self):
memory: int = rd.GetCurrentProcessMemoryUsage()
@@ -6,6 +6,7 @@ class D3D12_Leak_Check(rdtest.TestCase):
demos_test_name = 'D3D12_Leak_Check'
demos_frame_cap = 50000
demos_frame_count = 10
demos_timeout = 120
def check_capture(self):
memory: int = rd.GetCurrentProcessMemoryUsage()
+1
View File
@@ -6,6 +6,7 @@ class GL_Leak_Check(rdtest.TestCase):
demos_test_name = 'GL_Leak_Check'
demos_frame_cap = 50000
demos_frame_count = 1
demos_timeout = 120
def check_capture(self):
memory: int = rd.GetCurrentProcessMemoryUsage()
+1
View File
@@ -6,6 +6,7 @@ class VK_Leak_Check(rdtest.TestCase):
demos_test_name = 'VK_Leak_Check'
demos_frame_cap = 50000
demos_frame_count = 10
demos_timeout = 120
def check_capture(self):
memory: int = rd.GetCurrentProcessMemoryUsage()