Gavin
25ae3d0785
Add regression test for #4553
...
This test is definitely imperfect (should have no erroneous failures,
only erroneous passes), but should serve as a good smoke test
if matrix alignment is ever broken again. Looking at the generated LLVM,
there is a bunch of weird choices for alignment chosen that might be
worth looking into.
It's also worth noting that the failure mode of this test is a #GP
exception, which I don't know how well the test runner handles in a
larger test corpus.
2024-12-05 15:26:18 -05:00
Adam Zadrożny
ce51b79a37
Fix the unused variable errors
2024-12-04 21:09:47 +01:00
Adam Zadrożny
5dfc24882f
improve strings.index_multi
...
There's no point searching for substrings after lowest_index,
so let's not.
This significantly improves performance on long strings.
2024-12-04 14:29:49 +01:00
Ycros
bf63e9b093
Add test for regex preallocated captures.
2024-12-04 14:38:07 +11:00
Damian Tarnawski
26415bcb0e
Correct handling newlines between build tags in core:odin
...
Previously I thought that each newline worked as `OR`
basically the same as `,`.
This corrects this to work as `AND` instead.
2024-12-01 18:21:26 +01:00
Jeroen van Rijn
1a0a6c485d
Add comment explaining #4515 test.
2024-11-25 13:47:04 +01:00
Jeroen van Rijn
2dc0187836
Test #4515
2024-11-25 13:16:27 +01:00
Colin Davidson
f8586d0051
oops, copy-paste-bug
2024-11-20 15:33:20 -08:00
Colin Davidson
3bb73eacfc
fix parsing issue around utc/localtime split
2024-11-20 12:09:32 -08:00
Tetralux
2f85257bad
[runtime] make(map[K]V) should not allocate any capacity
...
`make(map[K]V)` was resolving to `make_map_cap()` which allocates initial capacity when it wasn't intended to.
It now calls `make_map()` which doesn't allocate any capacity.
Both `make(map[K]V)` and `make(map[K]V, allocator)` will NOT allocate initial capacity now.
2024-11-16 06:13:12 +00:00
Laytan Laats
282d956aa7
os2: skip dir test when unsupported
2024-11-15 21:56:55 +01:00
Laytan Laats
71020d7642
os2: add read dir test
2024-11-15 20:47:51 +01:00
Colin Davidson
c9158b3220
add new test, better fail-check, and non-transitioning tz fix
2024-11-05 03:44:07 -08:00
Laytan Laats
cc3c9bd871
fix thread_unix for Darwin after pthread corrections in posix package
...
afed3ce removed the sys/unix package and moved over to sys/posix, it has
new bindings for the pthread APIs but should have been equivalent (not).
8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the
correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for
FreeBSD in that commit).
What this meant is that the
`pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually
successful, but because the error wasn't checked it was assumed it was.
It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would
actually be setting `PTHREAD_CANCEL_DISABLE`.
The code in this PR restores the behaviour by now actually deliberately
setting `PTHREAD_CANCEL_DISABLE` and not setting
`PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does
actually seem to work for some reason.
(I also fixed an issue in fmt where `x` would use uppercase if it was a
pointer.)
2024-10-30 15:51:56 +01:00
gingerBill
ee76acd665
Merge pull request #4427 from laytan/posix-additions
...
Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
2024-10-30 11:43:47 +00:00
Laytan
7e12e37df9
fix test
2024-10-28 19:58:39 +01:00
Laytan Laats
1cebc025b0
sys/posix: impl rest of linux, impl some of Windows
2024-10-28 18:59:06 +01:00
Laytan Laats
4608d26e6e
encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal
2024-10-26 22:39:46 +02:00
Laytan Laats
793ef6012b
encoding/cbor: handle binary having more fields than the struct by discarding
2024-10-25 20:37:55 +02:00
Jeroen van Rijn
00ec862b63
Merge pull request #4335 from colrdavidson/datetime_tz
...
Add Timezone Support to Odin
2024-10-22 10:18:38 +02:00
Laytan Laats
b746e5287e
build tracking allocator code on freestanding wasm
2024-10-14 16:06:16 +02:00
Colin Davidson
4c8e355444
tweaks per laytan suggestions
2024-10-10 09:14:29 -07:00
Colin Davidson
a6502c3e8c
Initial cut of timezones
2024-10-09 19:26:43 -07:00
Laytan Laats
c21e62ddb4
reset n before stderr path too
2024-10-05 11:26:23 +02:00
Laytan
64508e477b
add unsupported check in process test
2024-10-04 13:24:24 +02:00
Laytan Laats
af8b592bf6
enable test on bsds
2024-10-03 14:45:45 +02:00
Laytan Laats
a78cd48aa3
remove posix signal test, it isn't thread safe
2024-10-03 13:51:31 +02:00
Laytan Laats
76806080ef
fix os2.process_exec on non-windows and add a smoke test
2024-10-03 13:51:27 +02:00
Laytan Laats
55e9a1b971
fix benchmarks not compiling and make sure it doesn't happen again by checking
2024-10-02 17:48:05 +02:00
Yawning Angel
cf7d705c1f
core/crypto/_sha3: Fix edge case in cSHAKE bytepad
...
If the domain separator happens to be exactly the rate, we would
previously incorrectly add another rate-bytes of 0s.
2024-09-30 21:50:18 +09:00
Nia
3337d6b264
Add linear_search_reverse and linear_search_reverse_proc
2024-09-25 16:41:55 +03:00
Simon Cruanes
a1349d8776
fix vet warnings
2024-09-22 00:08:07 -04:00
Simon Cruanes
32e13f17ae
Apply suggestions from code review
...
Co-authored-by: flysand7 <yyakut.ac@gmail.com >
2024-09-21 21:08:35 -04:00
Simon Cruanes
d08b3d3b82
add tests for time.time_to_rfc3339
2024-09-21 00:48:39 -04:00
gingerBill
327ca2ab71
Merge pull request #4261 from laytan/net-bound-endpoint
...
net: add `bound_endpoint` procedure
2024-09-19 12:53:42 +01:00
gingerBill
6bbeb0a243
Merge pull request #4203 from karl-zylinski/file-tags-without-comments
...
Make tags use #+ syntax instead of //+
2024-09-19 12:36:43 +01:00
Laytan Laats
80cc2f5416
fix it more
2024-09-17 23:28:34 +02:00
Laytan Laats
9973e0255c
fix error interrupt error check
2024-09-17 23:19:20 +02:00
Laytan Laats
652557bfcd
net: add bound_endpoint procedure
2024-09-17 22:22:19 +02:00
Karl Zylinski
29fedc1808
Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators.
2024-09-17 19:39:48 +02:00
Karl Zylinski
093ade0504
Merge branch 'master' into file-tags-without-comments
2024-09-17 19:36:17 +02:00
pkova
aa25714d43
Remove comment from core sync tests now that they're fixed
2024-09-17 02:11:41 +03:00
pkova
fff99c726e
Fix core sync test deadlock on darwin
2024-09-17 01:52:51 +03:00
gingerBill
68619f299e
Merge pull request #4209 from flysand7/core-mem
...
[core/mem]: Document, refactor, reformat!
2024-09-16 17:35:19 +01:00
Feoramund
16ef59700b
Check for EINTR in sys/posix test
2024-09-15 23:58:03 -04:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Feoramund
7f7cfebc91
Add tests for core:sync and core:sync/chan
2024-09-11 08:39:38 -04:00
Feoramund
074314b887
Fix data race in test_core_flags
2024-09-10 14:52:20 -04:00
flysand7
167ced8ad1
[mem]: Don't use named params for dynamic pool in tests
2024-09-08 18:52:55 +11:00
Laytan
1ab0745ca8
Merge pull request #4212 from karl-zylinski/fix-build-tags
...
Fix build tags that use ! multiple times on one line.
2024-09-07 22:18:29 +02:00