17200538 ruby Makefile fix for tests
authorApril Chin <april.chin@oracle.com>
Wed, 24 Jul 2013 08:43:28 -0700
changeset 1405 2c1293ac112f
parent 1404 2b313acd59e0
child 1406 bad4899167db
17200538 ruby Makefile fix for tests
components/ruby/Makefile
--- a/components/ruby/Makefile	Mon Jul 22 23:02:47 2013 -0700
+++ b/components/ruby/Makefile	Wed Jul 24 08:43:28 2013 -0700
@@ -124,6 +124,15 @@
 # core dump on sparc with ASLR enabled
 ASLR_MODE = $(ASLR_DISABLE)
 
+# Several of the drb tests will leave stray ruby processes behind;
+# move these tests aside so they won't be run by the test target.
+# They aren't needed by the build or packages, so we keep them 
+# renamed.
+COMPONENT_PRE_TEST_ACTION += \
+	if [ -e $(SOURCE_DIR)/test/drb/test_drbssl.rb ]; then \
+		$(MV) $(SOURCE_DIR)/test/drb/test_drbssl.rb $(SOURCE_DIR)/test/drb/test_drbssl.rb-save; \
+	fi
+
 CONFIGURE_PREFIX =	$(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER)
 CONFIGURE_OPTIONS += $(DTRACE_FLAG)
 CONFIGURE_OPTIONS += --enable-shared