Re: unit tests: /usr/bin/touch vs /bin/touch

ellie timoney <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <1536889607.2215926.1507597984.30F9DA63@webmail.messagingengine.com>
Hi Sergey,

On Thu, Sep 13, 2018, at 10:26 PM, Sergey wrote:
> Hello.
> 
> I attempted to run unit tests and got error:
> 
> Suite: command
>   Test: run ...FAILED
>     1. cunit/unit.c:115  - CU_FAIL_FATAL("Code under test exited")
> 
> This is result of wrong path to touch in my distro in cunit/command.testc:
> 
> r = run_command("/usr/bin/touch", canary, NULL);
> 
> I attempted to to find which daemon (or utility) used the touch
> but I not found it. Can I simply to change path in the command.testc?

Yeah, you should just be able to change that line in the command.testc and then recompile.
 
> btw. perhaps it makes sense to check the location of the touch
> by configure?

That seems pretty reasonable.  Can you manually fix it for now, and then let us know if you find any other mismatched paths like this?  Then we can patch them all in one go. :)

Cheers,

ellie
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.