From aba72e1edd5187985753eb323b48cebfbbd32345 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 14 Oct 2020 10:45:31 +0100 Subject: [PATCH] Print symbol resolution progress in GL_Callstacks test to avoid timeout --- util/test/tests/GL/GL_Callstacks.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/util/test/tests/GL/GL_Callstacks.py b/util/test/tests/GL/GL_Callstacks.py index cfca585a4..6d6c89ad2 100644 --- a/util/test/tests/GL/GL_Callstacks.py +++ b/util/test/tests/GL/GL_Callstacks.py @@ -1,6 +1,15 @@ import renderdoc as rd import rdtest +prevProgress = -1.0 + + +def resolve_progress(progress: float): + global prevProgress + if progress - prevProgress > 0.01 or progress == 1.0: + prevProgress = progress + rdtest.log.print("Resolve progress: {:.2f}%".format(progress*100.0)) + class GL_Callstacks(rdtest.TestCase): demos_test_name = 'GL_Callstacks' @@ -25,7 +34,7 @@ class GL_Callstacks(rdtest.TestCase): if not cap.HasCallstacks(): raise rdtest.TestFailureException("Capture does not report having callstacks") - if not cap.InitResolver(False, None): + if not cap.InitResolver(False, resolve_progress): raise rdtest.TestFailureException("Failed to initialise callstack resolver") draw = self.find_draw("Draw")