test defs: fix 'javac' requirement for older JDK versions
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 10 Apr 2011 11:38:47 +0000 (13:38 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 10 Apr 2011 12:10:03 +0000 (14:10 +0200)
commitdf9b3bc2212dff5edea3dc60abe93ee61e5283f9
treea418019a370efe52a521d6ab69958da3ca232136
parent744705d420e809cc3da27a253892aa69defec4ce
test defs: fix 'javac' requirement for older JDK versions

The Java compiler from JDK 1.5 (and presumably earlier versions)
cannot handle the `-version' option by itself; and while it does
print the version number, it then errors out with an usage error:
  $ javac -version
  javac 1.5.0_22
  javac: no source files
  Usage: javac <options> <source files>
  ...
Luckily, adding the `-help' option to the `javac' invocation
seems to fix this problem.

* tests/defs.in (javac): Pass also the `-help' option to the
`javac' program.  Add a comment explaining why it is needed.

Report from Ralf Wildenhues.
ChangeLog
tests/defs.in