From 01b38b8836ee9f8c30ac6074d11efef08efbd8fa Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Thu, 17 Dec 2020 16:03:10 -0800 Subject: simpleperf: fix tests on windows. The tests fail because Windows doesn't allow deleting opened files. Also avoid using pid_t in BuildIdRecord, which takes 8 bytes on 64-bit Windows. Bug: 175885920 Test: run simpleperf_unit_test. Change-Id: I84f8fe7a59a4324425a39a3a9fd343e7718d8116 --- simpleperf/record.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simpleperf/record.h') diff --git a/simpleperf/record.h b/simpleperf/record.h index fbeec0d3..26a1dbea 100644 --- a/simpleperf/record.h +++ b/simpleperf/record.h @@ -437,7 +437,7 @@ struct BuildIdRecord : public Record { explicit BuildIdRecord(char* p); - BuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id, const std::string& filename); + BuildIdRecord(bool in_kernel, uint32_t pid, const BuildId& build_id, const std::string& filename); protected: void DumpData(size_t indent) const override; -- cgit v1.2.3