Lines Matching refs:exp_result
57 int exp_result) in check_result() argument
60 if ((exp_result == 0 && result != 0) in check_result()
61 || (exp_result < 0 && result >= 0) in check_result()
62 || (exp_result > 0 && result <= 0)) in check_result()
65 result, exp_result); in check_result()
75 int exp_result) in do_one_test() argument
77 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test()
83 int exp_result) in do_test() argument
111 s2[len + 1] = 24 + exp_result; in do_test()
113 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test()
114 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test()
115 s1[len - 1] += exp_result; in do_test()
116 else if ((s1[len - 1] == 'Z' + 1 && exp_result == 1) in do_test()
117 || (s1[len - 1] == 'A' - 1 && exp_result == -1)) in do_test()
118 s1[len - 1] = tolower (s2[len - 1]) + exp_result; in do_test()
120 s2[len - 1] -= exp_result; in do_test()
123 if (tolower (s1[len - 1]) - tolower (s2[len - 1]) != exp_result) in do_test()
125 if (exp_result == -1) in do_test()
130 else if (exp_result == 0) in do_test()
140 do_one_test (impl, s1, s2, n, exp_result); in do_test()
147 int exp_result; in do_page_tests() local
172 exp_result = (off1 == off2) in do_page_tests()
180 exp_result); in do_page_tests()
285 int exp_result; in bz12205() local
291 exp_result = simple_strncasecmp (s1, s2, n); in bz12205()
293 check_result (impl, s1, s2, n, exp_result); in bz12205()