Blame SOURCES/testsuite-10.1.0-386.patch

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