[llvm-branch-commits] [llvm] [Dexter] Add !step node for testing stepping behaviour (PR #203844)

Orlando Cazalet-Hyams via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jun 30 01:48:30 PDT 2026


================
@@ -231,6 +231,37 @@ def register_yaml(loader):
         yaml.add_representer(ValueAll, ValueAll.representer)
 
 
+class Step(Expect):
+    """Sets an expectation for stepping behaviour, with the expected value being a list of integer lines:
+    - !step exactly: while this !expect is active, we expect see exactly the expected lines in-order as many times as
+      they appear in the expected lines list.
+    - !step order: while this !expect is active, we expect to see each of the expected lines in-order at least as many
+      times as they appear in the expected list, ignoring excess lines and lines not in the expected lines list.
----------------
OCHyams wrote:

I feel like `at_least` closer to describing what's being checked than `order` here. Or something else similar? OTOH, this might be too embedded and not important enough to bother changing, ymmv

https://github.com/llvm/llvm-project/pull/203844


More information about the llvm-branch-commits mailing list