]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
report origin of mystery core file
authorTaylor Yu <catalyst@torproject.org>
Fri, 12 Oct 2018 01:25:41 +0000 (20:25 -0500)
committerTaylor Yu <catalyst@torproject.org>
Fri, 12 Oct 2018 20:55:15 +0000 (15:55 -0500)
Report what program produced the mysterious core file that we
occasionally see on Travis CI during make distcheck.  Closes ticket
28024.

.travis.yml
Makefile.am
changes/ticket28024 [new file with mode: 0644]

index 56d7dc07373f4f0c6639d62e40feace62995a90c..de526fe0f342ce5ff67f82c95f0ef21a85aa687f 100644 (file)
@@ -210,6 +210,7 @@ after_failure:
   - if [[ "$DISTCHECK" == "" ]]; then cat test-suite.log || echo "cat failed"; fi
   ## `make distcheck` puts it somewhere different.
   - if [[ "$DISTCHECK" != "" ]]; then make show-distdir-testlog || echo "make failed"; fi
+  - if [[ "$DISTCHECK" != "" ]]; then make show-distdir-core || echo "make failed"; fi
 
 after_success:
   ## If this build was one that produced coverage, upload it.
index a0f513c75ef55cc31597c79dae913cae2cb17f05..e5c1be31b5ad2e45dcc97061bcb8a27fc2dd67f1 100644 (file)
@@ -452,6 +452,15 @@ show-distdir-testlog:
        else \
          cat $(distdir)/_build/$(TEST_SUITE_LOG); fi
 
+# Similarly, this relies on automake internals to run file on an
+# intermittent core file whose provenance is not known to us.  See
+# ticket 26787.
+show-distdir-core:
+       @if test -d "$(distdir)/_build/sub"; then \
+         file $(distdir)/_build/sub/core ; \
+       else \
+         file $(distdir)/_build/core; fi
+
 show-libs:
        @echo $(TOR_INTERNAL_LIBS)
 
diff --git a/changes/ticket28024 b/changes/ticket28024
new file mode 100644 (file)
index 0000000..4b39523
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features (testing):
+    - Report what program produced the mysterious core file that we
+      occasionally see on Travis CI during make distcheck.  Closes
+      ticket 28024.