~ubuntu-branches/ubuntu/quantal/libarchive/quantal

« back to all changes in this revision

Viewing changes to tar/test/test_patterns.c

  • Committer: Package Import Robot
  • Author(s): Andres Mejia
  • Date: 2012-02-23 19:29:24 UTC
  • mfrom: (8.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120223192924-73n4iedok5fwgsyr
Tags: 3.0.3-5
* Detect if locales or locales-all is installed for use with test suite.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
                char file_b1[] = "tmp/server/share/fileXX";
123
123
                char file_b2[] = "tmp/server\\share\\fileXX";
124
124
                char file_c[] = "tmp/../fileXX";
 
125
                char file_d[] = "tmp/../../fileXX";
125
126
                char *filex;
126
127
                int xsize;
127
128
 
169
170
                         * \/?\UnC\../file54
170
171
                         */
171
172
                        assertFileNotExists(filex);
172
 
                        filex = file_c;
173
 
                        xsize = sizeof(file_c);
 
173
                        if (r == 6 || r == 26 || r == 43) {
 
174
                                filex = file_d;
 
175
                                xsize = sizeof(file_d);
 
176
                        } else {
 
177
                                filex = file_c;
 
178
                                xsize = sizeof(file_c);
 
179
                        }
174
180
                        filex[xsize-3] = '0' + r / 10;
175
181
                        filex[xsize-2] = '0' + r % 10;
176
182
                        assertFileNotExists(filex);