Skip to content

Commit

Permalink
Add wen test (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay authored and Maijin committed Sep 15, 2017
1 parent 64cd6f2 commit 8b7cb88
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ run_tests.sh exits with the following exit codes:
Reporting Radare2 Bugs
----------------------

Please to not post Radare2 bugs on the r2-regressions github tracker. Instead
Please do not post Radare2 bugs on the r2-regressions github tracker. Instead
use the official r2 tracker:

https://github.com/radare/radare2/issues?state=open
Expand Down
31 changes: 30 additions & 1 deletion t/cmd_write
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ e.src.null=true
rm -rf $TMPDIR/
run_test

## "wen" - insert null bytes
NAME='wx pcache'
FILE=../bins/pe/b.exe
BROKEN=
Expand Down Expand Up @@ -271,3 +270,33 @@ EXPECT='a/b
0|1
'
run_test

## "wen" - insert null bytes

NAME='wen'
FILE=malloc://4
ARGS=
CMDS='
wx 01020304
wen 2 @ 1
wen 1 @ 6
p8 7
'
EXPECT='01000002030400
'
run_test

NAME='wen should insert X null bytes even if io.cache=false'
FILE=malloc://8
ARGS=
EXPECT='216607
216608
'
CMDS='
cp ../bins/pe/b.exe .b.exe
o+ .b.exe
r
s 0x200
wen 1
r
rm .b.exe

0 comments on commit 8b7cb88

Please sign in to comment.