commit | d24270321142baead92285e2637f09da71992868 | [log] [tgz] |
---|---|---|
author | Yauheni Kaliuta <yauheni.kaliuta@redhat.com> | Tue Nov 08 22:57:26 2016 +0200 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Tue Nov 08 22:21:13 2016 -0200 |
tree | 50af88aa99553ba4589d65dd7539514daf195cdf | |
parent | cb51a641d6d4c777ed38855b29131b8a1e941175 [diff] |
testsuite: fix test_array_sort pointers inderection The array elements in the tests are strings, what means "char *" in ะก. The comparation funtion takes pointers to the elements, so the arguments become "char **". It means, that strcmp() cannot be used directrly. The patch creates a wrapper on strcmp() which perfoms dereferencing of the "char **" to supply the actual strings to strcmp(), and uses the wrapper as a comparation function for the qsort() call. Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
This is a mirror only. Please see README file for more information.