GNOME Bugzilla – Bug 346373
test failures in glib-2.10.3 on NetBSD
Last modified: 2006-12-18 19:33:32 UTC
When doing 'gmake check' on NetBSD-3.99.21/i386, there are the following problems: 1) gmake[3]: Entering directory `/usr/obj/devel/glib2/work.i386/glib-2.10.3/tests/gobject' arithmetic expression: syntax error: " % 256" gmake[3]: *** [check-TESTS] Error 2 This comes from: MALLOC_PERTURB_=$$(($$RANDOM % 256)) in tests/gobject/Makefile.am. /bin/sh on NetBSD doesn't provide $RANDOM. A second occurrence of $$RANDOM is in tests/Makefile.am. Please use a different way to get a random variable. 2) /bin/true: not found PASS: child-test True is a builtin in the shells provided by NetBSD. The "not found" message doesn't seem to have any consequences for the test result. 3) ** ERROR **: file convert-test.c: line 81 (test_one_half): assertion failed: (error && error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE) aborting... [1] Abort trap (core dumped) srcdir=. LIBCHAR... FAIL: convert-test 4) Only a warning: ** (process:15419): WARNING **: g_mkstemp works even if template doesn't end in XXXXXX PASS: file-test 5) GThread-ERROR **: file gthread-posix.c: line 353 (): error 'Cannot allocate memory' during 'pthread_create' aborting... [1] Abort trap (core dumped) srcdir=. LIBCHAR... FAIL: asyncqueue-test same error in: GThread-ERROR **: file gthread-posix.c: line 353 (): error 'Cannot allocate memory' during 'pthread_create' aborting... [1] Abort trap (core dumped) srcdir=. LIBCHAR... FAIL: threadpool-test 6) 2d1 < GTK+ 8a8 > GTK+ Test failed: unexpected error when using g_utf8_collate() on ./collate/collate-1.in FAIL: run-collate-tests.sh If you need further information, please let me know.
2006-12-18 Matthias Clasen <mclasen@redhat.com> * tests/Makefile.am: Don't use $RANDOM if the shell doesn't have it. (#346373, Thomas Klausner)
this fix causes my make check to choke make atomic-test array-test base64-test cxx-test child-test completion-test convert-test date-test dirname-test file-test env-test gio-test hash-test iochannel-test keyfile-test list-test mainloop-test mapping-test markup-escape-test module-test node-test option-test patterntest printf-test queue-test asyncqueue-test qsort-test rand-test relation-test shell-test slist-test slice-test slice-color spawn-test strfunc-test string-test strtod-test strtoll-test thread-test threadpool-test tree-test type-test unicode-caseconv unicode-encoding utf8-validate utf8-pointer uri-test markup-test unicode-collate bookmarkfile-test make[4]: `atomic-test' is up to date. make[4]: `array-test' is up to date. make[4]: `base64-test' is up to date. make[4]: `cxx-test' is up to date. make[4]: `child-test' is up to date. make[4]: `completion-test' is up to date. make[4]: `convert-test' is up to date. make[4]: `date-test' is up to date. make[4]: `dirname-test' is up to date. make[4]: `file-test' is up to date. make[4]: `env-test' is up to date. make[4]: `gio-test' is up to date. make[4]: `hash-test' is up to date. make[4]: `iochannel-test' is up to date. make[4]: `keyfile-test' is up to date. make[4]: `list-test' is up to date. make[4]: `mainloop-test' is up to date. make[4]: `mapping-test' is up to date. make[4]: `markup-escape-test' is up to date. make[4]: `module-test' is up to date. make[4]: `node-test' is up to date. make[4]: `option-test' is up to date. make[4]: `patterntest' is up to date. make[4]: `printf-test' is up to date. make[4]: `queue-test' is up to date. make[4]: `asyncqueue-test' is up to date. make[4]: `qsort-test' is up to date. make[4]: `rand-test' is up to date. make[4]: `relation-test' is up to date. make[4]: `shell-test' is up to date. make[4]: `slist-test' is up to date. make[4]: `slice-test' is up to date. make[4]: `slice-color' is up to date. make[4]: `spawn-test' is up to date. make[4]: `strfunc-test' is up to date. make[4]: `string-test' is up to date. make[4]: `strtod-test' is up to date. make[4]: `strtoll-test' is up to date. make[4]: `thread-test' is up to date. make[4]: `threadpool-test' is up to date. make[4]: `tree-test' is up to date. make[4]: `type-test' is up to date. make[4]: `unicode-caseconv' is up to date. make[4]: `unicode-encoding' is up to date. make[4]: `utf8-validate' is up to date. make[4]: `utf8-pointer' is up to date. make[4]: `uri-test' is up to date. make[4]: `markup-test' is up to date. make[4]: `unicode-collate' is up to date. make[4]: `bookmarkfile-test' is up to date. make check-TESTS /bin/sh: -c: line 1: syntax error near unexpected token `;' /bin/sh: -c: line 1: `failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; srcdir=/Source/glib/glib/tests; export srcdir; list=' atomic-test array-test base64-test cxx-test child-test completion-test convert-test date-test dirname-test file-test env-test gio-test hash-test iochannel-test keyfile-test list-test mainloop-test mapping-test markup-escape-test module-test node-test option-test patterntest printf-test queue-test asyncqueue-test qsort-test rand-test relation-test shell-test slist-test slice-test slice-color spawn-test strfunc-test string-test strtod-test strtoll-test thread-test threadpool-test tree-test type-test unicode-caseconv unicode-encoding utf8-validate utf8-pointer uri-test run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh '; if test -n "$list"; then for tst in $list; do if test -f ./$tst; then dir=./; elif test -f $tst; then dir=; else dir="/Source/glib/glib/tests/"; fi; if srcdir=/Source/glib/glib/tests LIBCHARSET_ALIAS_DIR=../glib/libcharset MALLOC_CHECK_=2 if test "$RANDOM" != "" ; then MALLOC_PERTURB_=$(($RANDOM % 256)); fi ${dir}$tst; then all=`expr $all + 1`; case " " in *$ws$tst$ws*) xpass=`expr $xpass + 1`; failed=`expr $failed + 1`; echo "XPASS: $tst"; ;; *) echo "PASS: $tst"; ;; esac; elif test $? -ne 77; then all=`expr $all + 1`; case " " in *$ws$tst$ws*) xfail=`expr $xfail + 1`; echo "XFAIL: $tst"; ;; *) failed=`expr $failed + 1`; echo "FAIL: $tst"; ;; esac; else skip=`expr $skip + 1`; echo "SKIP: $tst"; fi; done; if test "$failed" -eq 0; then if test "$xfail" -eq 0; then banner="All $all tests passed"; else banner="All $all tests behaved as expected ($xfail expected failures)"; fi; else if test "$xpass" -eq 0; then banner="$failed of $all tests failed"; else banner="$failed of $all tests did not behave as expected ($xpass unexpected passes)"; fi; fi; dashes="$banner"; skipped=""; if test "$skip" -ne 0; then skipped="($skip tests were not run)"; test `echo "$skipped" | wc -c` -le `echo "$banner" | wc -c` || dashes="$skipped"; fi; report=""; if test "$failed" -ne 0 && test -n "http://bugzilla.gnome.org/enter_bug.cgi?product=glib"; then report="Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=glib"; test `echo "$report" | wc -c` -le `echo "$banner" | wc -c` || dashes="$report"; fi; dashes=`echo "$dashes" | sed s/./=/g`; echo "$dashes"; echo "$banner"; test -z "$skipped" || echo "$skipped"; test -z "$report" || echo "$report"; echo "$dashes"; test "$failed" -eq 0; else :; fi' make[4]: *** [check-TESTS] Error 2 GNU bash, version 2.05a.0(1)-release (powerpc-apple-darwin6.0) Copyright 2001 Free Software Foundation, Inc.
I've tried a different fix now. Hope it works better.
yep, works fine now also, 2 test failures ** ERROR **: file /Source/glib/glib/tests/option-test.c: line 399 (arg_test5): assertion failed: (retval) aborting... FAIL: option-test 2d1 < GTK+ 8a8 > GTK+ Test failed: unexpected error when using g_utf8_collate() on /Source/glib/glib/tests/collate/collate-1.in FAIL: run-collate-tests.sh although, they probably don't belong in this bug