Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=18489 test_116, test_118k cleanup
[fs/lustre-release.git]
/
lustre
/
tests
/
flocks_test.c
diff --git
a/lustre/tests/flocks_test.c
b/lustre/tests/flocks_test.c
index
97890d8
..
f3feac6
100644
(file)
--- a/
lustre/tests/flocks_test.c
+++ b/
lustre/tests/flocks_test.c
@@
-240,7
+240,8
@@
int t2(int argc, char* argv[])
}
t_fcntl(fd, F_SETFL, O_APPEND);
- if (!(rc = t_fcntl(fd, F_GETFL)) & O_APPEND) {
+ rc = t_fcntl(fd, F_GETFL);
+ if ((rc & O_APPEND) == 0) {
fprintf(stderr, "error get flag: ret %x\n", rc);
return EXIT_FAILURE;
}