summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshingil.kang <shingil.kang@samsung.com>2014-08-01 15:59:07 +0900
committershingil.kang <shingil.kang@samsung.com>2014-08-01 15:59:07 +0900
commit7952c1f152209e053b9d868602ce4ca9aca9c4d2 (patch)
tree27f4b8655297566d94b8ae93135c5e74d6ea6e15
parent96debef6d561e84f9e5483c54cab2eac1df1365d (diff)
downloadcommon-eplugin-7952c1f152209e053b9d868602ce4ca9aca9c4d2.tar.gz
common-eplugin-7952c1f152209e053b9d868602ce4ca9aca9c4d2.tar.bz2
common-eplugin-7952c1f152209e053b9d868602ce4ca9aca9c4d2.zip
TEST: Fixed a bug where the full output of process is not shown though process is terminated.
Change-Id: I8eba3a22d83d5ce3e1cc1a975b0e274545e50a9d Signed-off-by: shingil.kang <shingil.kang@samsung.com>
-rw-r--r--org.tizen.common/test/src/org/tizen/common/Shell.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/org.tizen.common/test/src/org/tizen/common/Shell.java b/org.tizen.common/test/src/org/tizen/common/Shell.java
index 13e47d9b6..972c7ec8f 100644
--- a/org.tizen.common/test/src/org/tizen/common/Shell.java
+++ b/org.tizen.common/test/src/org/tizen/common/Shell.java
@@ -228,11 +228,17 @@ implements IShell
{
trySleep( 200 );
}
-
+
if( !in.isState(ServerState.Terminated) && !waitForFin) {
return instance;
}
-
+
+ // wait for result buffer being fully filled.
+ while(!in.isState(ServerState.Terminated ))
+ {
+ trySleep (200);
+ }
+
String result = "";
if(standardError) {
result = error.getResult();