YiFei Zhu
1e1fe2bd87
selftests/bpf: Relax time_tai test for equal timestamps in tai_forward
...
[ Upstream commit e1ba7f64b192f083b4423644be03bb9e3dc8ae84 ]
We're observing test flakiness on an arm64 platform which might not
have timestamps as precise as x86. The test log looks like:
test_time_tai:PASS:tai_open 0 nsec
test_time_tai:PASS:test_run 0 nsec
test_time_tai:PASS:tai_ts1 0 nsec
test_time_tai:PASS:tai_ts2 0 nsec
test_time_tai:FAIL:tai_forward unexpected tai_forward: actual 1702348135471494160 <= expected 1702348135471494160
test_time_tai:PASS:tai_gettime 0 nsec
test_time_tai:PASS:tai_future_ts1 0 nsec
test_time_tai:PASS:tai_future_ts2 0 nsec
test_time_tai:PASS:tai_range_ts1 0 nsec
test_time_tai:PASS:tai_range_ts2 0 nsec
#199 time_tai:FAIL
This patch changes ASSERT_GT to ASSERT_GE in the tai_forward assertion
so that equal timestamps are permitted.
Fixes: 64e15820b987 ("selftests/bpf: Add BPF-helper test for CLOCK_TAI access")
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231212182911.3784108-1-zhuyifei@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:25 -08:00
..
2023-12-08 08:52:20 +01:00
2024-01-10 17:16:54 +01:00
2023-10-19 22:33:58 -03:00
2023-08-08 15:43:03 -06:00
2023-07-24 10:29:52 -04:00
2023-11-20 11:59:18 +01:00
2023-12-03 07:33:02 +01:00
2023-11-20 11:59:26 +01:00
2024-01-25 15:35:19 -08:00
2023-11-20 11:59:29 +01:00
2023-09-05 10:13:45 -07:00
2023-10-13 17:27:27 -07:00
2023-12-20 17:01:51 +01:00
2023-12-13 18:45:34 +01:00
2023-12-03 07:33:04 +01:00
2023-08-03 16:59:40 -03:00
2024-01-25 15:35:25 -08:00
2023-11-20 11:59:29 +01:00
2023-10-16 05:32:23 -04:00
2023-08-07 15:57:25 -10:00