Skip to content

Commit

Permalink
Set timeout value to 0 if timeout command is not available in a test …
Browse files Browse the repository at this point in the history
…environment

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Feb 25, 2015
1 parent 8f419cd commit a121667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ check: units
#
# SHELL must be dash or bash.
#
fuzz: TIMEOUT := 1
fuzz: TIMEOUT := $(shell which timeout > /dev/null 2>&1 && echo 1 || echo 0)
fuzz: $(CTAGS_TEST)
@ \
c="misc/units fuzz \
Expand All @@ -392,7 +392,7 @@ noise: $(CTAGS_TEST)
#
# UNITS Target
#
units: TIMEOUT := 5
units: TIMEOUT := $(shell which timeout > /dev/null 2>&1 && echo 5 || echo 0)
units: $(CTAGS_TEST)
@ \
c="misc/units run \
Expand Down

0 comments on commit a121667

Please sign in to comment.