コード例 #1
0
void AlignmentTestBadPathError::checkCallBack(hal::AlignmentConstPtr alignment)
{
  string badPath(_checkPath);
  badPath += "blarg";
  try {
    ((Alignment*)alignment.get())->open(badPath, true);
  }
  catch(...)
  {
    return;
  }
  CuAssertTrue(_testCase, false);
}
コード例 #2
0
ファイル: halAlignmentTest.cpp プロジェクト: dayin1989/hal
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
}