From fd447a6efea84d7215ab471bf04284f060e9e3c3 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 12 Apr 2018 08:25:45 +0200 Subject: Fix dead stores. Values were stored but never read. Limit scope. --- src/test/util_tests.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test') diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index d41c43a795..b082f0f2ab 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -950,6 +950,7 @@ static void TestOtherProcess(fs::path dirname, std::string lockname, int fd) ReleaseDirectoryLocks(); ch = true; // Always succeeds rv = write(fd, &ch, 1); + assert(rv == 1); break; case ExitCommand: close(fd); -- cgit v1.2.3