1 // SPDX-License-Identifier: GPL-2.0 2 #include <test_progs.h> 3 4 #include "lru_bug.skel.h" 5 6 void test_lru_bug(void) 7 { 8 struct lru_bug *skel; 9 int ret; 10 11 skel = lru_bug__open_and_load(); 12 if (!ASSERT_OK_PTR(skel, "lru_bug__open_and_load")) 13 return; 14 ret = lru_bug__attach(skel); 15 if (!ASSERT_OK(ret, "lru_bug__attach")) 16 goto end; 17 usleep(1); 18 ASSERT_OK(skel->data->result, "prealloc_lru_pop doesn't call check_and_init_map_value"); 19 end: 20 lru_bug__destroy(skel); 21 } 22