feenableexcept() not working with Cygwin on Appveyor

Robert's Avatar

Robert

Feb 18, 2016 @ 01:26 PM

Hi there,

I am experiencing a very strange test failure, due to the fact that after a call to feenableexcept() (in a forked process) upon division by zero the signal is not raised:

should_crash___when__feenableexcept_was_called FE__with_Plugin FAIL

https://ci.appveyor.com/project/arstrube/cpputest/build/3.7.0-ci943/job/8waw4qdi72bowlec/tests

The same test is run successfully with MinGW:

https://ci.appveyor.com/project/arstrube/cpputest/build/3.7.0-ci943/job/4lhujta6nuey7apo/tests

What is even more strange, I have run these tests with Cygwin Gcc 4.8 and 5.3 on my local machine, and the test succeeds every time as expected. There is another test to verify the "division by zero" flag is set upon division by zero.

Any help would be much appreciated.

  1. 1 Posted by Robert on Feb 18, 2016 @ 02:11 PM

    Robert's Avatar

    The same test run in the parent process will end with a core dump (as expected, but not helpful ;-).

    So, how come no core dump occurs when run in a child process?

  2. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac