Skip to content

Commit

Permalink
Merge pull request #801 from alfred-bratterud/dev
Browse files Browse the repository at this point in the history
test: fixed exception test
  • Loading branch information
alfreb authored Sep 1, 2016
2 parents 525bf86 + b329406 commit 9db6c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stl/integration/exceptions/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const lest::test tests[] = {
try {
// We want to always throw, but avoid the compiler optimizing
// away the test. Also nice to have this test talk to the OS a little.
if (OS::uptime()){
if (rand()){
std::runtime_error myexception(error_msg);
throw myexception;
}
Expand Down

0 comments on commit 9db6c4a

Please sign in to comment.