summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/reading-selections/main.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-04-08 17:22:22 -0300
committerThiago Macieira <thiago.macieira@intel.com>2020-05-05 12:24:35 -0700
commitc377bb385c3581da86eacaf257f88da50e98dec8 (patch)
tree026a21c842c1025e1da98801c9f0fb6517ef6629 /src/widgets/doc/snippets/reading-selections/main.cpp
parentff6d2cb0d5779d81e89d94d65c8d164602fa2567 (diff)
tst_QProcess: create a more reliable crashing
Turns out that crashing on purpose is more difficult than it seems. It should be easy, given how often we do it accidentally... Let the null pointer dereferencing be the fall back. Some compilers are too smart for their own good and remove the fault. Instead, let's rely on raise(SIGABRT) on Unix and on the UD2 instruction on Windows. Pick-To: 5.15 Change-Id: Ibdc95e9af7bd456a94ecfffd1603f1c9b73b167d Reviewed-by: Simon Hausmann <hausmann@gmail.com>
Diffstat (limited to 'src/widgets/doc/snippets/reading-selections/main.cpp')
0 files changed, 0 insertions, 0 deletions