tests: fix spurious failure of 'get-sysconf.test'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jan 2012 18:06:00 +0000 (19:06 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 Jan 2012 18:09:21 +0000 (19:09 +0100)
commit104f3027a7f0d0d4dc0f01e786f7deec9707a863
tree285c01946790837b1e5e0edf33acc5c7f8899aba
parent02e90723551e707d77fb972aa47b4bc3f0fb0029
tests: fix spurious failure of 'get-sysconf.test'

* tests/get-sysconf.test: Do not assume that a ChangeLog file exists
in $(srcdir): now that the ChangeLog is autogenerated and not under
version control anymore, this is not necessary true.  Instead, if we
are running from a git checkout, use "git log" to get information on
the version of the automake snapshot being tested (and fall back on
extracting the first ChangeLog entry otherwise).

Reported by Jim Meyering in automake bug#10418.
tests/get-sysconf.test