[m-rev.] diff: Make the thread_barrier_test a conditional test.
Paul Bone
paul at bone.id.au
Tue May 20 15:55:53 AEST 2014
Branches: master
Make the thread_barrier_test a conditional test.
When I added this test recently I forgot to make it condition on any grade
with a par component, or the java and csharp grades. This patch fixes this.
tests/hard_coded/Mmakefile:
As above.
---
tests/hard_coded/Mmakefile | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/tests/hard_coded/Mmakefile b/tests/hard_coded/Mmakefile
index ae81679..4e94294 100644
--- a/tests/hard_coded/Mmakefile
+++ b/tests/hard_coded/Mmakefile
@@ -315,7 +315,6 @@ ORDINARY_PROGS= \
test_semaphore \
test_tree_bitset \
test_yield \
- thread_barrier_test \
tim_qual1 \
time_test \
trace_goal_1 \
@@ -712,6 +711,18 @@ ifneq "$(findstring apple-darwin,$(FULLARCH))" "apple-darwin"
endif
endif
+# Concurrency tests are only supported in C grades with a "par" grade
+# componenet or java or csharp grades.
+ifeq "$(findstring par,$(GRADE))" "par"
+ CONC_PROGS = thread_barrier_test
+else
+ ifeq "$(filter csharp% java%,$(GRADE))" ""
+ CONC_PROGS =
+ else
+ CONC_PROGS = thread_barrier_test
+ endif
+endif
+
# We currently test only a limited selection in grade java on this directory.
PROGS = $(ORDINARY_PROGS) $(PROF_PROGS) $(BROKEN_FOR_LCC_PROGS) \
$(CLOSURE_LAYOUT_PROGS) $(NON_PROFDEEP_PROGS) \
@@ -721,7 +732,7 @@ PROGS = $(ORDINARY_PROGS) $(PROF_PROGS) $(BROKEN_FOR_LCC_PROGS) \
$(DOTNET_PROGS) $(JAVA_PROGS) $(SOLVER_PROGS) \
$(TRAILED_PROGS) $(STACK_SEGMENT_PROGS) \
$(MUTABLE_PROGS) $(TRACE_GOAL_ENV_PROGS) \
- $(CTGC_PROGS) $(BIG_DATA_PROGS)
+ $(CTGC_PROGS) $(BIG_DATA_PROGS) $(CONC_PROGS)
#-----------------------------------------------------------------------------#
--
2.0.0.rc0
More information about the reviews
mailing list