Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461034 - sys-apps/grep-2.14 fails tests grep-dir, word-delim-multibyte
Summary: sys-apps/grep-2.14 fails tests grep-dir, word-delim-multibyte
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal QA
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2013-03-09 23:02 UTC by Roman Žilka
Modified: 2014-01-02 11:37 UTC (History)
0 users

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


Attachments
build.log (build.log,88.59 KB, text/plain)
2013-03-10 20:31 UTC, Roman Žilka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Žilka 2013-03-09 23:02:01 UTC
$(SUBJ).

Reproducible: Always




Portage 2.1.11.52 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.06GHz-with-gentoo-2.1
KiB Mem:     1033484 total,     22652 free
KiB Swap:    4184928 total,   4151964 free
Timestamp of tree: Sat, 09 Mar 2013 01:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mmmx -msse -msse2 -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mmmx -msse -msse2 -msse3"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mmmx -msse -msse2 -msse3"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles keepwork merge-sync news nodoc noinfo parallel-fetch parallel-install protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mmmx -msse -msse2 -msse3"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ http://gentoo.supp.name/ http://gentoo.wheel.sk/ ftp://tux.rainside.sk/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--sparse --itemize-changes --human-readable --stats --compress --compress-level=9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.sk.gentoo.org/gentoo-portage"
USE="acpi apache2 bash-completion berkdb bindist branding bzip2 cdinstall cgi cli cracklib crypt cxx dedicated ftp gd gdbm geoip gif gzip iconv icu idn imagemagick javascript jit jpeg jpeg2k lzma lzo mmap mmx modules mudflap mysql mysqli ncurses nls nocd nptl odbc pam pcre php png readline recode session smp sockets spell sse sse2 sse2_4way sse3 ssl subversion syslog szip threads tiff tokenizer udev unicode usb videos vim-syntax x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="access_compat alias auth_basic authn_core authn_file authz_core authz_host authz_user cgid deflate dir expires filter include log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb unixd userdir" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs sk" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-apps/grep-2.14 was built with the following:
USE="nls pcre test"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-10 19:22:39 UTC
Please attach the entire build log to this bug report.
Comment 2 Roman Žilka 2013-03-10 20:31:56 UTC
Created attachment 341598 [details]
build.log

The log shows that grep also fails the test "symlink", but that has been solved in bug 413441.
Comment 3 SpanKY gentoo-dev 2013-04-27 10:26:58 UTC
please run tests w/sandbox-2.6-r1+
Comment 4 Roman Žilka 2013-04-27 11:59:18 UTC
No change there. The tests xfail even with FEATURES="-userpriv -usersandbox -sandbox -fakeroot".
Comment 5 Roman Žilka 2013-04-27 13:21:27 UTC
mkdir a || framework_failure
echo x | grep -f a/; { test $? -gt 1 && test $? -lt 128; } || fail=1

This is a part of the test grep-dir. `echo x | grep -f a/' returns 1, so in the end fail=1. But 1 seems OK. I'm guessing the test might want to s/-gt/-ge/. Or, of course, it could be that grep actually should return something >1. When I replace -gt with -ge, the test XPASSes.

But... just think of it: the test is marked as XFAIL, but what is it in the environment that could be causing the expected failure? - The quoted test line basically only deals with grep and its exitcode. Is it even OK that it's marked as XFAIL?

By the way, the log output of the test run brought this to my attention: the second instance of $? has the exitcode of the previous "test" cmd in it, not the exitcode of the original grep. I wonder if that's intended.
Comment 6 SpanKY gentoo-dev 2013-04-27 17:14:46 UTC
do you set any GREP env vars ?  run `env | grep GREP` to see.
Comment 7 Roman Žilka 2013-04-27 19:02:19 UTC
None.
Comment 8 SpanKY gentoo-dev 2014-01-02 11:37:49 UTC
it's passing for me w/grep-2.16