Merge "simpleperf: fix test record_cmd.duration_option." am: 8cd939bd7a
am: e1e462b9f2
Change-Id: I8e239553d378c5f1c1500551562f72bf5a562ee1
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp
index d62a634..0198fd1 100644
--- a/simpleperf/cmd_record_test.cpp
+++ b/simpleperf/cmd_record_test.cpp
@@ -311,5 +311,6 @@
TemporaryFile tmpfile;
ASSERT_TRUE(RecordCmd()->Run({"--duration", "1.2", "-p",
std::to_string(getpid()), "-o", tmpfile.path}));
- ASSERT_TRUE(RecordCmd()->Run({"--duration", "1", "sleep", "2"}));
+ ASSERT_TRUE(
+ RecordCmd()->Run({"--duration", "1", "-o", tmpfile.path, "sleep", "2"}));
}