You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ko...@apache.org on 2023/02/07 11:32:32 UTC

svn commit: r1907502 - /apr/apr/branches/1.7.x/test/testfile.c

Author: kotkov
Date: Tue Feb  7 11:32:32 2023
New Revision: 1907502

URL: http://svn.apache.org/viewvc?rev=1907502&view=rev
Log:
On 1.7.x branch: Following up on r1907495, change the names of files in
testfile.c from .txt to .dat, because testfnmatch currently expects to
see a specific number of .txt files in a directory.

In trunk this was changed in r1888251, and this revision has already been
backported to 1.7.x.  But with r1907495 being backported later, some of the
filenames from the new tests were still using .txt extension and that was
causing testfnmatch to fail.

* test/testfile.c
  (test_gets_empty, test_gets_multiline, test_gets_small_buf,
   test_gets_ungetc, test_gets_buffered_big): Use .dat instead of .txt
   for the filenames.

Modified:
    apr/apr/branches/1.7.x/test/testfile.c

Modified: apr/apr/branches/1.7.x/test/testfile.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/test/testfile.c?rev=1907502&r1=1907501&r2=1907502&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/test/testfile.c (original)
+++ apr/apr/branches/1.7.x/test/testfile.c Tue Feb  7 11:32:32 2023
@@ -470,7 +470,7 @@ static void test_gets_empty(abts_case *t
 {
     apr_status_t rv;
     apr_file_t *f;
-    const char *fname = "data/testgets_empty.txt";
+    const char *fname = "data/testgets_empty.dat";
     char buf[256];
 
     apr_file_remove(fname, p);
@@ -497,7 +497,7 @@ static void test_gets_multiline(abts_cas
 {
     apr_status_t rv;
     apr_file_t *f;
-    const char *fname = "data/testgets_multiline.txt";
+    const char *fname = "data/testgets_multiline.dat";
     char buf[256];
 
     apr_file_remove(fname, p);
@@ -536,7 +536,7 @@ static void test_gets_small_buf(abts_cas
 {
     apr_status_t rv;
     apr_file_t *f;
-    const char *fname = "data/testgets_small_buf.txt";
+    const char *fname = "data/testgets_small_buf.dat";
     char buf[2];
 
     apr_file_remove(fname, p);
@@ -581,7 +581,7 @@ static void test_gets_ungetc(abts_case *
 {
     apr_status_t rv;
     apr_file_t *f;
-    const char *fname = "data/testgets_ungetc.txt";
+    const char *fname = "data/testgets_ungetc.dat";
     char buf[256];
 
     apr_file_remove(fname, p);
@@ -624,7 +624,7 @@ static void test_gets_buffered_big(abts_
 {
     apr_status_t rv;
     apr_file_t *f;
-    const char *fname = "data/testgets_buffered_big.txt";
+    const char *fname = "data/testgets_buffered_big.dat";
     char hugestr[APR_BUFFERSIZE + 2];
     char buf[APR_BUFFERSIZE + 2];