Skip to content

Commit

Permalink
soltest: force the use of the --testpath option for soltest with an e…
Browse files Browse the repository at this point in the history
…xplicit error.
  • Loading branch information
ekpyron committed Mar 14, 2018
1 parent 032ea9b commit 1882c50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/boostTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
{
master_test_suite_t& master = framework::master_test_suite();
master.p_name.value = "SolidityTests";
solAssert(
!dev::test::Options::get().testPath.empty(),
"No test path specified. The --testpath argument is required."
);
solAssert(dev::solidity::test::SyntaxTest::registerTests(
master,
dev::test::Options::get().testPath / "libsolidity",
Expand Down

0 comments on commit 1882c50

Please sign in to comment.