Exemplo n.º 1
0
void checkTestCase3(procType proc_type, BPatch_thread *thread) {
   if(proc_type == Parent_p) {
      if(! verifyProcMemory(thread, "globalVariable7_3", 246, proc_type)) {
	 passedTest[3] = false;
      }
   } else if(proc_type == Child_p) {
      if(! verifyProcMemory(thread, "globalVariable7_3", 246, proc_type)) {
	 passedTest[3] = false;
      }
   }
}
Exemplo n.º 2
0
void checkTestCase4(procType proc_type, BPatch_thread *thread) {
   if(proc_type == Parent_p) {
      if(! verifyProcMemory(thread, "globalVariable7_4", 789, proc_type)) {
	 passedTest[4] = false;
      }
   } else if(proc_type == Child_p) {
      if(! verifyProcMemory(thread, "globalVariable7_4", 1000, proc_type)) {
	 passedTest[4] = false;
      }
   }
}
Exemplo n.º 3
0
static void checkTestCase4(procType proc_type, BPatch_thread *thread) {
   if(proc_type == Parent_p) {
       if(! verifyProcMemory(thread->getProcess(), "test_fork_8_global1", 789, proc_type)) {
	 passedTest = false;
      }
   } else if(proc_type == Child_p) {
       if(! verifyProcMemory(thread->getProcess(), "test_fork_8_global1", 1000, proc_type)) {
	 passedTest = false;
      }
   }
}
Exemplo n.º 4
0
void checkTestCase6(procType proc_type, BPatch_thread *thread) {
   const int TN = 6;
   if(proc_type == Parent_p) {
      if(! verifyProcMemory(thread, "globalVariable7_6", 26, proc_type)) {
	 passedTest[TN] = false;
      }
   } else if(proc_type == Child_p) {
      if(! verifyProcMemory(thread, "globalVariable7_6", 30, proc_type)) {
	 passedTest[TN] = false;
      }
   }
}
Exemplo n.º 5
0
void checkTestCase7(procType proc_type, BPatch_thread */*thread*/) {
   const int TN = 7;
   char varname[50];
   sprintf(varname,"test%d malloced var",TN);
   if(proc_type == Parent_p) {
      if(! verifyProcMemory(varname, var7_7p, 13, proc_type)) {
	 passedTest[TN] = false;
      }
   } else if(proc_type == Child_p) {
      if(! verifyProcMemory(varname, var7_7c, 17, proc_type)) {
	 passedTest[TN] = false;
      }
   }
}