diff options
Diffstat (limited to 'libsync/tests')
-rw-r--r-- | libsync/tests/sync_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsync/tests/sync_test.cpp b/libsync/tests/sync_test.cpp index 55cd68773..2c409dc27 100644 --- a/libsync/tests/sync_test.cpp +++ b/libsync/tests/sync_test.cpp | |||
@@ -50,7 +50,7 @@ public: | |||
50 | bool isValid() const { | 50 | bool isValid() const { |
51 | if (m_fdInitialized) { | 51 | if (m_fdInitialized) { |
52 | int status = fcntl(m_fd, F_GETFD, 0); | 52 | int status = fcntl(m_fd, F_GETFD, 0); |
53 | if (status == 0) | 53 | if (status >= 0) |
54 | return true; | 54 | return true; |
55 | else | 55 | else |
56 | return false; | 56 | return false; |
@@ -92,7 +92,7 @@ public: | |||
92 | bool isValid() const { | 92 | bool isValid() const { |
93 | if (m_fdInitialized) { | 93 | if (m_fdInitialized) { |
94 | int status = fcntl(m_fd, F_GETFD, 0); | 94 | int status = fcntl(m_fd, F_GETFD, 0); |
95 | if (status == 0) | 95 | if (status >= 0) |
96 | return true; | 96 | return true; |
97 | else | 97 | else |
98 | return false; | 98 | return false; |