Files
renderdoc/util/test/tests/GL/GL_Empty_Capture.py
T
baldurk 79a5086a0c Handle assert failures in logger directly, remove TestCase.check
* assert is handled specially by the type checker so we don't want to have
  duplicate self.check / assert
* The original reason for TestCase.check was to print the assertion message but
  this can be handled by checking for the AssertionError exception
2026-09-11 15:04:03 +01:00

16 lines
398 B
Python

import renderdoc as rd
import rdtest
class GL_Empty_Capture(rdtest.TestCase):
demos_test_name = 'GL_Empty_Capture'
demos_frame_cap = 100
def check_capture(self):
actions = self.controller.GetRootActions()
assert len(actions) == 1
assert 'End' in actions[0].customName
# EID 1 is the implicit context activation
assert actions[0].eventId == 2