GNU bug report logs - #12729
coreutils-8.20/gnulib-tests/

Previous Next

Package: coreutils;

Reported by: Alice <giacomo_giorgianni <at> alice.it>

Date: Thu, 25 Oct 2012 06:59:02 UTC

Severity: normal

Merged with 11150

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: g.esp <at> free.fr
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 12729 <at> debbugs.gnu.org, Alice <giacomo_giorgianni <at> alice.it>
Subject: bug#12729: coreutils-8.20/gnulib-tests/
Date: Thu, 25 Oct 2012 22:21:43 +0200 (CEST)

----- Mail original -----
> De: "Pádraig Brady" <P <at> draigBrady.com>
> À: "Alice" <giacomo_giorgianni <at> alice.it>
> Cc: 12729 <at> debbugs.gnu.org
> Envoyé: Jeudi 25 Octobre 2012 15:41:39
> Objet: bug#12729: coreutils-8.20/gnulib-tests/
> 
> On 10/25/2012 07:44 AM, Alice wrote:
>  > Archlinux 64 bit
>  > no work.!!!
> > FAIL: test-getlogin
> > ===================
> > test-getlogin.c:45: assertion failed
> 
> You can see the test here:
> http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob;f=tests/test-getlogin.c;h=449ceaa;hb=HEAD#l45
> 
> Does this happen every time for that test?
> 
> I notice the test is not checking for
>    errno==ENOENT or errno=ENXIO
> Could you adjust the test to print out the
> errno that's being returned?
> 
> thanks,
> Pádraig.
> 
> 
I think this is the same issue as #11150
http://lists.gnu.org/archive/html/bug-coreutils/2012-04/msg00056.html

I added a printf to see errno and the number reported was 2 (ENOENT).

It is normal that getlogin fail as nobody is logged inside my chroot.
[chroot-i486] root:/$ w
 22:14:14 up 1 day,  2:53,  0 users,  load average: 0.51, 0.59, 0.34
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

In the chroot, I created a user with a shell and log as this user. Then the test pass.
./gnulib-tests/test-getlogin && echo $?
0

Gilles




This bug report was last modified 12 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.