"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.5.2/regress/add_from_file_duplicate.test" (12 Mar 2019, 277 Bytes) of package /linux/misc/libzip-1.5.2.tar.xz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # add already existing file to zip, making duplicate names
    2 return 1
    3 args -- testfile.zip   add_file testfile.txt testfile.txt 0 -1
    4 file testfile.txt testfile.txt testfile.txt
    5 file testfile.zip testfile.zip testfile.zip
    6 stderr can't add file 'testfile.txt': File already exists