GNU bug report logs - #49463
[core-updates] libdatrie occasionally fails test

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 8 Jul 2021 11:04:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 49463-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 49463-done <at> debbugs.gnu.org
Subject: Re: bug#49463: [core-updates] libdatrie occasionally fails test
Date: Thu, 08 Jul 2021 14:16:27 +0200
Ludovic Courtès <ludo <at> gnu.org> skribis:

> FAIL: test_serialization
> ========================
>
> => Preparing trie...
> => Saving trie to file...
> => Getting serialized trie size...
> serialized trie size 1376
> => Allocating...
> allocated 0x40ba70
> => Serializing...
> => Serialized...
> Failed to reopen trie file test.tri.
> FAIL test_serialization (exit status: 1)

This is a classical problem of having several tests fiddling with the
same file:

--8<---------------cut here---------------start------------->8---
$ grep --color -nH --null -e 'test\.tri' *.c
test_file.c32:#define TRIE_FILENAME "test.tri"
test_serialization.c34:#define TRIE_FILENAME "test.tri"
--8<---------------cut here---------------end--------------->8---

Fixed by running tests sequentially in commit
5f919605e94b12d7f56656a30f66f205c24cde98.

Ludo’.




This bug report was last modified 4 years and 16 days ago.

Previous Next


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