Skip to content

Commit

Permalink
OSx regex tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 2, 2024
1 parent 2e34207 commit fb4f5f4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/db/archos/darwin-x64/dbg
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,9 @@ CMDS=<<EOF
dm~hello
EOF
EXPECT=<<EOF
0x0000000100000000 - 0x0000000100001000 - usr 4K u r-x hello-objc-osx
hello_objc_osx.r_x
0x0000000100001000 - 0x0000000100002000 - usr 4K u rw- hello-objc-osx
hello_objc_osx.rw
0x0000000100002000 - 0x0000000100003000 - usr 4K u r-- hello-objc-osx
hello_objc_osx.r
0x0000000100000000 - 0x0000000100001000 - usr 4K u r-x hello-objc-osx /Users/runner/work/rizin/rizin/test/bins/mach0/hello-objc-osx ; hello_objc_osx.r_x
0x0000000100001000 - 0x0000000100002000 - usr 4K u rw- hello-objc-osx /Users/runner/work/rizin/rizin/test/bins/mach0/hello-objc-osx ; hello_objc_osx.rw
0x0000000100002000 - 0x0000000100003000 - usr 4K u r-- hello-objc-osx /Users/runner/work/rizin/rizin/test/bins/mach0/hello-objc-osx ; hello_objc_osx.r
EOF
EXPECT_ERR=
RUN
Expand Down Expand Up @@ -142,7 +139,7 @@ dr rip
dr rax
EOF
# Due to ASLR only the last 12bits are stable and get tested here.
REGEXP_FILTER_OUT=(r[ai][xp]|[0-9a-f][0-9a-f][0-9a-f]$)
REGEXP_FILTER_OUT=((r[ai][xp])|([0-9a-f][0-9a-f][0-9a-f]$))
EXPECT=<<EOF
rip
f20
Expand All @@ -155,7 +152,7 @@ f38
rax
064
EOF
REGEXP_FILTER_ERR=(hit\sbreakpoint\sat:|([0-9a-f][0-9a-f][0-9a-f]$))
REGEXP_FILTER_ERR=((hit\sbreakpoint\sat:)|([0-9a-f][0-9a-f][0-9a-f]$))
EXPECT_ERR=<<EOF
hit breakpoint at:
f20
Expand Down Expand Up @@ -184,7 +181,7 @@ dc
dr rip
dr rax
EOF
REGEXP_FILTER_OUT=((r[ia][px]|([0-9a-f][0-9a-f][0-9a-f]$))
REGEXP_FILTER_OUT=((r[ia][px])|([0-9a-f][0-9a-f][0-9a-f]$))
EXPECT=<<EOF
rip
ea0
Expand All @@ -197,7 +194,7 @@ ee3
rax
0a0
EOF
REGEXP_FILTER_ERR=(hit\sbreakpoint\sat:|([0-9a-f][0-9a-f][0-9a-f]$))
REGEXP_FILTER_ERR=((hit\sbreakpoint\sat:)|([0-9a-f][0-9a-f][0-9a-f]$))
EXPECT_ERR=<<EOF
hit breakpoint at:
ea0
Expand Down

0 comments on commit fb4f5f4

Please sign in to comment.