Merge pull request #89 from DDNStorage/fixwritecheck

Make write verification work even without read test
master
Glenn K. Lockwood 2018-10-06 09:03:32 -07:00 committed by GitHub
commit 9f56d8b8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -88,9 +88,8 @@ static void CheckRunSettings(IOR_test_t *tests)
* (We assume int-valued params are exclusively 0 or 1.)
*/
if ((params->openFlags & IOR_RDWR)
&& ((params->readFile | params->checkRead)
^ (params->writeFile | params->checkWrite))
&& (params->openFlags & IOR_RDWR)) {
&& ((params->readFile | params->checkRead | params->checkWrite)
^ params->writeFile)) {
params->openFlags &= ~(IOR_RDWR);
if (params->readFile | params->checkRead) {
@ -100,7 +99,6 @@ static void CheckRunSettings(IOR_test_t *tests)
else
params->openFlags |= IOR_WRONLY;
}
}
}