Skip to content

Commit f937bc8

Browse files
committed
Fix type in byte sequence
1 parent 7dc66ce commit f937bc8

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

tests/negative/should_fail_I.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
test_cases:
22
-
33
input:
4+
name: "Fail because of too few input bytes."
45
bytes: [ 0x00 ]
56
arch: "sparc"
67
options: [ CS_OPT_DETAIL, CS_MODE_BIG_ENDIAN ]

tests/negative/should_fail_II.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
test_cases:
22
-
33
input:
4-
bytes: [ 0x00, 0xa0, 0x40, 0x02 ]
4+
name: "Fails due to mismatching asm text"
5+
bytes: [ 0x80, 0xa0, 0x40, 0x02 ]
56
arch: "sparc"
67
options: [ CS_OPT_DETAIL, CS_MODE_BIG_ENDIAN ]
78
address: 0x1000

tests/negative/should_fail_III.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
test_cases:
22
-
33
input:
4-
bytes: [ 0x00, 0xa0, 0x40, 0x02 ]
4+
name: "Fails due to missing detail operand"
5+
bytes: [ 0x80, 0xa0, 0x40, 0x02 ]
56
arch: "sparc"
67
options: [ CS_OPT_DETAIL, CS_MODE_BIG_ENDIAN ]
78
address: 0x1000

tests/negative/should_fail_IV.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
test_cases:
22
-
33
input:
4+
name: "Fails due to non existant architecture name."
45
bytes: [ 0x00, 0xa0, 0x40, 0x02 ]
56
arch: "not_existant"
67
options: [ CS_OPT_DETAIL, CS_MODE_BIG_ENDIAN ]

tests/negative/should_fail_V.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
test_cases:
22
-
33
input:
4-
bytes: [ 0x00, 0xa0, 0x40, 0x02 ]
4+
name: "Fails due to not decoded details."
5+
bytes: [ 0x80, 0xa0, 0x40, 0x02 ]
56
arch: "sparc"
67
options: [ CS_MODE_BIG_ENDIAN ]
78
address: 0x1000

tests/negative/should_fail_VI.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
test_cases:
22
-
33
input
4+
name: "Failes due to malformatted file"
45
bytes: [ 0x00 ]
56
arch: "sparc"
67
options: [ CS_OPT_DETAIL, CS_MODE_BIG_ENDIAN ]

0 commit comments

Comments
 (0)