function "g_qsort_with_data" has two kinds of realization. One calls qsort_r from libglib, the other realize itself. qsort_r from libglib cause sort error.
Created attachment 323 [details] a test program for function g_value_array_sort_with_data which calls qsort_r This test case is from LSB 4.1. Its purpose is check function g_value_array_sort_with_data.
Compile this test program(core-image-lsb-sdk): $ gcc -g `pkg-config --cflags glib-2.0` gobject_value_arrays.c -o gobject -lgobject-2.0
It is no problem for g_qsort_with_data by using the test case from glib. glib has realized the function of "g_qsort_with_data" with two kinds of methods since version 2.28.8(Add calling qsort_r from libc.so). before 2.28.8, glib use the method by itself. type id `24' is invalid in 2.30.2. So this could be a upstream problem for lsb test suite.
Still fail with lsb-test-desktop-t2c-4.1.2-2.i486.rpm, and it marked as "Known Problem"
The test suite is deficiency and has been waived. See details: https://lsbbugs.linuxfoundation.org/show_bug.cgi?id=3412 When you start lsb test through web ui, click 'refresh list' button in 'Custom Tests', it will update problem_db and the test result will show you the test suite is waived. //Hongxu