Changeset 2081


Ignore:
Timestamp:
Jun 26, 2005, 6:05:29 AM (20 years ago)
Author:
bird
Message:

Fixed a coupld of testcase bugs.

Location:
trunk/src/libctests/libc/smoketests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/libc/smoketests/fork-1.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r2080 r2081  
    9595        }
    9696        if (!(i % 100))
     97        {
    9798            printf("fork-1: info: forked %d i=%d s_cChildren=%d\n", pid, i, s_cChildren);
     99            fflush(stdout); /* this is necessary if output is redirected, the child will inherit the buffer elsewise.. */
     100        }
    98101
    99102        /*
  • trunk/src/libctests/libc/smoketests/mbstuff-1.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2080 r2081  
    128128        return 1;
    129129    }
    130     if (cb + 1 != cbMBCS)
    131     {
    132         printf("error: String conversion (to wc) testcase %s, length mismatch cb=%d cbMBCS=%d\n", pszTest, cb, cbMBCS);
     130    if (cb + 1 != cwcFacit)
     131    {
     132        printf("error: String conversion (to wc) testcase %s, length mismatch cb=%d cwcFacit=%d\n", pszTest, cb, cwcFacit);
    133133        return 1;
    134134    }
Note: See TracChangeset for help on using the changeset viewer.