GNU bug report logs - #10441
The testsuite assumes that ln -s really creates a symlink

Previous Next

Package: automake;

Reported by: Peter Rosin <peda <at> lysator.liu.se>

Date: Thu, 5 Jan 2012 22:17:01 UTC

Severity: important

Tags: patch

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Peter Rosin <peda <at> lysator.liu.se>
Cc: 10441 <at> debbugs.gnu.org
Subject: Re: bug#10441: The testsuite assumes that ln -s really creates a
	symlink
Date: Sun, 08 Jan 2012 13:56:36 +0100
[Message part 1 (text/plain, inline)]
On 01/05/2012 11:13 PM, Peter Rosin wrote:
> Hi!
>
Hi Peter, thanks for the report.

> "ln -s" on MSYS does not create a symlink, instead it makes a
> regular copy.  Lots of test cases (on master) FAIL due to this.
> 
> "test -h foo" will simply not return success on MSYS, ever.
> 
> Affected tests (that I have noticed):
> add-missing.tap (lots of failing test cases)
> copy.test
> 
The attached patch should take care of the problem.  Tested using
this script in PATH as the `ln' program:

  #!/bin/bash
  declare -a args=()
  for i in "$@"; do
    test x"$i" = x"-s" && continue
    args=("${args[@]}" "$i")
  done
  exec /bin/ln "${args[@]}"

I will push after your ACK or in 48 hours, whichever comes first.

Regards,
  Stefano
[0001-tests-avoid-many-spurious-failures-on-MSYS-due-to-la.patch (text/x-diff, attachment)]

This bug report was last modified 13 years and 142 days ago.

Previous Next


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