Updated the goto* tests to test both backward and forward gotos
git-svn-id: https://smali.googlecode.com/svn/trunk@106 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
diff --git a/src/test/smali/junit-tests/InstructionTests/Format10t/Format10t.smali b/src/test/smali/junit-tests/InstructionTests/Format10t/Format10t.smali
index 2aebccb..c5e26f2 100644
--- a/src/test/smali/junit-tests/InstructionTests/Format10t/Format10t.smali
+++ b/src/test/smali/junit-tests/InstructionTests/Format10t/Format10t.smali
@@ -18,11 +18,20 @@
goto label:
- const v0, 6
+ label2:
+
+
+ const v1, 6
+ invoke-static {v0, v1}, LAssert;->assertEquals(II)V
+ return-void
+
+
label:
+ const v0, 6
+ goto label2:
- const v1, 5
- invoke-static {v0, v1}, LAssert;->assertEquals(II)V
+
+ invoke-static {}, Lorg/junit/Assert;->assertFalse()V
return-void
.end method
\ No newline at end of file
diff --git a/src/test/smali/junit-tests/InstructionTests/Format20t/Format20t.smali b/src/test/smali/junit-tests/InstructionTests/Format20t/Format20t.smali
index eff78d5..0457bc5 100644
--- a/src/test/smali/junit-tests/InstructionTests/Format20t/Format20t.smali
+++ b/src/test/smali/junit-tests/InstructionTests/Format20t/Format20t.smali
@@ -18,7 +18,13 @@
goto/16 label:
- const v0, 6
+ label2:
+
+
+ const v1, 6
+ invoke-static {v0, v1}, LAssert;->assertEquals(II)V
+ return-void
+
#enough nops to force the offset to be more than would fit in 1 byte
nop
nop
@@ -1062,11 +1068,12 @@
nop
+
label:
+ const v0, 6
+ goto/16 label2:
-
- const v1, 5
- invoke-static {v0, v1}, LAssert;->assertEquals(II)V
+ invoke-static {}, Lorg/junit/Assert;->assertFalse()V
return-void
.end method
\ No newline at end of file
diff --git a/src/test/smali/junit-tests/InstructionTests/Format30t/Format30t.smali b/src/test/smali/junit-tests/InstructionTests/Format30t/Format30t.smali
index 365a9d4..80dbdad 100644
--- a/src/test/smali/junit-tests/InstructionTests/Format30t/Format30t.smali
+++ b/src/test/smali/junit-tests/InstructionTests/Format30t/Format30t.smali
@@ -14,11 +14,17 @@
.end annotation
+
const v0, 5
goto/32 label:
- const v0, 6
+ label2:
+
+ const v1, 6
+ invoke-static {v0, v1}, LAssert;->assertEquals(II)V
+ return-void
+
#enough nops to force the offset to be more than what would fit in 2 bytes
nop
nop
@@ -70743,10 +70749,10 @@
label:
+ const v0, 6
+ goto/32 label2:
-
- const v1, 5
- invoke-static {v0, v1}, LAssert;->assertEquals(II)V
+ invoke-static {}, Lorg/junit/Assert;->assertFalse()V
return-void
.end method
\ No newline at end of file