]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf test dso-data: Correctly free test file in read test
authorIan Rogers <irogers@google.com>
Tue, 18 Mar 2025 04:31:51 +0000 (21:31 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 18 Mar 2025 05:07:18 +0000 (22:07 -0700)
commitca2182097e5ba88cd8f15871721026fc90ac0870
tree474b195d0b90a6469791295ca3ba5701a4987701
parent5ac22c35aa8519f1fb5522fb3aff915f28a9365e
perf test dso-data: Correctly free test file in read test

The DSO data read test opens a file but as dsos__exit is used the test
file isn't closed. This causes the subsequent subtests in don't fork
(-F) mode to fail as one more than expected file descriptor is open.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250318043151.137973-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/dso-data.c