"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.5.2/regress/name_locate.test" (12 Mar 2019, 1690 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 # various tests for zip_name_locate
    2 args test.zip  name_locate nosuchfile 0  name_locate test 0  name_locate "" 0  name_locate TeSt 0  name_locate TeSt C  name_locate testdir/test2 0  name_locate tesTdir/tESt2 C  name_locate testdir/test2 d  name_locate tesTdir/tESt2 dC  name_locate test2 0  name_locate test2 d  name_locate TeST2 dC  delete 0  name_locate test 0  name_locate test u  add new teststring  name_locate new 0  name_locate new u  add "" teststring  name_locate "" 0  unchange_all  name_locate test 0  name_locate new 0
    3 stderr can't find entry with name 'nosuchfile' using flags '0'
    4 stdout name 'test' using flags '0' found at index 0
    5 stderr can't find entry with name '' using flags '0'
    6 stderr can't find entry with name 'TeSt' using flags '0'
    7 stdout name 'TeSt' using flags 'C' found at index 0
    8 stdout name 'testdir/test2' using flags '0' found at index 2
    9 stdout name 'tesTdir/tESt2' using flags 'C' found at index 2
   10 stderr can't find entry with name 'testdir/test2' using flags 'd'
   11 stderr can't find entry with name 'tesTdir/tESt2' using flags 'dC'
   12 stderr can't find entry with name 'test2' using flags '0'
   13 stdout name 'test2' using flags 'd' found at index 2
   14 stdout name 'TeST2' using flags 'dC' found at index 2
   15 # delete 0
   16 stderr can't find entry with name 'test' using flags '0'
   17 stdout name 'test' using flags 'u' found at index 0
   18 # add "new"
   19 stdout name 'new' using flags '0' found at index 3
   20 stderr can't find entry with name 'new' using flags 'u'
   21 # add ""
   22 stdout name '' using flags '0' found at index 4
   23 # unchange all
   24 stdout name 'test' using flags '0' found at index 0
   25 stderr can't find entry with name 'new' using flags '0'
   26 return 0
   27 file test.zip test.zip test.zip