Commit Graph

2532 Commits

Author SHA1 Message Date
Sven/Sarah Barth
5ce96de0f2 * ensure that an expression that involves an overloaded generic in mode Delphi isn't handled as a specialization if it shouldn't be
+ added tests
2022-01-22 20:27:01 +01:00
florian
2e8321e0fa + routines to test for AVX512VNNI and AVX512BITALG support 2022-01-21 18:23:04 +01:00
florian
63d8282f8f * do not use sysutils anymore 2022-01-19 22:03:24 +01:00
florian
bd104270ae * clean up 2022-01-19 22:02:58 +01:00
florian
713074ded5 * test does not need to use sysutils anymore 2022-01-19 21:25:00 +01:00
florian
e19b45a71b * tests fixed after last commit 2022-01-15 22:30:25 +01:00
florian
beecbf1581 Merge branch 'val_sint' into main 2022-01-10 22:11:01 +01:00
Pierre Muller
3b8b549eaa Fix compilation of the two tests for jvm-android target 2022-01-07 22:56:13 +00:00
florian
d29a482cd1 * fixes for fpc_Val_SInt_ShortStr by Bart B
+ new test for fpc_Val_SInt_ShortStr
  + benchmark
2022-01-07 19:19:55 +01:00
J. Gareth "Curious Kit" Moreton
fd54c958c9 New POPCNT tests to evaluate new optimisations 2022-01-06 20:57:48 +00:00
Florian Klämpfl
4aebfe97a9 + x86: ADXSupport
+ x86: RDSEEDSupport
2022-01-03 22:51:00 +01:00
florian
435f3a9fe2 * allow a range of Low(Longint) to High(DWord) in TryStrToInt, see also issue #39406
* moved test
2022-01-02 21:33:01 +01:00
Florian Klämpfl
dde8f54ee7 + LZCNTSupport
+ test extended
2021-12-28 17:05:56 +01:00
Nikolay Nikolov
efe08183be Merge commit 'f289f2694ab837b414aa131a0514c56fee4950bc' into unicodekvm 2021-12-26 05:25:41 +02:00
florian
781b2d0a80 * patch by Rika: second part of #39496, resolves #30496
+ extended test
2021-12-25 20:01:32 +01:00
florian
159201d054 * activate missing test 2021-12-19 22:57:33 +01:00
florian
2cf68f6dbf * files moved as strutils is now in rtl-objpas 2021-12-10 22:05:57 +01:00
Florian Klämpfl
60c26a11ef * patch by Bart B. to improve DelSpace1, resolves #39465
+ test
2021-12-09 22:52:01 +01:00
J. Gareth "Curious Kit" Moreton
55d5b11deb Converted tabs to spaces in toverflow.inc for consistency 2021-11-18 20:31:49 +00:00
J. Gareth "Curious Kit" Moreton
29ea731b2f Added two new overflow tests 2021-11-17 20:18:57 +00:00
florian
03ce23246f * patch by Don Siders: Fixes spelling, grammar errors in source and compiler messages, resolves #39434 2021-11-10 19:16:14 +01:00
florian
2ee6a81cff * extended test to cover last commit 2021-10-20 22:33:53 +02:00
florian
7e73e0dd23 + support reading of .p2align with op code and/or max. bytes in the gas assembler reader
+ test
2021-10-18 22:12:27 +02:00
Nikolay Nikolov
44f862fb4e + added test for SysUtils.GetLocalTime 2021-10-13 03:49:54 +03:00
florian
bff09e8e9e + CPU units: check for SHA support 2021-10-09 16:23:11 +02:00
Jonas Maebe
3fb0fab410 Fix bitpacking 62/63 bit fields on 64 bit targets
As reported on the lazarus forum:
* https://forum.lazarus.freepascal.org/index.php?topic=56341.new
* https://forum.lazarus.freepascal.org/index.php/topic,56339.msg418608/topicseen.html

Also optimized nextpowerof2 in the compiler
2021-10-03 14:00:50 +02:00
Nikolay Nikolov
799cd957e6 + added WASI .o files for the tests for linking with C 2021-10-03 04:11:51 +03:00
Nikolay Nikolov
9aefda1e6a * bug fix in test taddbool.pp - it was testing longbool conversion to boolean
twice, and not testing wordbool conversion to boolean at all
2021-10-01 04:56:36 +03:00
Yuriy Sydorov
c30ce7108e * Do not run the tzlib1 test. It is not intended for this. 2021-09-11 20:40:36 +03:00
Yuriy Sydorov
80c63fae30 * Explicitly specify DefaultRTLFileSystemCodePage for the test in order
to be independent from the current system code page.
2021-09-11 20:35:50 +03:00
Yuriy Sydorov
fca357e898 * Disabled running of the sharemem test since fpcmemdll.dll is never built. 2021-09-11 19:54:02 +03:00
Yuriy Sydorov
0567572fae * Weak externals from DLL are nor supported on Windows. 2021-09-11 19:54:02 +03:00
Yuriy Sydorov
bcaa2c9758 * Explicitly specify CP1252 for registry tests which depends on this CP. 2021-09-11 18:10:52 +03:00
Yuriy Sydorov
fc3685819c + Added a test for the TP-style INLINE() statement. 2021-08-16 16:12:47 +03:00
Nikolay Nikolov
e2f6732751 Merge remote-tracking branch 'origin/main' into unicodekvm 2021-08-08 22:45:27 +03:00
michael
0e3d95b589 * Restored disappeared test
git-svn-id: trunk@49631 -
2021-07-22 05:53:06 +00:00
michael
4fac31d1c7 * Patch by Werner Pamler to improve ISO8601 to datetime conversion
git-svn-id: trunk@49624 -
2021-07-21 15:59:37 +00:00
michael
573917706f * Patch from Laco to fix issue #39261
git-svn-id: trunk@49623 -
2021-07-21 15:08:53 +00:00
michael
9394158fe2 * Test for fix of issue #38489
git-svn-id: trunk@49605 -
2021-07-13 08:16:14 +00:00
nickysn
c24e84e463 * synchronized with trunk
git-svn-id: branches/unicodekvm@49511 -
2021-06-18 10:14:13 +00:00
pierre
ce2984e16a Fix compilation of tiso8601 test by adding -Mobjfpc option
git-svn-id: trunk@49509 -
2021-06-16 21:04:25 +00:00
svenbarth
e41c1ec118 * fix test so that it will work correctly on non-Windows as well
git-svn-id: trunk@49488 -
2021-06-06 20:51:46 +00:00
svenbarth
2b3edb2c53 * in the default exception handler add the captured exception to the exception object stack as well
+ added test (needs to work with any exception handling mechanism; currently tested with SetJmp/LongJmp, SEH 32-bit and SEH 64-bit based exception handling)

git-svn-id: trunk@49486 -
2021-06-06 17:06:24 +00:00
michael
b3ced4de97 * Test from werner pamler for issue #38968
git-svn-id: trunk@49485 -
2021-06-06 12:49:37 +00:00
svenbarth
e89e87372e + add a test for Variant dispatch and the generated call description format (this is for the previous three fixes)
git-svn-id: trunk@49481 -
2021-06-05 17:43:57 +00:00
nickysn
3c2c578386 * synchronized with trunk
git-svn-id: branches/unicodekvm@49412 -
2021-05-29 21:46:27 +00:00
florian
bc21634b46 * AVR: made avr_des intrinsic more usefull
git-svn-id: trunk@49362 -
2021-05-13 18:59:28 +00:00
florian
022a9b210f + AVR: avr_des intrinsic
git-svn-id: trunk@49353 -
2021-05-13 09:26:53 +00:00
nickysn
cff7bed8bd * synchronized with trunk
git-svn-id: branches/unicodekvm@49342 -
2021-05-07 01:03:26 +00:00
Tomas Hajny
a652506254 * fix for wrongly chosen conditional define name
git-svn-id: trunk@49335 -
2021-05-03 22:56:59 +00:00
Tomas Hajny
cb2c0ae594 * fix for wrong nested comments resulting in wrong results under *nix, etc., with redirected output
git-svn-id: trunk@49334 -
2021-05-03 22:16:36 +00:00
Tomas Hajny
0d37e0e0f8 + added a test for Get/SetTextAutoFlush feature
git-svn-id: trunk@49325 -
2021-05-02 15:03:36 +00:00
florian
dc13516dee + patch by J. Gareth Moreton: improved tests for constant divisions including benchmark,
second part of #38806

git-svn-id: trunk@49291 -
2021-04-29 20:00:36 +00:00
nickysn
8f2d5716f6 * synchronized with trunk
git-svn-id: branches/unicodekvm@49224 -
2021-04-18 01:58:34 +00:00
florian
695665c393 + optimized multiplication for "symmetric" bit patterns on arm
git-svn-id: trunk@49199 -
2021-04-13 21:16:56 +00:00
florian
f1e748512b * fix test for case sensitive and case preserving file systems
git-svn-id: trunk@49183 -
2021-04-11 17:30:22 +00:00
florian
c1f85ac3a1 + initial implementation of path dependent IsFileNameCaseSensitive/IsFileNameCasePreserving functions for darwin
git-svn-id: trunk@49164 -
2021-04-10 13:29:59 +00:00
nickysn
7371e7c105 * synchronized with trunk
git-svn-id: branches/unicodekvm@49078 -
2021-03-29 02:38:13 +00:00
svenbarth
ca7c775e36 * fix for Mantis #38642: for enumerations with jumps Delphi behaves as follows:
- GetTypeKind returns tkEnumeration (FPC previously generated a compile error here)
  - GetTypeInfo on a generic parameters returns Nil for such types (FPC previously generated a compile error here)
  - GetTypeInfo otherwise generates a compile error (as before)

git-svn-id: trunk@49064 -
2021-03-27 09:35:07 +00:00
nickysn
066bb3c454 * synchronized with trunk
git-svn-id: branches/unicodekvm@49018 -
2021-03-20 04:39:38 +00:00
ondrej
2a61397d37 unix: fix timezone info for timers after the last transition
git-svn-id: trunk@49005 -
2021-03-19 08:11:10 +00:00
nickysn
62965b777b * synchronized with trunk
git-svn-id: branches/unicodekvm@48974 -
2021-03-14 21:43:24 +00:00
florian
649bfecf62 + compiled C object files, generated by riscv32-unknown-linux-gnu-gcc (GCC) 10.2.0 with -O3
git-svn-id: trunk@48973 -
2021-03-14 21:34:51 +00:00
michael
f5389cbc28 * test for bin2hex
git-svn-id: trunk@48968 -
2021-03-14 15:31:52 +00:00
florian
3c43677952 * re-build c objects with a fixed C compiler regarding floating point parameter passing: riscv64-linux-gnu-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 with -O3
git-svn-id: trunk@48939 -
2021-03-11 21:55:41 +00:00
nickysn
44fb35c5c6 * synchronized with trunk
git-svn-id: branches/unicodekvm@48905 -
2021-03-08 00:52:06 +00:00
florian
6166084f08 + new test
git-svn-id: trunk@48895 -
2021-03-07 09:16:10 +00:00
pierre
f620f61d3b Update to objects compiled using GNU gcc 5.5.0 for sparc-solaris
git-svn-id: trunk@48891 -
2021-03-06 22:06:23 +00:00
florian
ba0f08018f * fix test so it really uses random values for the boolean, thanks Jonas for the hint!
git-svn-id: trunk@48887 -
2021-03-06 15:16:29 +00:00
florian
62bd0068b6 * do not apply the (a and b) or (c and not(b)) into c xor ((c xor a) and b) optimziation if short boolean evaluation is used, should resolve #38576
* improved test

git-svn-id: trunk@48884 -
2021-03-06 14:48:15 +00:00
nickysn
685d608f82 * synchronized with trunk
git-svn-id: branches/unicodekvm@48847 -
2021-03-01 13:24:49 +00:00
florian
e0a1bc6675 + optimize (a and b) or (c and not(b)) into c xor ((c xor a) and b)
+ test

git-svn-id: trunk@48841 -
2021-02-28 18:20:46 +00:00
pierre
58171b4308 Extend list of CPUs defining slowcpu conditional in tmt1 and tw8177 sources
git-svn-id: trunk@48816 -
2021-02-26 23:39:14 +00:00
nickysn
cd8b0036d4 * synchronized with trunk
git-svn-id: branches/unicodekvm@48756 -
2021-02-21 17:48:14 +00:00
florian
17a3ca31ff * fix by avk for issue #38513
+ test

git-svn-id: trunk@48752 -
2021-02-21 13:54:25 +00:00
nickysn
3799569da0 * synchronized with trunk
git-svn-id: branches/unicodekvm@48655 -
2021-02-12 01:55:05 +00:00
nickysn
0470ca8fe3 + added simple test for the TRawByteStringCollection object type
git-svn-id: branches/unicodekvm@48638 -
2021-02-10 21:59:30 +00:00
michael
47be45830c * Fix issue ID #38462
git-svn-id: trunk@48580 -
2021-02-10 11:00:22 +00:00
nickysn
56f10ae916 * synchronized with trunk
git-svn-id: branches/unicodekvm@48529 -
2021-02-08 11:13:57 +00:00
florian
3e453f92fc * statx based Sysutils.FileGetDate with handle fixed
+ test

git-svn-id: trunk@48520 -
2021-02-07 17:59:28 +00:00
florian
b08717fef6 * make statx based Sysutils.FileAge working with relative pathes
+ test

git-svn-id: trunk@48519 -
2021-02-07 17:41:27 +00:00
nickysn
c15f12ef0d * synchronized with trunk
git-svn-id: branches/unicodekvm@48481 -
2021-02-01 01:13:58 +00:00
florian
b4a1c27c58 * renamed new syscall wrapper in linux to be consist with the others
git-svn-id: trunk@48479 -
2021-01-31 22:25:18 +00:00
svenbarth
d13838ac0b + add a test which ensures that a "const TVarData" parameter is passed as a reference.
This is required for Delphi compatibility as implementers of IVarInvokable or
  inheritors of TInvokableVariantType need to modify the variant data by using
  a pointer to the TVarData because it's passed as const and thus not modifyable
  by itself.
  This behavior is documented in so far as the C++ builder documentation shows
  that the same parameter is implemented as "const&".

git-svn-id: trunk@48478 -
2021-01-31 21:23:29 +00:00
florian
b8ab06aae7 + futimens syscall
* make use of futimens syscall in sysutils unit
  + tests

git-svn-id: trunk@48472 -
2021-01-31 17:12:39 +00:00
florian
0c77536f11 + linux.fputimensat which properly uses the _tim64 version if needed and available
+ test

git-svn-id: trunk@48470 -
2021-01-31 16:24:47 +00:00
florian
33cd5778cd * properly check for linux version supporting statx
git-svn-id: trunk@48469 -
2021-01-31 16:23:23 +00:00
florian
f39f8d0f1a * linux: make use of statx in Sysutils.FileAge if available
git-svn-id: trunk@48457 -
2021-01-30 18:47:27 +00:00
nickysn
20a6e682a9 * synchronized with trunk
git-svn-id: branches/unicodekvm@48450 -
2021-01-29 03:03:38 +00:00
florian
402876bc1f * let theapthread wait unneededly less so the total run time is shorter
git-svn-id: trunk@48388 -
2021-01-24 13:26:49 +00:00
yury
7ffa963127 * Moved the tregistry2 test back to packages and added more test OS targets.
git-svn-id: trunk@48383 -
2021-01-24 11:05:34 +00:00
yury
d83e1a33ca * tregistry2 test: Use cwstring on unices. Perform the test only on Windows and Linux.
git-svn-id: trunk@48263 -
2021-01-21 10:42:07 +00:00
yury
fe09efbd0e * Removed usage the Windows unit from the tregistry2 test.
git-svn-id: trunk@48226 -
2021-01-20 09:46:44 +00:00
yury
9fd0f94d7c * tregistry2 test: Delete reg.xml and the app config dir.
git-svn-id: trunk@48205 -
2021-01-19 17:10:55 +00:00
yury
a29bfe5505 * Moved the tregistry2.pp test from packages to tests in order it to be run by daily test runs. tregistry2 has been failing for years and nobody has noticed this.
git-svn-id: trunk@48204 -
2021-01-19 16:52:43 +00:00
pierre
f2568e37e4 Add testing for single float type in trndmode.pp
git-svn-id: trunk@48020 -
2021-01-03 22:03:27 +00:00
pierre
57861c934d Check also that SetRoundMode returns correctly previous rounding mode
git-svn-id: trunk@48019 -
2021-01-03 21:55:35 +00:00
pierre
3362abb30c * Set softfloat_rounding_mode indise SetRoundMode function for all CPUs.
* SetRoundMode returns previous rounding mode value for all CPUs.

git-svn-id: trunk@48018 -
2021-01-03 21:44:18 +00:00
svenbarth
c96029ebd5 * Delphi does not allow a generic method to be overloaded by a non generic type of the same name (unlike for generic types and non generic routines); this is probably done to simplify the implementation of implicit specializations of generic methods so we do this as well. For this we change the dummy symbol for generic routines from a typesym to a procsym
+ added tests

Note: what Delphi /does/ allow however is to overload a generic routine with a generic type... go figure. :/ We currently don't allow that

git-svn-id: trunk@48002 -
2021-01-02 23:23:39 +00:00
florian
6866b07266 * simplified test after r47892
git-svn-id: trunk@47893 -
2020-12-29 18:26:20 +00:00