Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396367 - dev-java/junit-4.10 fails tests
Summary: dev-java/junit-4.10 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-12-28 22:43 UTC by Xake
Modified: 2011-12-30 12:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against ebuild to include all needed classes in ejavac command (junit-test-ebuild.patch,617 bytes, patch)
2011-12-28 22:43 UTC, Xake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2011-12-28 22:43:55 UTC
Created attachment 297259 [details, diff]
Patch against ebuild to include all needed classes in ejavac command

Quickly fixed, patch attached.

Error message:

>>> Source compiled.
junit/tests/runner/ResultTest.java:13: package org.junit.tests.running.methods does not exist
import org.junit.tests.running.methods.AnnotationTest;
                                      ^
junit/tests/runner/ResultTest.java:19: package AnnotationTest does not exist
		Result result = runner.run(AnnotationTest.FailureTest.class);
		                                         ^
2 errors
 * ERROR: dev-java/junit-4.10 failed (test phase):
 *   ejavac failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_test
 *   environment, line 4132:  Called ejavac '-classpath' '/usr/share/hamcrest-core/lib/hamcrest-core.jar:/var/tmp/portage/dev-java/junit-4.10/work/junit4.10/junit4.10/junit-dep-4.10.jar' '-d' 'classes' 'junit/tests/package-info.java' 'junit/tests/WasRun.java' 'junit/tests/AllTests.java' 'junit/tests/runner/package-info.java' 'junit/tests/runner/TextRunnerTest.java' 'junit/tests/runner/TextRunnerSingleMethodTest.java' 'junit/tests/runner/TextFeedbackTest.java' 'junit/tests/runner/StackFilterTest.java' 'junit/tests/runner/ResultTest.java' 'junit/tests/runner/BaseTestRunnerTest.java' 'junit/tests/runner/AllTests.java' 'junit/tests/framework/package-info.java' 'junit/tests/framework/ThreeTestCases.java' 'junit/tests/framework/TestListenerTest.java' 'junit/tests/framework/TestImplementorTest.java' 'junit/tests/framework/TestCaseTest.java' 'junit/tests/framework/SuiteTest.java' 'junit/tests/framework/Success.java' 'junit/tests/framework/OverrideTestCase.java' 'junit/tests/framework/OneTestCase.java' 'junit/tests/framework/NotVoidTestCase.java' 'junit/tests/framework/NotPublicTestCase.java' 'junit/tests/framework/NoTestCases.java' 'junit/tests/framework/NoTestCaseClass.java' 'junit/tests/framework/NoArgTestCaseTest.java' 'junit/tests/framework/InheritedTestCase.java' 'junit/tests/framework/FloatAssertTest.java' 'junit/tests/framework/Failure.java' 'junit/tests/framework/DoublePrecisionAssertTest.java' 'junit/tests/framework/ComparisonFailureTest.java' 'junit/tests/framework/ComparisonCompactorTest.java' 'junit/tests/framework/AssertionFailedErrorTest.java' 'junit/tests/framework/AssertTest.java' 'junit/tests/framework/AllTests.java' 'junit/tests/extensions/package-info.java' 'junit/tests/extensions/RepeatedTestTest.java' 'junit/tests/extensions/ExtensionTest.java' 'junit/tests/extensions/AllTests.java' 'junit/tests/extensions/ActiveTestTest.java'
 *   environment, line  828:  Called die


emerge info:
Portage 2.2.0_alpha83 (hardened/linux/amd64, gcc-4.5.3, glibc-2.14.1-r1, 3.1.5-gentoo x86_64)
=================================================================
System uname: Linux-3.1.5-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Wed, 28 Dec 2011 00:30:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo gamerlay-stable x11 Mine xake-overlay
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb -mtune=native"
DISTDIR="/var/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fail-clean fixlafiles metadata-transfer news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf-8"
LC_ALL="C"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--warn-once,--hash-style=gnu"
LINGUAS="sv en"
MAKEOPTS="-j16 -l15"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/overlays/layman/gamerlay /var/overlays/layman/x11 /var/overlays/mine /var/overlays/layman/xake-overlay"
SYNC="rsync://liten.localdomain/gentoo-portage"
USE="10bit X a52 aac acl acpi action_modeswitch aio alsa amd64 amr amrnb amrwb apng applet archive aria2 ass asyncns autoipd avahi bash-completion bluetooth branding btrfs bzip2 cairo caps ccache cdaudio cdda cdr cleartype cli clutter colord connection-sharing consolekit coverart cracklib crypt cups cxx dbus device-mapper devicekit devkit dhcpcd digitalradio djvu dri dts dvd dvdr dvi edd eds enca encode equalizer eselect evo exif fat fbcondecor ffmpeg fftw flac fluidsynth fontconfig fuse gcrypt gdbm gdm gdu geoip gif gimp glib gmp gnome gnome-keyring gnome-online-accounts gpg gphoto2 gpm grammar graphite grilo gsf gsm gstreamer gtk gtk3 gtkstyle gudev hardened hires-icons hpn hwdb ical iconv iconvacl icq icu id3tag idn ieee1394 iptc jabber jack java6 jingle jit jpeg jpeg2k justify kate kerberos keymap kvm lcms libffi libkms libnotify libsamplerate llvm lm_sensors logrotate lto lvm lzma lzo mad map maps math matroska md mdadm midi mms mmx mmxext mng moonlight mp2 mp3 mpeg mpfr mpi msn mtp mudflap multilib musepack musicbrainz natspec nautilus ncurses network-cron networkmanager nfs nls nntp nptl nptlonly ntfs ntfsprogs numa nut ocr offensive ogg openal opencore-amr opengl openmp openvg ots pam pango parted pax_kernel pcre pdf pdfimport pgo pidgin playlist png policykit pppd pulseaudio qt3support quicktime quvi raw readline realtime romio rrdcgi rtmp samba scanner schroedinger seed sendto sensord session smp sms socialweb soundtouch speex spell spice sse sse2 sse3 ssh ssl ssse3 startup-notification subversion svg sysfs tcpd tex theora thesaurus threads tiff totem tracker truetype udev unicode upnp urandom usb userlocales utp vala vcd vdpau vhook videos vim-syntax virt-network vorbis webgl webkit wmf x264 xattr xcb xcomposite xinerama xml xmp xmpp xorg xps xrandr xscreensaver xulrunner xv xvfb xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="syslog btrfs caps biosdevname" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv en" NETBEANS_MODULES="cnd profiler dlight harness ide java websvccommon apisupport nb" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="net niash snapscan" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Miroslav Šulc gentoo-dev 2011-12-30 12:15:10 UTC
  30 Dec 2011; Miroslav Šulc <fordfrog@gentoo.org> junit-4.10.ebuild:
  Fixed failing tests (bug #396367, thanks to Xake >xake@rymdraket.net> for the
  fix)