testuite issues on darwin again

Tom Tromey tromey@redhat.com
Tue Mar 26 15:59:00 GMT 2002


>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:

Andreas> First, the testsuite assumes that we have a shared libgcc,
Andreas> this is unfortunately not the case on darwin. So I tweaked
Andreas> libjava.exp to link against libgcc.a. (hard way)
Could you send me your patch? I'd like to see what, if anything, I
can incorporate back into the test suite.
Andreas> Second, and here I'm stuck, I normally get the bytecode
Andreas> compile ok but the source compile fails since no main is
Andreas> given.
Andreas> jvscan is /Volumes/xufs/gccsrc/objdir/gcc/jv-scan
Andreas> spawn /Volumes/xufs/gccsrc/objdir/gcc/jv-scan --encoding=UTF-8 
Andreas> /Volumes/xufs/gccsrc/gcc/libjava/testsuite/libjava.lang/ArrayStore.java 
Andreas> --print-main ^M
Andreas> pid is 2360 -2360
Andreas> output is
Andreas> main name is
Andreas> spawn /Volumes/xufs/gccsrc/objdir/gcc/jv-scan --encoding=UTF-8 
Andreas> /Volumes/xufs/gccsrc/gcc/libjava/testsuite/libjava.lang/ArrayStore.java 
Andreas> --list-class ^M
Andreas> pid is 2363 -2363
Andreas> output is
Andreas> class list is
Andreas> ERROR: No `main' given in program ArrayStore
Andreas> So, what's going wrong?
Obviously jv-scan is failing for some reason. This in turn causes
other failures.
Andreas> Has it something to do with expect not giving me the correct
Andreas> thingy back or even worse does this command not get executed?
Andreas> The negativ PID seems very odd.
Don't worry about the PID. That is normal; I think the second number
is the process group or something like that. (I haven't looked at it
in a long, long time.)
Andreas> How can I find out about more?
One place to start would be to turn on more verbosity. Maybe that
will help. Every `--verbose' you pass to runtest will increase the
verbosity.
You can also run just a subset of the tests by specifying the name of
the .exp file on the command line.
So start with something like:
 make check RUNTESTFLAGS='--verbose --verbose lang.exp'
Whether this will help, I don't know.
It is curious that it works on the command line and not in dejagnu.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /