1.1 --- a/tests/dstest_file_client.cc Thu Feb 16 23:36:52 2023 +0100
1.2 +++ b/tests/dstest_file_client.cc Fri Feb 17 18:39:43 2023 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Test file 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 @@ -97,8 +97,8 @@
1.13 }
1.14
1.15 printf("File %s notified with conditions:%s%s\n", creator ? "creator" : "follower",
1.16 - file->notifications & NOTIFY_PEER_CLOSED ? " closed" : "",
1.17 - file->notifications & NOTIFY_CONTENT_AVAILABLE ? " content" : "");
1.18 + file_notifications(file) & NOTIFY_PEER_CLOSED ? " closed" : "",
1.19 + file_notifications(file) & NOTIFY_CONTENT_AVAILABLE ? " content" : "");
1.20
1.21 /* Attempt to read. */
1.22
1.23 @@ -120,7 +120,7 @@
1.24 /* Without any more content, a peer closed event should terminate reading
1.25 from the file. */
1.26
1.27 - if (file->notifications & NOTIFY_PEER_CLOSED)
1.28 + if (file_notifications(file) & NOTIFY_PEER_CLOSED)
1.29 break;
1.30
1.31 /* Otherwise, write some data to the file for the other party. */