• Home
  • Raw
  • Download

Lines Matching refs:jp

112   JBL_PTR jp;  in jbl_test1_3()  local
113 iwrc rc = jbl_ptr_alloc("/", &jp); in jbl_test1_3()
115 CU_ASSERT_EQUAL(jp->cnt, 1); in jbl_test1_3()
116 CU_ASSERT_TRUE(*jp->n[0] == '\0') in jbl_test1_3()
117 free(jp); in jbl_test1_3()
119 rc = jbl_ptr_alloc("/foo", &jp); in jbl_test1_3()
121 CU_ASSERT_EQUAL(jp->cnt, 1); in jbl_test1_3()
122 CU_ASSERT_FALSE(strcmp(jp->n[0], "foo")); in jbl_test1_3()
123 free(jp); in jbl_test1_3()
125 rc = jbl_ptr_alloc("/foo/bar", &jp); in jbl_test1_3()
127 CU_ASSERT_EQUAL(jp->cnt, 2); in jbl_test1_3()
128 CU_ASSERT_FALSE(strcmp(jp->n[0], "foo")); in jbl_test1_3()
129 CU_ASSERT_FALSE(strcmp(jp->n[1], "bar")); in jbl_test1_3()
130 free(jp); in jbl_test1_3()
132 rc = jbl_ptr_alloc("/foo/bar/0/baz", &jp); in jbl_test1_3()
134 CU_ASSERT_EQUAL(jp->cnt, 4); in jbl_test1_3()
135 CU_ASSERT_FALSE(strcmp(jp->n[0], "foo")); in jbl_test1_3()
136 CU_ASSERT_FALSE(strcmp(jp->n[1], "bar")); in jbl_test1_3()
137 CU_ASSERT_FALSE(strcmp(jp->n[2], "0")); in jbl_test1_3()
138 CU_ASSERT_FALSE(strcmp(jp->n[3], "baz")); in jbl_test1_3()
139 free(jp); in jbl_test1_3()
141 rc = jbl_ptr_alloc("/foo/b~0ar/0/b~1az", &jp); in jbl_test1_3()
143 CU_ASSERT_EQUAL(jp->cnt, 4); in jbl_test1_3()
144 CU_ASSERT_FALSE(strcmp(jp->n[0], "foo")); in jbl_test1_3()
145 CU_ASSERT_FALSE(strcmp(jp->n[1], "b~ar")); in jbl_test1_3()
146 CU_ASSERT_FALSE(strcmp(jp->n[2], "0")); in jbl_test1_3()
147 CU_ASSERT_FALSE(strcmp(jp->n[3], "b/az")); in jbl_test1_3()
148 free(jp); in jbl_test1_3()
150 rc = jbl_ptr_alloc("/foo/", &jp); in jbl_test1_3()
152 free(jp); in jbl_test1_3()
154 rc = jbl_ptr_alloc("//", &jp); in jbl_test1_3()
156 free(jp); in jbl_test1_3()
158 rc = jbl_ptr_alloc("", &jp); in jbl_test1_3()
160 free(jp); in jbl_test1_3()
162 rc = jbl_ptr_alloc("~", &jp); in jbl_test1_3()
164 free(jp); in jbl_test1_3()