Skip to content

Commit

Permalink
Run profiler test only if built with profiler support
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c committed Jun 4, 2017
1 parent a1ca5f6 commit 0b0a5ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/run-make/profile/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
-include ../tools.mk

all:
ifeq ($(PROFILER_SUPPORT),1)
$(RUSTC) -g -Z profile test.rs
$(call RUN,test) || exit 1
[ -e "$(TMPDIR)/test.gcno" ] || (echo "No .gcno file"; exit 1)
[ -e "$(TMPDIR)/test.gcda" ] || (echo "No .gcda file"; exit 1)
endif

0 comments on commit 0b0a5ac

Please sign in to comment.