Skip to content

Commit

Permalink
Add failing -e test.
Browse files Browse the repository at this point in the history
(nihtest needs enhancements for the date part of the test, but this
currently let's trrntzip dump core.)
  • Loading branch information
0-wiz-0 committed Mar 5, 2024
1 parent 4a3f758 commit 6b93ad6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions regress/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set(XFAIL_TESTS
cli-e.test
sort-dupes.test
)

Expand Down
15 changes: 15 additions & 0 deletions regress/cli-e.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description test -e: write error log to file
return 0
arguments -eerror.log.txt -l dupe.zip
file dupe.zip dupe.zip dupe.zip
stdout
Rezipping - dupe.zip
--------------------------------------------------
Adding - abc (4 bytes)...Done
end-of-inline-data
stderr
Zip file "dupe.zip" contains more than one file named "abc"
end-of-inline-data
file error.log.txt {} <inline>
[2024/03/05 - 21:41:30] Zip file "dupe.zip" contains more than one file named "abc"
end-of-inline-data

0 comments on commit 6b93ad6

Please sign in to comment.