Skip to content

Commit 3ad3245

Browse files
Escape braces in regression test regexes
1 parent 16363ad commit 3ad3245

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

regression/cbmc/trace-values/trace-values.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trace-values.c
1212
^ null\$object=6 .*$
1313
^ junk\$object=7 .*$
1414
^ dynamic_object1\[1.*\]=8 .*$
15-
^ my_nested\[1.*\]={ .f=0, .array={ 0, 4, 0 } } .*$
15+
^ my_nested\[1.*\]=\{ .f=0, .array=\{ 0, 4, 0 \} \} .*$
1616
^VERIFICATION FAILED$
1717
--
1818
^warning: ignoring

regression/cbmc/union10/union_list2.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Value sets do not record byte-extract operations with sufficient detail:
1111
struct list_item *p1 = u.my_list.index;
1212
struct list_item *p2 = p1->previous;
1313
yields
14-
(29) p1!0@1#2 == byte_extract_little_endian(u!0@1#4, 8l, struct list_item { unsigned int value; unsigned int $pad1; struct list_item *previous; } *)
14+
(29) p1!0@1#2 == byte_extract_little_endian(u!0@1#4, 8l, struct list_item \{ unsigned int value; unsigned int $pad1; struct list_item *previous; \} *)
1515
(30) p2!0@1#2 == p1$object#0.previous
1616
as
17-
main::1::p1 = { <integer_address, *, unsigned char> }
17+
main::1::p1 = \{ <integer_address, *, unsigned char> \}
1818
is the only information stored in the value set.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
CORE
22
main.cpp
33

4-
^main\.cpp:31: Empty loop bodies should use {} or continue \[whitespace/empty_loop_body\] \[5\]$
5-
^main\.cpp:38: Empty loop bodies should use {} or continue \[whitespace/empty_loop_body\] \[5\]$
4+
^main\.cpp:31: Empty loop bodies should use \{\} or continue \[whitespace/empty_loop_body\] \[5\]$
5+
^main\.cpp:38: Empty loop bodies should use \{\} or continue \[whitespace/empty_loop_body\] \[5\]$
66
^Total errors found: 2$
77
^SIGNAL=0$
88
--

0 commit comments

Comments
 (0)