summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-02-15 22:53:12 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-02-15 22:53:12 +0000
commitc9af49c26ad3f0f27f9494a107511323427dee29 (patch)
tree2b8b91a242348931479c966a48a1d0c70536442d
parentc95e87aa33a21031719ffa5801136f9f79f327bc (diff)
parent1248532bf6a4052b4c4b8c12449a32ab67bf97ab (diff)
downloadextras-c9af49c26ad3f0f27f9494a107511323427dee29.tar.gz
Merge "simpleperf: fix cmd_debug_unwind tests." am: 01b1cb727c
am: 1248532bf6 Change-Id: I61d113a556322b8d430218b04e2e9ea5c4b4c8ec
-rw-r--r--simpleperf/cmd_debug_unwind_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/cmd_debug_unwind_test.cpp b/simpleperf/cmd_debug_unwind_test.cpp
index 8bf93d32..153adb75 100644
--- a/simpleperf/cmd_debug_unwind_test.cpp
+++ b/simpleperf/cmd_debug_unwind_test.cpp
@@ -45,6 +45,7 @@ class CaptureStdout {
}
bool Start() {
+ fflush(stdout);
old_stdout_ = dup(STDOUT_FILENO);
if (old_stdout_ == -1) {
return false;
@@ -58,6 +59,7 @@ class CaptureStdout {
}
std::string Finish() {
+ fflush(stdout);
started_ = false;
dup2(old_stdout_, STDOUT_FILENO);
close(old_stdout_);