From 0f78803c8927388593bbb8492fa1f541f24fb73e Mon Sep 17 00:00:00 2001 From: Pierre Pebay Date: Thu, 12 Dec 2024 16:28:47 +0100 Subject: [PATCH] #2302: Remove randomly failing test --- tests/unit/metrics/test_perf_data.cc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/unit/metrics/test_perf_data.cc b/tests/unit/metrics/test_perf_data.cc index 8ac952fae3..655b0ec345 100644 --- a/tests/unit/metrics/test_perf_data.cc +++ b/tests/unit/metrics/test_perf_data.cc @@ -116,26 +116,6 @@ TEST_F(TestPerfData, RepeatedStartStop) { } } -TEST_F(TestPerfData, GetTaskMeasurements) { - setenv("VT_EVENTS", "instructions", 1); - - vt::metrics::PerfData perf_data; - perf_data.startTaskMeasurement(); - - double p; - p = pi(1000); - fmt::print("pi: {}\n", p); // print to avoid being optimized out - - perf_data.stopTaskMeasurement(); - - auto measurements = perf_data.getTaskMeasurements(); - - ASSERT_NE(measurements.find("instructions"), measurements.end()) - << "'instructions' should be in the measurement results."; - EXPECT_GT(measurements["instructions"], 0) - << "'instructions' counter should record positive values."; -} - TEST_F(TestPerfData, StartupFunction) { setenv("VT_EVENTS", "instructions", 1);