zig/src-self-hosted
Andrew Kelley c2db077574
std.debug.assert: remove special case for test builds
Previously, std.debug.assert would `@panic` in test builds,
if the assertion failed. Now, it's always `unreachable`.

This makes release mode test builds more accurately test
the actual code that will be run.

However this requires tests to call `std.testing.expect`
rather than `std.debug.assert` to make sure output is correct.

Here is the explanation of when to use either one, copied from
the assert doc comments:

Inside a test block, it is best to use the `std.testing` module
rather than assert, because assert may not detect a test failure
in ReleaseFast and ReleaseSafe mode. Outside of a test block, assert
is the correct function to use.

closes #1304
2019-02-08 18:23:38 -05:00
..
arg.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
c_int.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
c.zig self-hosted: share C++ code for finding libc on windows 2018-07-20 23:38:13 -04:00
codegen.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
compilation.zig Merge branch 'zig-backport-std.os.path' of https://github.com/kristate/zig into kristate-zig-backport-std.os.path 2019-02-06 22:53:34 -05:00
decl.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
errmsg.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
introspect.zig stage2: update std.os.path.join method signature; 2018-11-30 03:52:28 +09:00
ir.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
libc_installation.zig fixups, and modify std.mem.join and std.os.path.resolve API 2019-02-07 00:42:41 -05:00
link.zig stage2: update std.os.path.join method signature; 2018-11-30 03:52:28 +09:00
llvm.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
main.zig Merge branch 'zig-backport-std.os.path' of https://github.com/kristate/zig into kristate-zig-backport-std.os.path 2019-02-06 22:53:34 -05:00
package.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
scope.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
target.zig msvc subsystem option handling; added uefi os type 2018-12-23 22:44:02 -05:00
test.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
type.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
value.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
visib.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00