# HG changeset patch # User Paul Boddie # Date 1628119880 -7200 # Node ID aa09cdd2a3bfeaac2c3a27be61b4e2f0f1ed1555 # Parent d1490d96fd5860122534e4904ad5e03a5f4809a6 Removed the superfluous flush operation and fixed pipe numbering in messages. diff -r d1490d96fd58 -r aa09cdd2a3bf tests/dstest_pipe_client.cc --- a/tests/dstest_pipe_client.cc Thu Aug 05 01:30:52 2021 +0200 +++ b/tests/dstest_pipe_client.cc Thu Aug 05 01:31:20 2021 +0200 @@ -65,8 +65,6 @@ /* Flush to make the final output available. */ - client_flush(writer); - client_close(writer); } @@ -111,8 +109,8 @@ int p = reader == reader1 ? 0 : 1; - printf("Pipe #%d notified with conditions:%s%s\n", p, reader->notifications & NOTIFY_PEER_CLOSED ? " closed" : "", - reader->notifications & NOTIFY_CONTENT_AVAILABLE ? " content" : ""); + printf("Pipe #%d notified with conditions:%s%s\n", p + 1, reader->notifications & NOTIFY_PEER_CLOSED ? " closed" : "", + reader->notifications & NOTIFY_CONTENT_AVAILABLE ? " content" : ""); nread = client_read(reader, buffer, size);