This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/117829/

On April 28th, 2014, 12:42 p.m. UTC, Vishesh Handa wrote:

src/file/autotest/fileindexingjob/extractor.cpp (Diff revision 1)
int main(int argc, char* argv[])
76
            exit(-1);
Wouldn't exit just terminate the process normally? I was hoping to simulate a crash.
If you want to simulate a crash portably, you might want to try abort(3), which is available in C since C89. I'm not sure what it does on Windows, but on POSIX it throws SIGABRT instead but that should be easy enough to adjust to.

- Michael


On April 28th, 2014, 9:54 a.m. UTC, Patrick Spendrin wrote:

Review request for Baloo and kdewin.
By Patrick Spendrin.

Updated April 28, 2014, 9:54 a.m.

Repository: baloo

Description

this signal is not available on windows. Also exit should behave in a similar way, so maybe exit can be used everywhere?

Testing

windows msvc 2010

Diffs

  • src/file/autotest/fileindexingjob/extractor.cpp (a6d14d7)

View Diff