aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2025-11-21test: disable `big simd vector` C ABI test on s390xAlex Rønne Petersen
2025-11-20update deprecated ArrayListUnmanaged usage (#25958)Benjamin Jurk
2025-11-19test: enable C ABI tests on s390x-linuxAlex Rønne Petersen
2025-11-19test: disable a bunch of failing C ABI tests on s390xAlex Rønne Petersen
2025-11-19test: disable C ABI tests using i128 on s390x due to an LLVM crashAlex Rønne Petersen
https://github.com/llvm/llvm-project/issues/168460
2025-11-19test: disable test-link on big-endian hostsAlex Rønne Petersen
https://github.com/ziglang/zig/issues/25961
2025-11-19test: remove complex arithmetic testing from `c_compiler` standalone testAlex Rønne Petersen
This has no business being here. Tests for our compiler-rt routines should be in compiler-rt, and tests for our C ABI compliance should be in `test-c-abi`.
2025-11-19test: disable an error trace test on optimized s390x-linuxAlex Rønne Petersen
2025-11-19test: fix glibc_compat test for s390x which does not have local atexitAlex Rønne Petersen
2025-11-19compiler: don't use self-hosted backends on big-endian hostsAlex Rønne Petersen
https://github.com/ziglang/zig/issues/25961
2025-11-17replace @panic with b.addFail in standalone test build.zigTobias Simetsreiter
2025-11-16Merge pull request #25929 from alexrp/maccatalystAlex Rønne Petersen
`std.zig.target`: support `aarch64-maccatalyst` and `x86_64-maccatalyst` cross libc
2025-11-16Dedupe types when printing error messagesProkop Randáček
2025-11-16improve assembly error test coveragexdBronch
2025-11-15test: enable module tests for maccatalyst targetsAlex Rønne Petersen
2025-11-15build: change -Dskip-macos to -Dskip-darwin and make it cover all darwin OSsAlex Rønne Petersen
2025-11-14Sema: fix illegal multi level pointer coercionsJustus Klausecker
Moves a premature check that allowed pointers to mutable pointers to coerce to any other pointer to a mutable pointer.
2025-11-14std.Build: don't force all children to inherit color optionMatthew Lugg
The build runner was previously forcing child processes to have their stderr colorization match the build runner by setting `CLICOLOR_FORCE` or `NO_COLOR`. This is a nice idea in some cases---for instance a simple `Run` step which we just expect to exit with code 0 and whose stderr is not being programmatically inspected---but is a bad idea in others, for instance if there is a check on stderr or if stderr is captured, in which case forcing color on the child could cause checks to fail. Instead, this commit adds a field to `std.Build.Step.Run` which specifies a behavior for the build runner to employ in terms of assigning the `CLICOLOR_FORCE` and `NO_COLOR` environment variables. The default behavior is to set `CLICOLOR_FORCE` if the build runner's output is colorized and the step's stderr is not captured, and to set `NO_COLOR` otherwise. Alternatively, colors can be always enabled, always disabled, always match the build runner, or the environment variables can be left untouched so they can be manually controlled through `env_map`. Notably, this fixes a failure when running `zig build test-cli` in a TTY (or with colors explicitly enabled). GitHub CI hadn't caught this because it does not request color, but Codeberg CI now does, and we were seeing a failure in the `zig init` test because the actual output had color escape codes in it due to 6d280dc.
2025-11-14represent Mac Catalyst as aarch64-maccatalyst-none rather than ↵Alex Rønne Petersen
aarch64-ios-macabi Apple's own headers and tbd files prefer to think of Mac Catalyst as a distinct OS target. Earlier, when DriverKit support was added to LLVM, it was represented a distinct OS. So why Apple decided to only represent Mac Catalyst as an ABI in the target triple is beyond me. But this isn't the first time they've ignored established target triple norms (see: armv7k and aarch64_32) and it probably won't be the last. While doing this, I also audited all Darwin OS prongs throughout the codebase and made sure they cover all the tags.
2025-11-13fix 'redundant comptime keyword' error source location and add testsxdBronch
2025-11-12Merge pull request #25772 from mlugg/kill-dead-codeMatthew Lugg
compiler: rewrite some legalizations, and remove a bunch of dead code
2025-11-12std.Target: remove Abi.cygnusAlex Rønne Petersen
There is approximately zero chance of the Zig team ever spending any effort on supporting Cygwin; the MSVC and MinGW-w64 ABIs are superior in every way that matters, and not least because they lead to binaries that just run natively on Windows without needing a POSIX emulation environment installed.
2025-11-12Sema: fix inline fn compiler crash (#25586)So1aric
Resolves: https://github.com/ziglang/zig/issues/25581
2025-11-12cbe: work around some miscompilationsMatthew Lugg
The changes to `codegen.c` are blatant hacks, but the problem they work around isn't a regression: it's an existing miscompilation. This branch happened to *expose* that miscompilation in more cases by changing how an incorrect result is *used*.
2025-11-12behavior: disable test on cbeMatthew Lugg
This isn't so much a regression as it is foreshadowing of accepted proposal https://github.com/ziglang/zig/issues/24657.
2025-11-10sema: print @panic message at comptimexdBronch
2025-11-10std.zig.AstGen: properly handle grouped_expressionMateusz Poliwczak
This fixes an endless loop in the compiler.
2025-11-08Let CRT take care of the entry point for wWinMain if libc is linkedRyan Liptak
Fixes #7852 Before, the modified test would fail with: ``` error: lld-link: undefined symbol: wWinMain note: referenced by C:\Users\Ryan\Programming\Zig\zig-x86_64-windows-0.15.1\lib\libc\mingw\crt\crtexewin.c:66 note: libmingw32.lib(ucrtexewin.obj):(wmain) ```
2025-11-07Merge pull request #25158 from castholm/subsystemRyan Liptak
Misc. Windows subsystem refactorings
2025-11-07sema: disallow slices of opaque typesxdBronch
2025-11-05zig fmt: fix extra whitespace in StructInit with multiline stringsskewb1k
68d2f68ed introduced special handling for StructInit fields containing multiline strings to prevent inserting whitespace after =. However, this logic didn't handle cases without a trailing comma, which resulted in unwanted trailing whitespace.
2025-11-05Move `std.Target.SubSystem` to `std.zig.Subsystem`Carl Åstholm
Also updates the field names to conform with the rest of std.
2025-11-04codegen: fix tuple paddingJacob Young
Closes #25797
2025-10-31test: remove some unsupported x86_64 darwin targets from llvm_targetsAlex Rønne Petersen
2025-10-30aarch64: implement optional comparisonsJacob Young
2025-10-29x86_64: continue hacking around unimplemented linker logicJacob Young
Closes #25666
2025-10-29Merge pull request #25592 from ziglang/init-std.IoAndrew Kelley
std: Introduce `Io` Interface
2025-10-29remove all IBM AIX and z/OS supportAlex Rønne Petersen
As with Solaris (dba1bf935390ddb0184a4dc72245454de6c06fd2), we have no way to actually audit contributions for these OSs. IBM also makes it even harder than Oracle to actually obtain these OSs. closes #23695 closes #23694 closes #3655 closes #23693
2025-10-29update standalone tests for ws2_32 dependencyAndrew Kelley
2025-10-29std: make signal numbers into an enumAndrew Kelley
fixes start logic for checking whether IO/POLL exist
2025-10-29disable self-hosted wasm test-casesAndrew Kelley
Tracked by #25684
2025-10-29std.Io.Threaded: add ioBasic which disables networkingAndrew Kelley
2025-10-29fix some std.Io compilation failuresAndrew Kelley
2025-10-29std: back out the StackTrace byval changesAndrew Kelley
Let's keep passing this thing by pointer
2025-10-29update some tests and tools for new Io APIsAndrew Kelley
2025-10-29fix miscellaneous compilation errorsAndrew Kelley
- ILSEQ -> error.BadPathName - implement dirStatPath for WASI
2025-10-29std: updating to std.Io interfaceAndrew Kelley
got the build runner compiling
2025-10-27remove all Oracle Solaris supportAlex Rønne Petersen
There is no straightforward way for the Zig team to access the Solaris system headers; to do this, one has to create an Oracle account, accept their EULA to download the installer ISO, and finally install it on a machine or VM. We do not have to jump through hoops like this for any other OS that we support, and no one on the team has expressed willingness to do it. As a result, we cannot audit any Solaris contributions to std.c or other similarly sensitive parts of the standard library. The best we would be able to do is assume that Solaris and illumos are 100% compatible with no way to verify that assumption. But at that point, the solaris and illumos OS tags would be functionally identical anyway. For Solaris especially, any contributions that involve APIs introduced after the OS was made closed-source would also be inherently more risky than equivalent contributions for other proprietary OSs due to the case of Google LLC v. Oracle America, Inc., wherein Oracle clearly demonstrated its willingness to pursue legal action against entities that merely copy API declarations. Finally, Oracle laid off most of the Solaris team in 2017; the OS has been in maintenance mode since, presumably to be retired completely sometime in the 2030s. For these reasons, this commit removes all Oracle Solaris support. Anyone who still wishes to use Zig on Solaris can try their luck by simply using illumos instead of solaris in target triples - chances are it'll work. But there will be no effort from the Zig team to support this use case; we recommend that people move to illumos instead.
2025-10-26test: enable tsan standalone test for x86_64-freebsd and aarch64-freebsdAlex Rønne Petersen
2025-10-25compiler: avoid using self-hosted backend on x86_64-solaris/illumosAlex Rønne Petersen
https://github.com/ziglang/zig/issues/25699