summaryrefslogtreecommitdiff
path: root/avx512-0037785/tests/test/units/sysutils/tfile1.pp
diff options
context:
space:
mode:
Diffstat (limited to 'avx512-0037785/tests/test/units/sysutils/tfile1.pp')
-rw-r--r--avx512-0037785/tests/test/units/sysutils/tfile1.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/avx512-0037785/tests/test/units/sysutils/tfile1.pp b/avx512-0037785/tests/test/units/sysutils/tfile1.pp
index 578976f2c5..ddca3956e6 100644
--- a/avx512-0037785/tests/test/units/sysutils/tfile1.pp
+++ b/avx512-0037785/tests/test/units/sysutils/tfile1.pp
@@ -32,6 +32,19 @@ BEGIN
if FileSetDate('datetest.dat', DateTimeToFileDate(dateTime))<>0 then
do_error(1002);
+ dateTime := IncMonth(Now, -1);
+ Assign(f,'datetest.dat');
+ Rewrite(f);
+ if FileSetDate(filerec(f).handle, DateTimeToFileDate(dateTime))<>0 then
+ do_error(1003);
+ Close(f);
+
+ Assign(f,'datetest.dat');
+ Reset(f);
+ if FileGetDate(filerec(f).handle)<>DateTimeToFileDate(dateTime) then
+ do_error(1004);
+ Close(f);
+
if FileExists('datetest.dat') then
begin
Assign(f,'datetest.dat');