Skip to content

Commit

Permalink
refs #4679 unit test which crashes on win
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jan 30, 2012
1 parent b045964 commit 52c7354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/Geometry/src/Crystal/UnitCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,10 @@ namespace Geometry
throw std::range_error("UnitCell not properly initialized");
}
Gstar=G;
std::vector<double> rr = Gstar.get_vector();
if (Gstar.Invert()==0)
{throw std::range_error("UnitCell not properly initialized");}
std::vector<double> rr1 = Gstar.get_vector();
return;
}

Expand Down
5 changes: 4 additions & 1 deletion Code/Mantid/Framework/Geometry/test/UnitCellTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ class UnitCellTest : public CxxTest::TestSuite
checkCell(u2);

}

void test_UnitCellCrash(){
TS_WARN("This throw unhandled exception");
//UnitCell US(10.4165,3.4165,10.4165,30,45,80);
}

};

Expand Down

0 comments on commit 52c7354

Please sign in to comment.