Skip to content

Commit

Permalink
#2302: Remove randomly failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Dec 12, 2024
1 parent 585e85a commit 0f78803
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/unit/metrics/test_perf_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0f78803

Please sign in to comment.