1.1 --- a/tests/dstest_pipe_client.cc Thu Feb 16 23:36:52 2023 +0100
1.2 +++ b/tests/dstest_pipe_client.cc Fri Feb 17 18:39:43 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Test pipe operations.
1.6 *
1.7 - * Copyright (C) 2020, 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2020, 2021, 2022, 2023 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -124,8 +124,8 @@
1.13
1.14 int p = reader == reader1 ? 0 : 1;
1.15
1.16 - printf("Pipe #%d notified with conditions:%s%s\n", p + 1, reader->notifications & NOTIFY_PEER_CLOSED ? " closed" : "",
1.17 - reader->notifications & NOTIFY_CONTENT_AVAILABLE ? " content" : "");
1.18 + printf("Pipe #%d notified with conditions:%s%s\n", p + 1, file_notifications(reader) & NOTIFY_PEER_CLOSED ? " closed" : "",
1.19 + file_notifications(reader) & NOTIFY_CONTENT_AVAILABLE ? " content" : "");
1.20
1.21 nread = client_read(reader, buffer, TO_TRANSFER);
1.22
1.23 @@ -140,7 +140,7 @@
1.24 /* Without any more content, a peer closed event should terminate reading
1.25 from the pipe. */
1.26
1.27 - if (reader->notifications & NOTIFY_PEER_CLOSED)
1.28 + if (file_notifications(reader) & NOTIFY_PEER_CLOSED)
1.29 {
1.30 active--;
1.31 if (!active)