diff options
Diffstat (limited to 'simpleperf/cmd_stat_test.cpp')
-rw-r--r-- | simpleperf/cmd_stat_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simpleperf/cmd_stat_test.cpp b/simpleperf/cmd_stat_test.cpp index 5aa1e3b5..89e75f81 100644 --- a/simpleperf/cmd_stat_test.cpp +++ b/simpleperf/cmd_stat_test.cpp @@ -19,11 +19,11 @@ #include <android-base/file.h> #include <android-base/stringprintf.h> #include <android-base/test_utils.h> -#include <sys/syscall.h> #include <thread> #include "command.h" +#include "environment.h" #include "get_test_data.h" #include "test_util.h" @@ -159,7 +159,7 @@ TEST(stat_cmd, handle_SIGHUP) { TEST(stat_cmd, stop_when_no_more_targets) { std::atomic<int> tid(0); std::thread thread([&]() { - tid = syscall(__NR_gettid); + tid = gettid(); sleep(1); }); thread.detach(); |