Exemplo n.º 1
0
test_results_t test1_40_Mutator::setup(ParameterDict &param) 
{
	bool createmode = param["createmode"]->getInt() == USEATTACH;
	appThread = (BPatch_thread *)(param["appThread"]->getPtr());
        appProc = appThread->getProcess();
	int mutateeXLC = param["mutateeXLC"]->getInt();

	// xlc does not produce the intended dynamic call points for this example
	if (mutateeXLC) 
	{
		return SKIPPED;
	}

	// Read the program's image and get an associated image object
        appImage = appProc->getImage();

	if (isMutateeFortran(appImage)) 
	{
		return SKIPPED;
	}

	if ( createmode == USEATTACH )
	{
		if ( ! signalAttached(appImage) )
			return FAILED;
	}

	// Run mutator code
	return PASSED;
}
Exemplo n.º 2
0
	DNode* DNode::createChild( const DString& name )
	{
		DNode* n = createChildImpl(name);
		n->setParent(this);
		mChildren.insert(n);
		signalAttached(this, n);
		return n;
	}
Exemplo n.º 3
0
	DNode* DNode::createChild()
	{
		DNode* n = createChildImpl();
		n->setParent(this);
		mChildren.insert(n);
		signalAttached(this, n);
		return n;
	}
Exemplo n.º 4
0
	void DNode::setParent( DNode* p )
	{
		bool diff = (p != mParent);
		if (mParent != NULL)
		{
			mParent->removeChild(this);
		}
		
		mParent = p;
		mbParentNotified = false;
		needUpdate();
		if (diff)
		{
			if (mParent)
			{
				signalAttached(mParent,this);
			}
			else
			{
				signalDetached(mParent,this);
			}
		}
	}
Exemplo n.º 5
0
	void DNode::addChild( DNode* child )
	{
		child->setParent(this);
		mChildren.insert(child);
		signalAttached(this, child);
	}