From 28053087852042796593f0392cd7ed0f59edd1d6 Mon Sep 17 00:00:00 2001 From: nc Date: Thu, 11 Jul 2019 22:21:32 -0400 Subject: updated test so 'x' is relative to file-offset not segment offset --- subx/apps/survey.subx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subx/apps') diff --git a/subx/apps/survey.subx b/subx/apps/survey.subx index 82144c3c..2f100b79 100644 --- a/subx/apps/survey.subx +++ b/subx/apps/survey.subx @@ -678,7 +678,7 @@ test-compute-offsets: # segment 'code' has size 0x5 # segment 'data' is at file offset 0x5 # label 'x' is in segment 'data' - # label 'x' is at offset 0x0 + # label 'x' is at offset 0x5 # segment 'data' has size 0x1 # # . prolog @@ -820,10 +820,10 @@ test-compute-offsets: e8/call check-trace-contains/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP - # . check-trace-contains("label 'x' is at offset 0x00000000.", msg) + # . check-trace-contains("label 'x' is at offset 0x00000005.", msg) # . . push args 68/push "F - test-compute-offsets/5"/imm32 - 68/push "label 'x' is at offset 0x00000000."/imm32 + 68/push "label 'x' is at offset 0x00000005."/imm32 # . . call e8/call check-trace-contains/disp32 # dump *Trace-stream {{{ -- cgit 1.4.1-2-gfad0 kspecs/ranger/commit/test/__init__.py?h=v1.9.2&id=11d09d02d3168fd6e264de9a5f649bcb6d95af95'>commit diff stats
path: root/test/__init__.py
blob: 86557b6a79a02df2ad8845220b2d21b73c20e678 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29