[master] 0060ee941 Found a sneaky way to tests VCC's vmod-tasting code.

Poul-Henning Kamp phk at phk.freebsd.dk
Mon May 20 05:54:40 UTC 2019

In message <CABoVN9C20nnGtruVUTaOo2pRmEpYODKK1aQ24pQrdD9LVxirGQ at mail.gmail.com>
, Dridi Boukelmoune writes:

>> >> +shell "true > ${tmpdir}/libvmod_wrong.so"
>> >
>> >Did you lose your touch?
>> I'm not sure I follow you here ?
>Isn't touch(1) good enough at this point in the test case to create an
>empty file?

1. Touch(1) would not truncate an existing file (not that there should
   be one.)

2. True(1) is usually built into the shell, so we save an exec(2).

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-commit mailing list