From 6b93ad68f324f71d48086627245506d4e5f0bf27 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Tue, 5 Mar 2024 22:48:02 +0100 Subject: [PATCH] Add failing -e test. (nihtest needs enhancements for the date part of the test, but this currently let's trrntzip dump core.) --- regress/CMakeLists.txt | 1 + regress/cli-e.test | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 regress/cli-e.test diff --git a/regress/CMakeLists.txt b/regress/CMakeLists.txt index a9e949d..1e37607 100644 --- a/regress/CMakeLists.txt +++ b/regress/CMakeLists.txt @@ -1,4 +1,5 @@ set(XFAIL_TESTS + cli-e.test sort-dupes.test ) diff --git a/regress/cli-e.test b/regress/cli-e.test new file mode 100644 index 0000000..8078d15 --- /dev/null +++ b/regress/cli-e.test @@ -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 {} +[2024/03/05 - 21:41:30] Zip file "dupe.zip" contains more than one file named "abc" +end-of-inline-data