Subject: Re: bug#64760: make check fails on 182be30fb1a8b847c30492462ec22c08ec7a9849

From: Janneke Nieuwenhuizen <[email-masked]>
Date: Fri, 11 Aug 2023 14:31:55 +0200

Ludovic Courtès writes:

Hey!

> Janneke Nieuwenhuizen <[email-masked]> skribis:
>
>> test-name: gc-roots, initial
>> location: /home/janneke/src/guix/master/tests/store-roots.scm:33
>> source:
>> + (test-equal
>> +   "gc-roots, initial"
>> +   (list (string-append %state-directory "/profiles"))
>> +   (begin
>> +     (delete-file-recursively
>> +       (string-append %state-directory "/profiles"))
>> +     (gc-roots)))
>> expected-value: ("/home/janneke/src/guix/master/test-tmp/var/9734/profiles")
>> actual-value: #f
>> actual-error:
>> + (system-error
>> +   "lstat"
>> +   "~A: ~S"
>> +   ("No such file or directory"
>> +    "/home/janneke/src/guix/master/test-tmp/var/9734/profiles")
>> +   (2))
>> result: FAIL
>
> Hmm, this test passes for me.

Well, what would you know, it passes for me too...

> Could you get a backtrace so we see where the ‘lstat’ exception comes
> from?  (To get the backtrace, you can raise (begin …) out of
> ‘test-equal’ and then “make check TESTS=tests/store-root.scm”.)

...as I found out after trying this.  I had my source tree configured
using --disable-daemon --disable-nls (a nifty feature that I encountered
only recently)...and then this (patched) test fails.  After
reconfiguring, all is well.

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <[email-masked]>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com