]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4/dovecot.m4: rename valgrind output file to hide it from certain tests
authorPhil Carmody <phil@dovecot.fi>
Tue, 19 Jun 2018 12:30:36 +0000 (15:30 +0300)
committerPhil Carmody <phil@dovecot.fi>
Thu, 30 Aug 2018 10:56:33 +0000 (13:56 +0300)
Some lib-http tests use readdir() to create test cases, and sometimes
object to the contents of test.out.$$. However, as lib-http is also
sensitive to certain characters in the filenames of the files it uses,
we can hide the valgrind output by chosing its filename to exclude it
from the lib_http tests. Non-initial '~' is not known to cause any issues
for either the shell or any known operating system, so is the safest of
lib-http's 'dodgy' characters to use as the separator.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
m4/dovecot.m4

index 5c78eea29cd34f7c3c991ce334dae21b9ce6e230..5821e94d0e113cd018be4fbf15296a65ed7961ea 100644 (file)
@@ -60,7 +60,7 @@ if test "\$NOVALGRIND" != ""; then
   \$[*]
   ret=\$?
 else
-  test_out="test.out.\$\$"
+  test_out="test.out~\$\$"
   trap "rm -f \$test_out" 0 1 2 3 15
   supp_path="\$top_srcdir/run-test-valgrind.supp"
   if test -r "\$supp_path"; then