-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add special handling for potential
advance
failure in trial mode.
During trial mode we might call `advance` to find a synchronization point. If any of the bits touched by that fall into a gap, this can trigger a `MissingData` exception. In this patch we emit an additional `try`/`catch` block around the `advance` if we search for a lookahead in `Try` mode. We can then recover from `MissingData` by jumping to the next non-gap block in the input. Closes #1231.
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
error for ID id1: data is missing (<...>/spicy-driver-batch-gap.spicy:13:5) | ||
error for ID id1: failed to synchronize: data is missing (<...>/spicy-driver-batch-gap.spicy:13:5) | ||
[$data=[b"A", b"B"]] | ||
[$data=[b"a", b"b"]] | ||
[$data=[b"C", b"D"]] | ||
[$data=[b"c", b"d"]] | ||
error for ID id2: data is missing (<...>/spicy-driver-batch-gap.spicy:13:5) | ||
error for ID id2: failed to synchronize: data is missing (<...>/spicy-driver-batch-gap.spicy:13:5) | ||
[$data=[b"E", b"F"]] | ||
[$data=[b"e", b"f"]] |