aboutsummaryrefslogtreecommitdiff
path: root/test/stack_traces.zig
AgeCommit message (Collapse)Author
2022-08-24test-stack-traces: restore test coverageAndrew Kelley
reverts 1ce71c86bff351a4ade4321e188a13c9d3cff8b4
2022-08-23std.debug: implement support for DWARFv5Andrew Kelley
2022-08-17libstd: fix off-by-one error in def of ProcSym in pdbJakub Konka
Make sure `ProcSym` includes a single element byte-array which delimits the start of the symbol's name as part of its definition. This makes the code more elegant in that accessing the name is equivalent to taking the address of this one element array.
2022-08-11disable failing stack traces tests on windowsAndrew Kelley
See tracking issue #12422
2022-08-08AstGen: emit debug stmt for tryAndrew Kelley
This improves the following test case: ```zig pub fn main() !void { try foo(); } fn foo() !void { return error.Bad; } ``` The error return trace now points to the `try` token instead of pointing to the foo() function call, matching stage1. Closes #12308.
2021-05-23overhaul elf csu (c-runtime startup) logicMichael Dusan
- more support for linux, android, freebsd, netbsd, openbsd, dragonfly - centralize musl utils; musl logic is no longer intertwined with csu - fix musl compilation to build crti/crtn for full archs list - fix openbsd to support `zig build-lib -dynamic` - initial dragonfly linking success (with a warning) ancillary: - fix emutls (openbsd) tests to use `try`
2021-05-08update usage of std.testing in behavior and standalone testsVeikka Tuominen
2021-04-10test: overhaul stack_trace testingMichael Dusan
- limit expected-output to main source file; ie. tolerate changes to start.zig - when mode != .Debug the function name is now symbolically represented; ie. tolerate changes in llvm optimizer effects on the callstack - cleanup how test cases are specified - add test case predicates for excluding by arch, os or custom fn
2021-04-08update stack trace test cases to new start.zig line offsetsAndrew Kelley
2020-12-18std.crypto.random: introduce fork safetyAndrew Kelley
Everybody gets what they want! * AT_RANDOM is completely ignored. * On Linux, MADV_WIPEONFORK is used to provide fork safety. * On pthread systems, `pthread_atfork` is used to provide fork safety. * For systems that do not have the capability to provide fork safety, the implementation falls back to calling getrandom() every time. * If madvise is unavailable or returns an error, or pthread_atfork fails for whatever reason, it falls back to calling getrandom() every time. * Applications may choose to opt-out of fork safety. * Applications may choose to opt-in to unconditionally calling getrandom() for every call to std.crypto.random.fillFn. * Added `std.meta.globalOption`. * Added `std.os.madvise` and related bits. * Bumped up the size of the main thread TLS buffer. See the comment there for justification. * Simpler hot path in TLS initialization.
2020-12-18update test-stack-traces because start.zig updatedAndrew Kelley
2020-11-25update stack trace test with new start.zig line numberAndrew Kelley
2020-11-23Update stack_traces testLemonBoy
2020-10-28Update stack traces testcasesKoakuma
2020-10-22update stack trace test caseAndrew Kelley
2020-10-19Update the stack-traces testsLemonBoy
2020-10-17fix compilation error when building with io_mode eventedAndrew Kelley
The merge of #5613 introduced a regression when building with io_mode evented, fixed in this commit. closes #6715
2020-10-15fixups regarding windows wide stringsAndrew Kelley
* remove GetModuleHandleA from kernel32.zig. use of A functions considered harmful. * make it a compile error to expose WinMain instead of wWinMain. same thing. * start code declares wWinMainCRTStartup instead of WinMainCRTStartup when it has the choice.
2020-10-15Merge branch '5002-fix-entrypoint-with-winmain' of ↵Andrew Kelley
https://github.com/AnthonyYoManz/zig into AnthonyYoManz-5002-fix-entrypoint-with-winmain
2020-10-12Rename .macosx to .macosVignesh Rajagopalan
2020-09-10update the stack trace test case for lines added to start.zigAndrew Kelley
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-06-15Update Stack Trace For start.zig ChangesDixiE
2020-05-05update docs/tests for async/extern fn removalTadeo Kondrak
2020-03-28std: Minor changes to TLS handlingLemonBoy
* Always allocate an info block per-thread so that libc can store important stuff there. * Respect ABI-mandated alignment in more places. * Nicer code, use slices/pointers instead of raw addresses whenever possible.
2020-03-22disable failing stack trace test for aarch64Andrew Kelley
2020-03-22update stack trace test expected outputAndrew Kelley
2020-03-13update stack traces test expectationsAndrew Kelley
2020-03-03Merge remote-tracking branch 'origin/master' into llvm10Andrew Kelley
2020-02-28improve the "external executor" detection logicAndrew Kelley
2020-02-28update std lib to new Target APIAndrew Kelley
2020-02-26update test expectationsAndrew Kelley
2020-02-23correct test expectationsLemonBoy
2020-02-07codegen: Use the new frame-pointer fn attributesLemonBoy
no-frame-pointer-elim and no-frame-pointer-elim-non-leaf have been deprecated for a while in favour of the newer (and clearer) frame-pointer attribute. Starting with LLVM10 the old attributes are silently ignored, leading to no stack traces in debug mode.
2020-01-21Adjust tests & work around a nasty ICELemonBoy
2019-12-12update stack traces testsAndrew Kelley
2019-09-09test-stack-traces: add FreeBSDMichael Dusan
2019-09-03rename test-compare-panic to test-stack-tracesAndrew Kelley