void AlignmentTestBadPathError::checkCallBack(hal::AlignmentConstPtr alignment) { string badPath(_checkPath); badPath += "blarg"; try { ((Alignment*)alignment.get())->open(badPath, true); } catch(...) { return; } CuAssertTrue(_testCase, false); }
void AlignmentTestBadPathError::checkCallBack(hal::AlignmentConstPtr alignment) { #ifndef ENABLE_UDC // note: udc just exits here so test wont work string badPath(_checkPath); badPath += "blarg"; try { ((Alignment*)alignment.get())->open(badPath, true); } catch(...) { return; } CuAssertTrue(_testCase, false); #endif }