Skip to content

Commit

Permalink
Merge branch 'lukas/stdlib/fix-zip_SUITE-atime' into maint
Browse files Browse the repository at this point in the history
* lukas/stdlib/fix-zip_SUITE-atime:
  stdlib: Fix zip_SUITE (again)
  • Loading branch information
garazdawi committed Oct 18, 2024
2 parents 6c9e4cf + 2982c3e commit 2f9fdcd
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/stdlib/test/zip_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1456,10 +1456,7 @@ basic_timestamp(Config) ->
{ok, ["testfile.txt"]},
unzip(Config, Archive, [{cwd,ExtractDir}])),

{ok, UnzipFI = #file_info{ atime = UnZAtime,
mtime = UnZMtime,
ctime = UnZCtime
}} =
{ok, UnzipFI } =
file:read_file_info(filename:join(ExtractDir, "testfile.txt"),[raw]),


Expand Down Expand Up @@ -1511,17 +1508,14 @@ extended_timestamp(Config) ->
{ok, ["testfile.txt"]},
unzip(Config, Archive, [{cwd,ExtractDir}])),

{ok, UnzipFI = #file_info{ atime = UnZAtime,
mtime = UnZMtime,
ctime = UnZCtime
}} =
{ok, UnzipFI } =
file:read_file_info(filename:join(ExtractDir, "testfile.txt"),[raw]),

ct:log("extract: ~p",[UnzipFI]),

UnzipMode = un_z64(get_value(unzip, Config)),

assert_time(UnzipMode, UnzipFI, ZMtime ),
assert_timestamp(UnzipMode, UnzipFI, ZMtime ),

ok.

Expand Down

0 comments on commit 2f9fdcd

Please sign in to comment.