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

ellie timoney ellie at fastmail.com
Thu Sep 13 21:46:47 EDT 2018


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


More information about the Info-cyrus mailing list