New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests #15360
Update tests #15360
Conversation
@@ -47,7 +47,8 @@ test() | |||
} | |||
catch (ExceptionBase &e) | |||
{ | |||
deallog << e.what() << std::endl; | |||
deallog << "Successfully failed to distribute DoFs with a single " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"successfully failed" :-)
entries.emplace_back(rand() % 10, rand() % 100); | ||
{ | ||
const auto row = Testing::rand() % 10; | ||
const auto col = Testing::rand() % 100; | ||
entries.emplace_back(row, col); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me a minute to see the difference -- nice catch!
1. Be more careful about sequence points 2. Use Testing::rand()
For some reason this doesn't work in debug mode. When we require C++17 we can use proper inline constexpr variables so its not worth bothering with a proper fix.
The PETSc TS tests now fail to run for me (I'm using a recent development copy of PETSc). For now I just removed them from this PR. |
What do you mean fail to run? It could be good to know why they are failing |
For
|
@drwells I don't understand the reasons for the failures. May I ask you to provide the output of the tests with the following options?
You can add them in an environment variable |
This has tested cleanly, and I think it is clearly a positive step, so I'm going to merge. @drwells Can you open a report about whatever you think is still open regarding the comments you have above? |
We have a bunch of tests which fail for trivial reasons - I fixed a bunch here.