monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] monotone 0.25 failed test cases on freebsd 6.0


From: Johan Bolmsjö
Subject: [Monotone-devel] monotone 0.25 failed test cases on freebsd 6.0
Date: Sun, 19 Mar 2006 02:26:02 +0100
User-agent: Mozilla Thunderbird 1.0.6 (X11/20051013)

Hello,

I just compiled monotone 0.25 for freebsd 6.0 and two test cases failed. I have been able to find one of the problems so far.

246: lua function existsonpath

----
int existsonpath(const char *exe)
{
 L(F("checking for program '%s'\n") % exe);
 // this is horribly ugly, but at least it is rather portable
//std::string cmd_str = (F("command -v '%s' >/dev/null 2>&1") % exe).str();
 std::string cmd_str = (F("which '%s' >/dev/null 2>&1") % exe).str();
-----

On freebsd:
bash-2.05b$ sh -c "command -v ls"
command: unknown option: -v

On linux:
bash-2.05b$ sh -c "command -v ls"
/bin/ls

Using the "which" command works on the other hand. I don't know how this behaves on other systems though.

"command" is both a built in command and an external command on freebsd, the built in works as expected but the external one does not.

bash-2.05b$ /usr/bin/command -v ls
command: unknown option: -v
bash-2.05b$ command -v ls
/bin/ls

FYI:
/usr/bin/command looks like this, shell magic beyond me:-)

#!/bin/sh
# $FreeBSD: src/usr.bin/alias/generic.sh,v 1.1 2002/07/16 22:16:03 wollman Exp $
# This file is in the public domain.
${0##*/} ${1+"$@"}

Any ideas on how to deal with this problem?

P.S.
The other failed test case is:

226: diff against empty file

But I have not been able to resolve that one yet, any interest in log files? I guess maybe no one have access to freebsd boxen so it's up to me?

BR,
Johan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]