]> sourceware.org Git - glibc.git/commitdiff
Fix timezone tests run in parallel.
authorStefan Liebler <stli@linux.vnet.ibm.com>
Fri, 19 Jun 2015 11:47:59 +0000 (13:47 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 19 Jun 2015 11:47:59 +0000 (13:47 +0200)
The Makefile rule is called one time for target %/UTC or %/Universal.
If the tests are run in parallel, UTC or Universal can trigger the rule.
This patch patch generates the second test-result file as a copy of the
generated one.
Thus the testsuite can rely on the existence of the test-result files
regardless of which target has triggered the rule.

ChangeLog:

* timezone/Makefile (%/UTC %/Universal):
Generate test-result files for UTC and Universal.

ChangeLog
timezone/Makefile

index 0cdb571a1908c3353315c560527fa40460fb3e75..541eecedb8a78d45d7ddd617ad7bf233ee397ebe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
+       * timezone/Makefile (%/UTC %/Universal):
+       Generate test-result files for UTC and Universal.
+
 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
 
        * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
index 5f185458bce92e2be970f2199676d7429c5c8cc6..24c93c60519352093119ee240f5d3e9886d3d8e4 100644 (file)
@@ -107,6 +107,12 @@ $(testdata)/Etc/UTC: etcetera $(zic-deps)
 # Two separate targets built separately can collide if in parallel.
 %/UTC %/Universal: simplebackw $(zic-deps) %/Etc/UTC
        $(build-testdata)
+       { test -r $(@D)/Universal.test-result \
+       && cp $(@D)/Universal.test-result $(@D)/UTC.test-result \
+       && sed -i 's/Universal/UTC/' $(@D)/UTC.test-result ; exit 0; }
+       { test -r $(@D)/UTC.test-result \
+       && cp $(@D)/UTC.test-result $(@D)/Universal.test-result \
+       && sed -i 's/UTC/Universal/' $(@D)/Universal.test-result ; exit 0; }
 $(testdata)/%/Berlin $(testdata)/%/London: europe $(zic-deps)
        $(build-testdata)
 $(testdata)/Australia/Melbourne: australasia $(zic-deps)
This page took 0.127617 seconds and 5 git commands to generate.