rust/src/test
Brian Campbell cfc3865832 Use libc::abort, not intrinsics::abort, in rtabort!
intrinsics::abort compiles down to an illegal instruction, which on
Unix-like platforms causes the process to be killed with SIGILL.  A more
appropriate way to kill the process would be SIGABRT; this indicates
better that the runtime has explicitly aborted, rather than some kind of
compiler bug or architecture mismatch that SIGILL might indicate.

For rtassert!, replace this with libc::abort.  libc::abort raises
SIGABRT, but is defined to do so in such a way that it will terminate
the process even if SIGABRT is currently masked or caught by a signal
handler that returns.

On non-Unix platforms, retain the existing behavior.  On Windows we
prefer to avoid depending on the C runtime, and we need a fallback for
any other platforms that may be defined.  An alternative on Windows
would be to call TerminateProcess, but this seems less essential than
switching to using SIGABRT on Unix-like platforms, where it is common
for the process-killing signal to be printed out or logged.

This is a [breaking-change] for any code that depends on the exact
signal raised to abort a process via rtabort!

cc #31273
cc #31333
2016-05-23 00:22:41 -04:00
..
auxiliary Auto merge of #30448 - alexcrichton:llvmup, r=nikomatsakis 2016-01-30 00:25:44 +00:00
codegen Avoid quadratic growth of functions due to cleanups 2016-02-04 00:34:53 +01:00
codegen-units Implement the translation item collector. 2016-01-26 10:17:45 -05:00
compile-fail Auto merge of #31410 - rkruppe:issue31109, r=pnkfelix 2016-02-06 13:16:03 +00:00
compile-fail-fulldeps Make name resolution errors non-fatal 2015-12-11 21:00:15 +13:00
debuginfo Rename sunos to solaris 2016-01-31 19:01:30 +03:00
parse-fail Auto merge of #30763 - gchp:issue/30033, r=nagisa 2016-01-15 06:38:26 +00:00
pretty libsyntax: fix pretty printing of macro with braces 2016-01-28 09:19:43 +01:00
run-fail Ignore a test on MSVC 2016-02-06 02:31:19 +02:00
run-fail-fulldeps Improve error message for let-in-expr-position 2016-01-26 13:55:46 +05:30
run-make Instrument the AST map so that it registers reads when data is 2016-02-05 13:19:55 -05:00
run-pass Use libc::abort, not intrinsics::abort, in rtabort! 2016-05-23 00:22:41 -04:00
run-pass-fulldeps Add a test 2016-01-15 10:24:12 +13:00
run-pass-valgrind update valgrind suppressions 2015-12-25 15:46:36 -05:00
rustdoc rustdoc: Add test for tuple rendering 2016-01-28 23:41:53 +00:00