Lines Matching full:maps
15 struct maps *maps; in test__thread_maps_share() local
19 struct maps *other_maps; in test__thread_maps_share()
24 * maintain maps info (struct maps). in test__thread_maps_share()
45 maps = leader->maps; in test__thread_maps_share()
46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 4); in test__thread_maps_share()
48 /* test the maps pointer is shared */ in test__thread_maps_share()
49 TEST_ASSERT_VAL("maps don't match", maps == t1->maps); in test__thread_maps_share()
50 TEST_ASSERT_VAL("maps don't match", maps == t2->maps); in test__thread_maps_share()
51 TEST_ASSERT_VAL("maps don't match", maps == t3->maps); in test__thread_maps_share()
55 * It should have shared maps with no change in in test__thread_maps_share()
73 other_maps = other->maps; in test__thread_maps_share()
76 TEST_ASSERT_VAL("maps don't match", other_maps == other_leader->maps); in test__thread_maps_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 3); in test__thread_maps_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 2); in test__thread_maps_share()
86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 1); in test__thread_maps_share()
100 DEFINE_SUITE("Share thread maps", thread_maps_share);