tests: Avoid failure due to race to mkdir tests/valgrind.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Feb 2012 18:59:08 +0000 (10:59 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Feb 2012 19:03:23 +0000 (11:03 -0800)
tests/automake.mk

index 16a0d35202242e76e3cda5aa96dcdd17c7d99af8..cb8da0f51cb186c3a5e817a4c3f4a7696621509a 100644 (file)
@@ -405,7 +405,7 @@ valgrind_wrappers = \
        tests/valgrind/pspp
 
 $(valgrind_wrappers): tests/valgrind-wrapper.in
-       @test -d tests/valgrind || mkdir tests/valgrind
+       @$(MKDIR_P) tests/valgrind
        sed -e 's,[@]wrap_program[@],$@,' \
                $(top_srcdir)/tests/valgrind-wrapper.in > $@.tmp
        chmod +x $@.tmp