Changeset 1680 for zzuf


Ignore:
Timestamp:
Jan 17, 2007, 8:21:40 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fix testsuite by printing MD5 hashes to stdout.
Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/doc/zzuf.1

    r1678 r1680  
    106106.TP
    107107\fB\-m\fR, \fB\-\-md5\fR
    108 Instead of displaying the program's standard output, just print the MD5 digest
    109 of that output. The standard error channel is left untouched.
     108Instead of displaying the program's \fIstandard output\fR, just print its MD5
     109digest to \fBzzuf\fR's standard output. The standard error channel is left
     110untouched.
    110111.TP
    111112\fB\-M\fR, \fB\-\-max-memory\fR=\fImegabytes\fR
  • zzuf/trunk/src/zzuf.c

    r1672 r1680  
    382382    {
    383383        _zz_md5_fini(md5sum, ctx);
    384         fprintf(stderr, "zzuf[s=%i,r=%g]: %.02x%.02x%.02x%.02x%.02x"
     384        fprintf(stdout, "zzuf[s=%i,r=%g]: %.02x%.02x%.02x%.02x%.02x"
    385385                "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x\n",
    386386                seed, minratio, md5sum[0], md5sum[1], md5sum[2], md5sum[3],
     
    388388                md5sum[8], md5sum[9], md5sum[10], md5sum[11],
    389389                md5sum[12], md5sum[13], md5sum[14], md5sum[15]);
     390        fflush(stdout);
    390391    }
    391392
     
    639640        {
    640641            _zz_md5_fini(md5sum, child_list[i].ctx);
    641             fprintf(stderr, "zzuf[s=%i,r=%g]: %.02x%.02x%.02x%.02x%.02x"
     642            fprintf(stdout, "zzuf[s=%i,r=%g]: %.02x%.02x%.02x%.02x%.02x"
    642643                    "%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x%.02x\n",
    643644                    child_list[i].seed, child_list[i].ratio, md5sum[0],
     
    645646                    md5sum[6], md5sum[7], md5sum[8], md5sum[9], md5sum[10],
    646647                    md5sum[11], md5sum[12], md5sum[13], md5sum[14], md5sum[15]);
     648            fflush(stdout);
    647649        }
    648650        child_list[i].status = STATUS_FREE;
Note: See TracChangeset for help on using the changeset viewer.