Bug 101197

Summary: test_take_convert_ucs2_hex_utf8: assertion failed
Product: ModemManager Reporter: Stuart Cardall <developer>
Component: generalAssignee: ModemManager bug user <modemmanager>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: 1.6   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Stuart Cardall 2017-05-25 23:47:10 UTC
In Alpine Linux we have just started running unit tests on all packages. This error comes from 'make check' & may be related to Alpine's use of musl libc:

TEST: test-charsets... (pid=20085)
  /test_def_chars:                                                     OK
  /test_esc_chars:                                                     OK
  /test_mixed_chars:                                                   OK
  /test_unpack_gsm7:                                                   OK
  /test_unpack_gsm7_7_chars:                                           OK
  /test_unpack_gsm7_all_chars:                                         **
ERROR:test-charsets.c:338:test_take_convert_ucs2_hex_utf8: assertion failed (converted == "T-Mobile"): (NULL == "T-Mobile")
OK
  /test_pack_gsm7:                                                     OK
  /test_pack_gsm7_7_chars:                                             OK
  /test_pack_gsm7_all_chars:                                           OK
  /test_pack_gsm7_24_chars:                                            OK
  /test_pack_gsm7_last_septet_alone:                                   OK
  /test_pack_gsm7_7_chars_offset:                                      OK
  /test_take_convert_ucs2_hex_utf8:                                    FAIL
GTester: last random seed: R02S16d060ead6a73c9a66d5ce773a83f80a
/bin/bash: line 1: 20064 Terminated              G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester --verbose test-modem-helpers test-charsets test-qcdm-serial-port test-at-serial-port test-sms-part-3gpp test-sms-part-cdma test-modem-helpers-qmi
make[4]: *** [Makefile:772: test-nonrecursive] Error 143
make[4]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src/tests'
make[3]: *** [Makefile:637: check-am] Error 2
make[3]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src/tests'
make[2]: *** [Makefile:1630: check-recursive] Error 1
make[2]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src'
make[1]: *** [Makefile:1779: check] Error 2
make[1]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src'
make: *** [Makefile:536: check-recursive] Error 1
Comment 1 Stuart Cardall 2017-05-26 00:49:00 UTC
the next test fails too:

TEST: test-charsets... (pid=90600)
  /test_def_chars:                                                     OK
  /test_esc_chars:                                                     OK
  /test_mixed_chars:                                                   OK
  /test_unpack_gsm7:                                                   OK
  /test_unpack_gsm7_7_chars:                                           **
ERROR:test-charsets.c:350:test_take_convert_ucs2_bad_ascii: assertion failed (converted == "Orange"): (NULL == "Orange")
OK
  /test_unpack_gsm7_all_chars:                                         OK
  /test_pack_gsm7:                                                     OK
  /test_pack_gsm7_7_chars:                                             OK
  /test_pack_gsm7_all_chars:                                           OK
  /test_pack_gsm7_24_chars:                                            OK
  /test_pack_gsm7_last_septet_alone:                                   OK
  /test_pack_gsm7_7_chars_offset:                                      OK
  /test_take_convert_ucs2_bad_ascii:                                   FAIL
GTester: last random seed: R02S490143fe4b08bb06ce5ab32883f785cc
/bin/bash: line 1: 90579 Terminated              G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester --verbose test-modem-helpers test-charsets test-qcdm-serial-port test-at-serial-port test-sms-part-3gpp test-sms-part-cdma test-modem-helpers-qmi
make[4]: *** [Makefile:772: test-nonrecursive] Error 143
make[4]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src/tests'
make[3]: *** [Makefile:637: check-am] Error 2
make[3]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src/tests'
make[2]: *** [Makefile:1630: check-recursive] Error 1
make[2]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src'
make[1]: *** [Makefile:1779: check] Error 2
make[1]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src'
make: *** [Makefile:536: check-recursive] Error 1
Comment 2 Stuart Cardall 2017-05-26 01:00:07 UTC
next failing test:

TEST: test-sms-part-3gpp... (pid=107598)
  /MM/SMS/3GPP/PDU-Parser/pdu1:                                        OK
  /MM/SMS/3GPP/PDU-Parser/pdu2:                                        OK
  /MM/SMS/3GPP/PDU-Parser/pdu3:                                        OK
  /MM/SMS/3GPP/PDU-Parser/pdu3-nonzero-pid:                            OK
  /MM/SMS/3GPP/PDU-Parser/pdu3-mms:                                    OK
  /MM/SMS/3GPP/PDU-Parser/pdu3-natl:                                   OK
  /MM/SMS/3GPP/PDU-Parser/pdu3-8bit:                                   OK
  /MM/SMS/3GPP/PDU-Parser/pdu-dcsf1:                                   OK
  /MM/SMS/3GPP/PDU-Parser/pdu-dcsf-8bit:                               **
ERROR:test-sms-part-3gpp.c:554:common_test_create_pdu: assertion failed (error == NULL): Failed to convert message text to UCS2 (mm_message_error_quark, 304)
OK
  /MM/SMS/3GPP/PDU-Parser/pdu-insufficient-data:                       OK
  /MM/SMS/3GPP/PDU-Parser/pdu-udhi:                                    OK
  /MM/SMS/3GPP/PDU-Parser/pdu-multipart:                               OK
  /MM/SMS/3GPP/PDU-Parser/pdu-stored-by-us:                            OK
  /MM/SMS/3GPP/PDU-Parser/pdu-not-stored:                              OK
  /MM/SMS/3GPP/Address-Encoder/smsc-intl:                              OK
  /MM/SMS/3GPP/Address-Encoder/smsc-unknown:                           OK
  /MM/SMS/3GPP/Address-Encoder/intl:                                   OK
  /MM/SMS/3GPP/Address-Encoder/unknown:                                OK
  /MM/SMS/3GPP/PDU-Creator/UCS2-with-smsc:                             FAIL
GTester: last random seed: R02S9a7e1dabd67491b54d36d070ffcab0a9
/bin/bash: line 1: 107516 Terminated              G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester --verbose test-modem-helpers test-charsets test-qcdm-serial-port test-at-serial-port test-sms-part-3gpp test-sms-part-cdma test-modem-helpers-qmi
make[4]: *** [Makefile:772: test-nonrecursive] Error 143
make[4]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src/tests'
make[3]: *** [Makefile:637: check-am] Error 2
make[3]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src/tests'
make[2]: *** [Makefile:1630: check-recursive] Error 1
make[2]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src'
make[1]: *** [Makefile:1779: check] Error 2
make[1]: Leaving directory '/home/stuart/aports/community/modemmanager/src/ModemManager-1.6.6/src'
make: *** [Makefile:536: check-recursive] Error 1
Comment 3 Bre 2017-08-16 08:08:16 UTC
s[¶⌵6\%<¸∣k°╩◂ǁ◂╥êû
Comment 4 GitLab Migration User 2018-06-10 09:01:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/16.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.