Skip to content

Commit

Permalink
Add failing zipcmp test.
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Oct 13, 2023
1 parent 5ad67b3 commit 0b6ebe6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions regress/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ foreach(FULL_CASE IN LISTS EXTRA_TESTS)
endforeach()

set(XFAIL_TESTS
zipcmp_zip_dir_slash.test
)

foreach(CASE ${XFAIL_TESTS})
Expand Down
17 changes: 17 additions & 0 deletions regress/zipcmp_zip_dir_slash.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# compare zip with directory with trailing slash
features HAVE_FTS_H
program zipcmp
mkdir a
mkdir a/dir-with-file
mkdir a/empty-dir-in-dir
arguments zipcmp_zip_dir.zip a/
file zipcmp_zip_dir.zip zipcmp_zip_dir.zip
return 1
stdout
--- zipcmp_zip_dir.zip
+++ a
- directory '00-empty-dir/'
- file 'dir-with-file/a', size 1, crc e8b7be43
+ directory 'empty-dir-in-dir/'
- directory 'empty-dir/'
end-of-inline-data

0 comments on commit 0b6ebe6

Please sign in to comment.