Blame SOURCES/testsuite-10.1.0-386.patch

f65c77
--- dyninst-10.1.0/testsuite-10.1.0/src/instruction/test_instruction_farcall.C
f65c77
+++ dyninst-10.1.0/testsuite-10.1.0/src/instruction/test_instruction_farcall.C
f65c77
@@ -96,21 +96,21 @@ test_results_t test_instruction_farcall_Mutator::executeTest()
f65c77
   if(decodedInsns.size() != expectedInsns) // six valid, one invalid
f65c77
   {
f65c77
     logerror("FAILED: Expected %d instructions, decoded %d\n", expectedInsns, decodedInsns.size());
f65c77
-    for(std::vector<Instruction::Ptr>::iterator curInsn = decodedInsns.begin();
f65c77
+    for(std::vector<Instruction>::iterator curInsn = decodedInsns.begin();
f65c77
 	curInsn != decodedInsns.end();
f65c77
 	++curInsn)
f65c77
     {
f65c77
-      logerror("\t%s\t", (*curInsn)->format().c_str());
f65c77
-      for(unsigned j = 0; j < (*curInsn)->size(); ++j)
f65c77
+      logerror("\t%s\t", (*curInsn).format().c_str());
f65c77
+      for(unsigned j = 0; j < (*curInsn).size(); ++j)
f65c77
       {
f65c77
-	logerror("%x ", (*curInsn)->rawByte(j));
f65c77
+	logerror("%x ", (*curInsn).rawByte(j));
f65c77
       }
f65c77
       logerror("\n");
f65c77
     }
f65c77
     
f65c77
     return FAILED;
f65c77
   }
f65c77
-  if(decodedInsns.back() && decodedInsns.back()->isValid())
f65c77
+  if(decodedInsns.size() > 0 && decodedInsns.back().isValid())
f65c77
   {
f65c77
     logerror("FAILED: Expected instructions to end with an invalid instruction, but they didn't");
f65c77
     return FAILED;