zig/std/os
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
..
darwin re-organize std lib darwin files 2018-07-22 00:04:24 -04:00
freebsd freebsd: fix wrong call to clock_getres (#1871) 2019-01-05 13:34:47 -05:00
linux std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
windows implement Thread Local Storage on Windows 2019-02-06 18:32:41 -05:00
child_process.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
darwin.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
epoch.zig run zig fmt on the codebase 2018-05-29 04:23:38 -04:00
file.zig introduce std.io.SeekableStream 2018-12-02 18:36:18 -05:00
get_app_data_dir.zig fixups, and modify std.mem.join and std.os.path.resolve API 2019-02-07 00:42:41 -05:00
get_user_id.zig Merge branch 'freebsd-up' of https://github.com/myfreeweb/zig into freebsd2 2018-11-19 17:24:41 -05:00
index.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
path.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
test.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
time.zig std.debug.assert: remove special case for test builds 2019-02-08 18:23:38 -05:00
uefi.zig fixups 2018-12-26 15:25:54 -05:00
zen.zig update zen os std lib for latest zig changes 2018-11-24 16:51:52 -05:00