summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_dumprecord_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-02-23 21:41:03 -0800
committerYabin Cui <yabinc@google.com>2016-02-25 10:45:59 -0800
commit6e51bef9aa101307523946df301ca90215d0ee82 (patch)
treeef4f1886fb3b922a5c8f33df2f74aca59bb9bed1 /simpleperf/cmd_dumprecord_test.cpp
parent9e73f5af39c035f25b0ac081e999907865789f9e (diff)
downloadextras-6e51bef9aa101307523946df301ca90215d0ee82.tar.gz
simpleperf: port cmd_report_test to nonlinux.
And fix one build_id bug introduced by previous patch. Bug: 26962895 Change-Id: Ibb8bd6ec77ee862bb01c26342d3b3024468e75b2
Diffstat (limited to 'simpleperf/cmd_dumprecord_test.cpp')
-rw-r--r--simpleperf/cmd_dumprecord_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/simpleperf/cmd_dumprecord_test.cpp b/simpleperf/cmd_dumprecord_test.cpp
index f23ae166..574fb2a2 100644
--- a/simpleperf/cmd_dumprecord_test.cpp
+++ b/simpleperf/cmd_dumprecord_test.cpp
@@ -17,6 +17,7 @@
#include <gtest/gtest.h>
#include "command.h"
+#include "test_util.h"
class DumpRecordCommandTest : public ::testing::Test {
protected:
@@ -32,11 +33,11 @@ class DumpRecordCommandTest : public ::testing::Test {
};
TEST_F(DumpRecordCommandTest, no_options) {
- ASSERT_TRUE(record_cmd->Run({"-a", "sleep", "1"}));
+ ASSERT_TRUE(record_cmd->Run({"-a", "sleep", SLEEP_SEC}));
ASSERT_TRUE(dumprecord_cmd->Run({}));
}
TEST_F(DumpRecordCommandTest, record_file_option) {
- ASSERT_TRUE(record_cmd->Run({"-a", "-o", "perf2.data", "sleep", "1"}));
+ ASSERT_TRUE(record_cmd->Run({"-a", "-o", "perf2.data", "sleep", SLEEP_SEC}));
ASSERT_TRUE(dumprecord_cmd->Run({"perf2.data"}));
}