Skip to content
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

Custom message for fatal expressions not shown #629

Open
jbbjarnason opened this issue May 21, 2024 · 1 comment
Open

Custom message for fatal expressions not shown #629

jbbjarnason opened this issue May 21, 2024 · 1 comment

Comments

@jbbjarnason
Copy link
Contributor

Expected Behavior

Custom message for fatal expressions

Actual Behavior

No message shown before the exception is thrown

Steps to Reproduce the Problem

  1. https://godbolt.org/z/rvavdeE81
#include <https://raw.githubusercontent.com/boost-experimental/ut/master/include/boost/ut.hpp>

int main() {
  using namespace boost::ut;
  expect(fatal(2 != 2_i)) << "some random message";
}
ASM generation compiler returned: 0
Execution build compiler returned: 0
Program returned: 139

===============================================================================
Suite globaltests:   0 | 2 failed
asserts: 0 | 0 passed | 2 failed

terminate called after throwing an instance of 'boost::ext::ut::v2_0_1::events::fatal_assertion'
Program terminated with signal: SIGSEGV
FAILED
in: :0 - test condition:  [2 != 2]

Specifications

  • Version: Master
  • Platform: godbolt
@AlexanderZvyagin
Copy link

I observe the same thing. And it is very annoying. Will need to switch to a slower, but more robust testing framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants