Blame SOURCES/testsuite-10.1.0-386.patch

46998e
--- dyninst-10.2.0/testsuite-10.1.0/CMakeLists.txt
46998e
+++ dyninst-10.2.0/testsuite-10.1.0/CMakeLists.txt
46998e
@@ -111,7 +111,8 @@
46998e
 if(UNIX)
46998e
   enable_language(ASM-ATT)
46998e
-  if("${DYNINST_PLATFORM}" MATCHES "i386")
46998e
-    enable_language(ASM_NASM)
46998e
-  endif()
46998e
+# nasm/yasm are deprecated
46998e
+#  if("${DYNINST_PLATFORM}" MATCHES "i386")
46998e
+#    enable_language(ASM_NASM)
46998e
+#  endif()
46998e
 elseif(WIN32)
46998e
   enable_language(ASM_MASM)
46998e
46998e
--- dyninst-10.2.0/testsuite-10.1.0/src/instruction/test_instruction_farcall.C
46998e
+++ dyninst-10.2.0/testsuite-10.1.0/src/instruction/test_instruction_farcall.C
7f6d9e
@@ -96,21 +96,21 @@ test_results_t test_instruction_farcall_Mutator::executeTest()
7f6d9e
   if(decodedInsns.size() != expectedInsns) // six valid, one invalid
7f6d9e
   {
7f6d9e
     logerror("FAILED: Expected %d instructions, decoded %d\n", expectedInsns, decodedInsns.size());
7f6d9e
-    for(std::vector<Instruction::Ptr>::iterator curInsn = decodedInsns.begin();
7f6d9e
+    for(std::vector<Instruction>::iterator curInsn = decodedInsns.begin();
7f6d9e
 	curInsn != decodedInsns.end();
7f6d9e
 	++curInsn)
7f6d9e
     {
7f6d9e
-      logerror("\t%s\t", (*curInsn)->format().c_str());
7f6d9e
-      for(unsigned j = 0; j < (*curInsn)->size(); ++j)
7f6d9e
+      logerror("\t%s\t", (*curInsn).format().c_str());
7f6d9e
+      for(unsigned j = 0; j < (*curInsn).size(); ++j)
7f6d9e
       {
7f6d9e
-	logerror("%x ", (*curInsn)->rawByte(j));
7f6d9e
+	logerror("%x ", (*curInsn).rawByte(j));
7f6d9e
       }
7f6d9e
       logerror("\n");
7f6d9e
     }
7f6d9e
     
7f6d9e
     return FAILED;
7f6d9e
   }
7f6d9e
-  if(decodedInsns.back() && decodedInsns.back()->isValid())
7f6d9e
+  if(decodedInsns.size() > 0 && decodedInsns.back().isValid())
7f6d9e
   {
7f6d9e
     logerror("FAILED: Expected instructions to end with an invalid instruction, but they didn't");
7f6d9e
     return FAILED;