changeset 40395:93a899c03875

8162670: make of jtreg_tests fails if no tests are run, causing jprt test runs to also fail Summary: Clear the jtreg exit code when set to 1. Reviewed-by: stsmirno, dholmes
author cjplummer
date Thu, 04 Aug 2016 16:11:30 -0700
parents 6ecf77479dcf
children 4cf85a8b24e4
files jdk/test/Makefile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/Makefile	Tue Aug 02 18:36:47 2016 +0200
+++ b/jdk/test/Makefile	Thu Aug 04 16:11:30 2016 -0700
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -185,6 +185,9 @@
 ( \
   jtregExitCode=$$? && \
   _summary="$(SUMMARY_TXT)"; \
+  if [ $${jtregExitCode} = 1 ] ; then \
+    jtregExitCode=0; \
+  fi; \
   $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \
   $(ECHO) "$${jtregExitCode}" > $(EXITCODE); \
   if [ -r "$${_summary}" ] ; then \