Lines Matching refs:fail_unless
34 fail_unless(p, "pointer to free may not be NULL"); in test_free()
63 fail_unless(!bufref.ptr, "Initial reference must be NULL");
64 fail_unless(!bufref.len, "Initial length must be NULL");
65 fail_unless(!bufref.dtor, "Destructor must be NULL");
75 fail_unless((char *) bufref.ptr == buffer, "Referenced data badly set");
76 fail_unless(bufref.len == 13, "Data size badly set");
77 fail_unless(bufref.dtor == test_free, "Destructor badly set");
83 fail_unless((char *) Curl_bufref_ptr(&bufref) == buffer,
90 fail_unless(Curl_bufref_len(&bufref) == 13, "Wrong data size returned");
98 fail_unless(freecount == 1, "Destructor not called");
99 fail_unless((char *) bufref.ptr != buffer, "Returned pointer not set");
101 fail_unless(buffer, "Allocated pointer is NULL");
102 fail_unless(bufref.len == 3, "Wrong data size stored");
103 fail_unless(!buffer[3], "Duplicated data should have been truncated");
104 fail_unless(!strcmp(buffer, "166"), "Bad duplicated data");
111 fail_unless(freecount == 1, "Wrong destructor called");
112 fail_unless(!bufref.ptr, "Initial reference must be NULL");
113 fail_unless(!bufref.len, "Initial length must be NULL");
114 fail_unless(!bufref.dtor, "Destructor must be NULL");