'compile()' and 'make test'

alice dubois alice.dubois at lemel.fr
Mon Aug 31 08:49:36 PDT 1998


To correct my results after 'make test' , I have added a line in run() in 
test/regression/TestScript:

run()
{
	echo "$2" > $CHECK
	echo ERROR > $RESULT
	(cd $DESTDIR ; $JAVA $1 | recode ibmpc:latin1 --silent > $RESULT 2>&1)    /
/ I have added 'recode ibmpc:latin1' in this line
	if cmp -s $RESULT $CHECK ; then
		:
	else
		echo "error running"
		echo "  Should have got:"
		cat $CHECK
		echo "  But got instead:"
		cat $RESULT
		error=1
	fi
	rm -f $RESULT $CHECK
}

Here are my new results:

[test]$make test
*** Running tests
HelloWorldApp ... passed
TestIntLong ... passed
TestFloatDouble ... ignored
Str ... passed
Str2 ... passed
IndexTest ... java.lang.ArrayIndexOutOfBoundsException
        at IndexTest.main(7)
error running
  Should have got:
0
1
2
3
4
5
Catch
java.lang.ArrayIndexOutOfBoundsException
        at IndexTest.main(7)
  But got instead:
0
1
2
3
4
5
Catch
StackDump ... (c:\users\stages\Alice\kaffe\bin\kaffe.exe 1102) Exception: 
STATUS
CCESS_VIOLATION
java.lang.NullPointerException
error running
  Should have got:
java.lang.NullPointerException
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.f(8)
        at StackDump.main(14)
  But got instead:
tname ... passed
ttest ... run 0
run 1
run 2
run 3
run 4
run 5
run 6
run 7
run 8
run 9
run 10
run 11
run 12
run 13
run 14
run 15
run 16
run 17
run 18
run 19
run 20
run 21
run 22
run 23
run 24
run 25
run 26
run 27
run 28
run 29
run 30
run 31
run 32
run 33
run 34
run 35
run 36
run 37
run 38
run 39
run 40
run 41
run 42
run 43
run 44
run 45
run 46
run 47
run 48
run 49
run 50
run 51
run 52
run 53
run 54
run 55
run 56
run 57
run 58
run 59
run 60
run 61
run 62
run 63
run 64
run 65
run 66
run 67
run 68
run 69
run 70
run 71
run 72
run 73
run 74
run 75
run 76
run 77
run 78
run 79
run 80
run 81
run 82
run 83
run 84
run 85
run 86
run 87
run 88
run 89
run 90
run 91
run 92
run 93
run 94
run 95
run 96
run 97
run 98
run 99
run 0
run 1
run 2
run 3
run 4
run 5
run 6
run 7
run 8
run 9
run 10
run 11
run 12
run 13
run 14
run 15
run 16
run 17
run 18
run 19
run 20
run 21
run 22
run 23
run 24
run 25
run 26
run 27
run 28
run 29
run 30
run 31
run 32
run 33
run 34
run 35
run 36
run 37
run 38
run 39
run 40
run 41
run 42
run 43
run 44
run 45
run 46
run 47
run 48
run 49
run 50
run 51
run 52
run 53
run 54
run 55
run 56
run 57
run 58
run 59
run 60
run 61
run 62
run 63
run 64
run 65
run 66
run 67
run 68
run 69
run 70
run 71
run 72
run 73
run 74
run 75
run 76
run 77
run 78
run 79
run 80
run 81
run 82
run 83
run 84
run 85
run 86
run 87
run 88
run 89
run 90
run 91
run 92
run 93
run 94
run 95
run 96
run 97
run 98
run 99
error running
  Should have got:
run 0
run 1
run 2
run 3
run 4
run 5
run 6
run 7
run 8
run 9
run 10
run 11
run 12
run 13
run 14
run 15
run 16
run 17
run 18
run 19
run 20
run 21
run 22
run 23
run 24
run 25
run 26
run 27
run 28
run 29
run 30
run 31
run 32
run 33
run 34
run 35
run 36
run 37
run 38
run 39
run 40
run 41
run 42
run 43
run 44
run 45
run 46
run 47
run 48
run 49
run 50
run 51
run 52
run 53
run 54
run 55
run 56
run 57
run 58
run 59
run 60
run 61
run 62
run 63
run 64
run 65
run 66
run 67
run 68
run 69
run 70
run 71
run 72
run 73
run 74
run 75
run 76
run 77
run 78
run 79
run 80
run 81
run 82
run 83
run 84
run 85
run 86
run 87
run 88
run 89
run 90
run 91
run 92
run 93
run 94
run 95
run 96
run 97
run 98
run 99
run 0
run 1
run 2
run 3
run 4
run 5
run 6
run 7
run 8
run 9
run 10
run 11
run 12
run 13
run 14
run 15
run 16
run 17
run 18
run 19
run 20
run 21
run 22
run 23
run 24
run 25
run 26
run 27
run 28
run 29
run 30
run 31
run 32
run 33
run 34
run 35
run 36
run 37
run 38
run 39
run 40
run 41
run 42
run 43
run 44
run 45
run 46
run 47
run 48
run 49
run 50
run 51
run 52
run 53
run 54
run 55
run 56
run 57
run 58
run 59
run 60
run 61
run 62
run 63
run 64
run 65
run 66
run 67
run 68
run 69
run 70
run 71
run 72
run 73
run 74
run 75
run 76
run 77
run 78
run 79
run 80
run 81
run 82
run 83
run 84
run 85
run 86
run 87
run 88
run 89
run 90
run 91
run 92
run 93
run 94
run 95
run 96
run 97
run 98
run 99
  But got instead:
ReflectInterfaces ... passed
TestSerializable ... passed
NullPointerTest ... (c:\users\stages\Alice\kaffe\bin\kaffe.exe 1019) 
Exception:
ATUS_ACCESS_VIOLATION
java.lang.NullPointerException
error running
  Should have got:
This is Perfect
  But got instead:
burford ... passed
IllegalInterface ... passed
GetInterfaces ... passed
DeadThread ... passed
SignedShort ... passed
CharCvt ... passed
BadFloatTest ... passed
ExecTest ... passed
ProcessTest ... passed
UDPTest ... passed
finaltest ... passed
finaltest2 ... passed
forNameTest ... passed
KaffeVerifyBug ... passed
Schtum ... passed
tthrd1 ... main start
main end
error running
  Should have got:
main start
true 1
main end
  But got instead:
true 1
Reflect ... passed
Bean ... passed
ReflectInvoke ... passed
InvTarExcTest ... passed
CLTest ... passed
GCTest ... passed
*** Failed
make: *** [test] Error 1

I don't understand why I've had this problem and where does it come from?
Help would be welcome.
Thank you.

A. Dubois


More information about the kaffe mailing list