Fix GetZoneIdByPidTestMultiple, GrantRevoke 80/39680/3
authorMateusz Malicki <m.malicki2@samsung.com>
Tue, 19 May 2015 16:38:11 +0000 (18:38 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 25 May 2015 12:30:50 +0000 (14:30 +0200)
[Feature]       GetZoneIdByPidTestMultiple, GrantRevoke some times fails
[Cause]         Timeout was too small
[Solution]      Increase timeout
[Verification]  Build, install, run tests

Change-Id: Id191c1a6443e19f729dfc90c9a3c8c34dc4166e3

common/utils/fd-utils.hpp
libs/config/fdstore.hpp
libs/ipc/client.hpp
libs/ipc/internals/processor.hpp
libs/ipc/service.hpp

index 151eb1c..209de2c 100644 (file)
@@ -42,7 +42,7 @@ void close(int fd);
  * @param size size of data to write
  * @param timeoutMS timeout in milliseconds
  */
-void write(int fd, const void* bufferPtr, const size_t size, int timeoutMS = 500);
+void write(int fd, const void* bufferPtr, const size_t size, int timeoutMS = 5000);
 
 /**
  * Read from a file descriptor, throw on error.
@@ -52,7 +52,7 @@ void write(int fd, const void* bufferPtr, const size_t size, int timeoutMS = 500
  * @param size size of the data to read
  * @param timeoutMS timeout in milliseconds
  */
-void read(int fd, void* bufferPtr, const size_t size, int timeoutMS = 500);
+void read(int fd, void* bufferPtr, const size_t size, int timeoutMS = 5000);
 
 /**
  * @return the max number of file descriptors for this process.
index d34ea14..d76fc5f 100644 (file)
@@ -50,7 +50,7 @@ public:
      * @param size size of the buffer
      * @param timeoutMS timeout in milliseconds
      */
-    void write(const void* bufferPtr, const size_t size, const unsigned int timeoutMS = 500);
+    void write(const void* bufferPtr, const size_t size, const unsigned int timeoutMS = 5000);
 
     /**
      * Reads a value of the given type.
@@ -59,7 +59,7 @@ public:
      * @param size size of the buffer
      * @param timeoutMS timeout in milliseconds
      */
-    void read(void* bufferPtr, const size_t size, const unsigned int timeoutMS = 500);
+    void read(void* bufferPtr, const size_t size, const unsigned int timeoutMS = 5000);
 
 private:
     int mFD;
index c76a817..fe3345a 100644 (file)
@@ -125,7 +125,7 @@ public:
     template<typename SentDataType, typename ReceivedDataType>
     std::shared_ptr<ReceivedDataType> callSync(const MethodID methodID,
                                                const std::shared_ptr<SentDataType>& data,
-                                               unsigned int timeoutMS = 500);
+                                               unsigned int timeoutMS = 5000);
 
     /**
      * Asynchronous method call. The return callback will be called on
index b1b0a5f..121978c 100644 (file)
@@ -262,7 +262,7 @@ public:
     std::shared_ptr<ReceivedDataType> callSync(const MethodID methodID,
                                                const PeerID peerID,
                                                const std::shared_ptr<SentDataType>& data,
-                                               unsigned int timeoutMS = 500);
+                                               unsigned int timeoutMS = 5000);
 
     /**
      * Asynchronous method call
index 8f6f62b..5b6297c 100644 (file)
@@ -130,7 +130,7 @@ public:
     std::shared_ptr<ReceivedDataType> callSync(const MethodID methodID,
                                                const PeerID peerID,
                                                const std::shared_ptr<SentDataType>& data,
-                                               unsigned int timeoutMS = 500);
+                                               unsigned int timeoutMS = 5000);
 
     /**
      * Asynchronous method call. The return callback will be called on