Commit Graph

2289 Commits

Author SHA1 Message Date
svenbarth
d1c29e6cb9 * 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 -
(cherry picked from commit 2b3edb2c53)
2024-01-19 11:54:38 +01:00
florian
3060799961 * fixed tests for architectures with FPC_COMP_IS_INT64 defined
git-svn-id: trunk@44222 -
(cherry picked from commit 66aa2e1416)
2023-12-27 17:34:00 +01:00
florian
92fc7edd7e * ensure that the executable path used in the test is absolute
(cherry picked from commit 8028a769f4)
2023-12-27 15:27:45 +01:00
pierre
ac28b5ad05 Remove Unicode $180E (Mongolian Vowel Separator), as it is not anymore a whitespace character
git-svn-id: trunk@40600 -
(cherry picked from commit e9e5b05caa)
2023-12-27 14:38:17 +01:00
pierre
7c40f1f48c Change tstringlistexchange test code to give different error values and check that sort is done properly instead of requiring a given number of exchanges
git-svn-id: trunk@40547 -
(cherry picked from commit 0fafe640c5)
2023-12-27 10:17:28 +01:00
florian
aaf503c85f * fix test for case sensitive and case preserving file systems
git-svn-id: trunk@49183 -
(cherry picked from commit f1e748512b)
2023-12-27 10:11:06 +01:00
ondrej
d01e7ab86a Fix tepoch1 test
git-svn-id: trunk@47297 -
(cherry picked from commit 9b5d2322b6)
2023-12-27 10:10:53 +01:00
svenbarth
2a0d5f0fe4 * ensure that the toString constant is used instead of TObject's ToString method
git-svn-id: trunk@42352 -
(cherry picked from commit 1607e15e48)
2023-12-26 23:59:42 +01:00
pierre
40e5a51937 Try to ix compilation failures in units/fpcunit directory
git-svn-id: trunk@40601 -
(cherry picked from commit 430ec7bbe4)
2023-12-26 23:43:17 +01:00
pierre
8d3ecbd808 * Skip all surrogate values in for loops from low(word) to high(word)
git-svn-id: trunk@40560 -
(cherry picked from commit 0846456ce4)
2023-12-26 23:33:27 +01:00
pierre
f2d559cf92 Add mode objfpc to units/character/tutf32convert test
git-svn-id: trunk@40546 -
(cherry picked from commit bf7af550c8)
2023-12-26 23:15:21 +01:00
Rika Ichinose
72eee6001f Remake AdjustLineBreaks.
This version is correct and supposedly better in other ways (except for a bit of clarity maybe).

(cherry picked from commit 1c4151d82e)

edited to work around changes related to the massive unmergable dotted rtl commits.
2023-12-17 18:05:00 +01:00
florian
bbffe9e26a * allow a range of Low(Longint) to High(DWord) in TryStrToInt, see also issue #39406
* moved test

(cherry picked from commit 435f3a9fe2)
2023-12-17 17:57:41 +01:00
florian
2823485e93 + patch by Rika to implement missing TPointF methods, resolves #40057
+ test by Rika

(cherry picked from commit 69eebe4c0c)
2023-12-16 19:45:49 +01:00
florian
43f3819feb * make statx based Sysutils.FileAge working with relative pathes
+ test

git-svn-id: trunk@48519 -
(cherry picked from commit b08717fef6)
2023-12-16 17:16:57 +01:00
florian
117dce6e78 + initial implementation of path dependent IsFileNameCaseSensitive/IsFileNameCasePreserving functions for darwin
git-svn-id: trunk@49164 -
(cherry picked from commit c1f85ac3a1)
2023-12-16 12:30:20 +01:00
florian
1202d9d492 * statx based Sysutils.FileGetDate with handle fixed
+ test

git-svn-id: trunk@48520 -
(cherry picked from commit 3e453f92fc)
2023-12-16 12:20:47 +01:00
florian
dcde27b8c6 * renamed new syscall wrapper in linux to be consist with the others
git-svn-id: trunk@48479 -
(cherry picked from commit b4a1c27c58)
2023-12-16 12:15:48 +01:00
florian
afccc19a9e * properly check for linux version supporting statx
git-svn-id: trunk@48469 -
(cherry picked from commit 33cd5778cd)
2023-12-16 12:15:36 +01:00
pierre
9ca5ae9039 Add code to test Linux version, try statx syscall only if version is >= to 4.11
git-svn-id: trunk@47850 -
(cherry picked from commit 8b34e11da3)
2023-12-16 12:15:18 +01:00
florian
5ea32418d8 + futimens syscall
* make use of futimens syscall in sysutils unit
  + tests

git-svn-id: trunk@48472 -
(cherry picked from commit b8ab06aae7)
2023-12-16 12:14:02 +01:00
florian
8be1d885e8 + linux.fputimensat which properly uses the _tim64 version if needed and available
+ test

git-svn-id: trunk@48470 -
(cherry picked from commit 0c77536f11)
2023-12-16 12:13:17 +01:00
florian
d0765540c5 * linux: make use of statx in Sysutils.FileAge if available
git-svn-id: trunk@48457 -
(cherry picked from commit f39f8d0f1a)
2023-12-16 12:12:11 +01:00
florian
d4a7e0c8c7 + Linux.fpstatx, resolves #36501
git-svn-id: trunk@43837 -
(cherry picked from commit d425a85f8d)
2023-12-16 11:11:18 +01:00
michael
4a2f6b8fe7 * Patch by Werner Pamler to improve ISO8601 to datetime conversion
git-svn-id: trunk@49624 -
(cherry picked from commit 4fac31d1c7)
2023-12-13 20:59:47 +01:00
michael
7936203fab * Patch from Laco to fix issue #39261
git-svn-id: trunk@49623 -
(cherry picked from commit 573917706f)
2023-12-13 19:05:17 +01:00
michael
f124194c83 * Fix issue ID #38462
git-svn-id: trunk@48580 -
(cherry picked from commit 47be45830c)
2023-12-13 17:51:06 +01:00
florian
3aadfc0802 * subroutines working with an OS dependend time stamp use an int64 now, so the 2038 problem
on unixes can be tackled

git-svn-id: trunk@44010 -
(cherry picked from commit 01302bc47d)
2023-12-12 22:19:17 +01:00
Florian Klämpfl
55d25eea07 * patch by Bart B. to improve DelSpace1, resolves #39465
+ test

(cherry picked from commit 60c26a11ef)
2023-11-27 15:00:44 +01:00
Michaël Van Canneyt
6b9d7f3bf1 * Patch from Bart to remove unneeded test
(cherry picked from commit ff3f183eb2)
2023-11-27 11:30:52 +01:00
Michaël Van Canneyt
9b9ee443f7 * Restore display of exception type. fix issue #39811
(cherry picked from commit ecb4a0abca)
2023-11-27 11:28:56 +01:00
Michaël Van Canneyt
280f507e22 * Patch from Bart. Fix for issue #39797
(cherry picked from commit b2ad1d3efd)
2023-11-27 11:21:24 +01:00
Michaël Van Canneyt
f7dec10c5d * Fix test regressions
(cherry picked from commit 53623d7184)
2023-11-26 22:20:14 +01:00
florian
476dfc097e + forgotten test file added
(cherry picked from commit 3ef7fedfec)
2023-11-26 22:19:30 +01:00
marcoonthegit
25a78a9bbd * fix and test for bug #39884 solving daysbetween when zero date is crossed.
(cherry picked from commit 2291100bbd)
2023-11-26 18:10:13 +01:00
marcoonthegit
cb70f9c47d * applied patch from Alexey for closes #39704
* reviewed checks at start of function to match Delphi in rangecheck errors and other exits
 * test for the above.
2023-11-24 22:53:02 +01:00
Ondrej Pokorny
d261c00571 fcl-image/pasjpeg: handle Exif orientation flag automatically
(cherry picked from commit 05c45486e8)
2023-06-20 13:45:07 +02:00
Pierre Muller
2a33e47277 Add test for mips code generation bug
(cherry picked from commit e1b3c03daf)
2023-06-09 07:53:30 +01:00
yury
7eef017596 * Moved the tregistry2 test back to packages and added more test OS targets.
git-svn-id: trunk@48383 -
(cherry picked from commit 7ffa963127)

# Conflicts:
#	.gitattributes
2021-08-15 13:36:29 +02:00
yury
794c4a3b0e * tregistry2 test: Use cwstring on unices. Perform the test only on Windows and Linux.
git-svn-id: trunk@48263 -
(cherry picked from commit d83e1a33ca)
2021-08-15 13:33:40 +02:00
yury
210830bda5 * Removed usage the Windows unit from the tregistry2 test.
git-svn-id: trunk@48226 -
(cherry picked from commit fe09efbd0e)
2021-08-15 13:33:26 +02:00
yury
bade890df5 * tregistry2 test: Delete reg.xml and the app config dir.
git-svn-id: trunk@48205 -
(cherry picked from commit 9fd0f94d7c)
2021-08-15 13:30:48 +02:00
yury
96710e3168 * 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 -
(cherry picked from commit a29bfe5505)

# Conflicts:
#	.gitattributes
#	packages/fcl-registry/tests/testbasics.pp
2021-08-15 13:29:46 +02:00
svenbarth
66fa732720 Merged revision(s) 47634, 47655 from trunk:
* fix for Mantis #38145: allow overloading of assignment operators that return ShortStrings with a specific size
+ added tests

The following rules for using these operator overloads as *implicit* overloads apply (Delphi compatible):
  - if a found assignment operator returns a default ShortString then that is used
  - if only one assignment operator to a String[x] is found then that is used
  - otherwise the assignment is not possible
The explicit assignment checks for an exact match (and falls back for an implicit assignment). This is not entirely Delphi compatible as Delphi seems to favor the first found symbol in that case, but sometimes also not... :/
........
* with the recent ShortString changes this test is no longer needed as it was added exactly to check the condition I removed, so disable it for 3.2.1 and newer (as I want to merge these changes back to fixes)
........

git-svn-id: branches/fixes_3_2@49055 -
2021-03-26 06:18:40 +00:00
marco
fabc7fb50f --- Merging r48752 into '.':
U    packages/rtl-objpas/src/inc/strutils.pp
A    tests/test/units/strutils/tboyer.pp
--- Recording mergeinfo for merge of r48752 into '.':
 U   .

# revisions: 48752
r48752 | florian | 2021-02-21 14:54:25 +0100 (Sun, 21 Feb 2021) | 2 lines
Changed paths:
   M /trunk/packages/rtl-objpas/src/inc/strutils.pp
   A /trunk/tests/test/units/strutils/tboyer.pp

  * fix by avk for issue #38513
  + test

git-svn-id: branches/fixes_3_2@49050 -
2021-03-25 12:57:35 +00:00
svenbarth
f455d66a75 Merged revision(s) 47794-47795, 47826 from trunk:
* apply patch by Blaise.ru to allow record methods to be assigned to method variables as well (this is Delphi compatible)
+ added test
........
* apply patch by Blaise.ru to allow specializations for the result type of function and method variables
+ added tests
........
* fix for Mantis #38238: when creating a copy of a procdef for a procvar set the methodpointer flag also for methods of records
+ added test
........

git-svn-id: branches/fixes_3_2@48653 -
2021-02-11 21:30:38 +00:00
florian
d758c95e9b -- Zusammenführen von r46778 in ».«:
U    rtl/objpas/sysutils/fmtflt.inc
A    tests/test/units/sysutils/tw37374.pp
-- Aufzeichnung der Informationen für Zusammenführung von r46778 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@48104 -
2021-01-07 21:06:28 +00:00
marco
83f7e7e3dc --- Merging r46853 into '.':
U    rtl/inc/text.inc
--- Recording mergeinfo for merge of r46853 into '.':
 U   .
--- Merging r46864 into '.':
G    rtl/inc/text.inc
--- Recording mergeinfo for merge of r46864 into '.':
 G   .
--- Merging r46946 into '.':
G    rtl/inc/text.inc
A    tests/test/units/system/tseekeof.pp
--- Recording mergeinfo for merge of r46946 into '.':
 G   .
--- Merging r47542 into '.':
U    rtl/go32v2/sysutils.pp
U    rtl/msdos/sysutils.pp
U    rtl/watcom/sysutils.pp
--- Recording mergeinfo for merge of r47542 into '.':
 G   .
--- Merging r47543 into '.':
G    rtl/msdos/sysutils.pp
--- Recording mergeinfo for merge of r47543 into '.':
 G   .
--- Merging r47544 into '.':
G    rtl/go32v2/sysutils.pp
--- Recording mergeinfo for merge of r47544 into '.':
 G   .

# revisions: 46853,46864,46946,47542,47543,47544
r46853 | hajny | 2020-09-12 01:43:32 +0200 (Sat, 12 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/text.inc

  * fix for bug #37716 by Andrey 'Croco' Stolyarov
r46864 | hajny | 2020-09-14 07:30:59 +0200 (Mon, 14 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/text.inc

  * fix for problem with commit 46853
r46946 | hajny | 2020-09-24 21:33:28 +0200 (Thu, 24 Sep 2020) | 1 line
Changed paths:
   M /trunk/rtl/inc/text.inc
   A /trunk/tests/test/units/system/tseekeof.pp

  * simplified version of SeekEof for improved TP/BP/Delphi compatibility by Andrey 'Croco' Stolyarov as fix for #37716, plus a new test for testing the compatibility
r47542 | hajny | 2020-11-24 01:25:20 +0100 (Tue, 24 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/go32v2/sysutils.pp
   M /trunk/rtl/msdos/sysutils.pp
   M /trunk/rtl/watcom/sysutils.pp

  + provided sysbeep for DOS targets
r47543 | hajny | 2020-11-24 01:27:06 +0100 (Tue, 24 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/msdos/sysutils.pp

  * reverted a change not belonging to the previous commit
r47544 | hajny | 2020-11-24 01:29:08 +0100 (Tue, 24 Nov 2020) | 1 line
Changed paths:
   M /trunk/rtl/go32v2/sysutils.pp

  * reverted a change not belonging to the previous commit

git-svn-id: branches/fixes_3_2@47907 -
2020-12-30 14:07:54 +00:00
svenbarth
036c9f7ff2 --- Merging r45365 into '.':
U    compiler/systems/t_embed.pas
--- Recording mergeinfo for merge of r45365 into '.':
 U   .
--- Merging r45707 into '.':
U    compiler/defcmp.pas
A    tests/tbs/tb0675.pp
--- Recording mergeinfo for merge of r45707 into '.':
 G   .
--- Merging r46279 into '.':
U    compiler/pexpr.pas
A    tests/test/tarrconstr8.pp
--- Recording mergeinfo for merge of r46279 into '.':
 G   .
--- Merging r47110 into '.':
U    compiler/symdef.pas
A    tests/tbs/tb0679.pp
A    tests/tbs/tb0680.pp
--- Recording mergeinfo for merge of r47110 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47819 -
2020-12-19 21:21:05 +00:00
svenbarth
c6e377b4a9 --- Merging r45972 into '.':
U    compiler/defcmp.pas
--- Recording mergeinfo for merge of r45972 into '.':
 U   .
--- Merging r47101 into '.':
U    compiler/pexpr.pas
A    tests/webtbs/tw37844.pp
--- Recording mergeinfo for merge of r47101 into '.':
 G   .
--- Merging r47253 into '.':
G    compiler/defcmp.pas
A    tests/webtbs/tw38012.pp
--- Recording mergeinfo for merge of r47253 into '.':
 G   .
--- Merging r47424 into '.':
U    compiler/pdecsub.pas
A    tests/webtbs/tw38083.pp
--- Recording mergeinfo for merge of r47424 into '.':
 G   .
--- Merging r47425 into '.':
U    compiler/nflw.pas
A    tests/webtbs/tw38058.pp
--- Recording mergeinfo for merge of r47425 into '.':
 G   .
--- Merging r47686 into '.':
U    compiler/ncal.pas
A    tests/test/tgenfunc23.pp
--- Recording mergeinfo for merge of r47686 into '.':
 G   .

git-svn-id: branches/fixes_3_2@47803 -
2020-12-17 21:47:29 +00:00