Blame unit-tests/das-testsuite/das-test.0/test.30.exp
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
# expect/tcl code to test the das parser and scanner
|
|
Packit |
a4aae4 |
# jhrg
|
|
Packit |
a4aae4 |
#
|
|
Packit |
a4aae4 |
# $Log: test.30.exp,v $
|
|
Packit |
a4aae4 |
# Revision 1.3 2003/12/11 01:08:38 jimg
|
|
Packit |
a4aae4 |
# More fixes after resolving conflicts. This code still fails some tests.
|
|
Packit |
a4aae4 |
#
|
|
Packit |
a4aae4 |
# Revision 1.2.6.1 2003/10/03 16:26:30 jimg
|
|
Packit |
a4aae4 |
# Fixed tests; I changed the text of das-test just a little and so these
|
|
Packit |
a4aae4 |
# had to be updated. I wanted to be sure that the error message was from
|
|
Packit |
a4aae4 |
# an exception and not just a write to stderr.
|
|
Packit |
a4aae4 |
#
|
|
Packit |
a4aae4 |
# Revision 1.2 2001/01/26 19:48:10 jimg
|
|
Packit |
a4aae4 |
# Merged with release-3-2-3.
|
|
Packit |
a4aae4 |
#
|
|
Packit |
a4aae4 |
# Revision 1.1.2.1 2000/11/30 05:20:20 jimg
|
|
Packit |
a4aae4 |
# Added
|
|
Packit |
a4aae4 |
#
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
global comp_output # contains output from das-test_start
|
|
Packit |
a4aae4 |
global verbose # this and srcdir are set by runtest.exp
|
|
Packit |
a4aae4 |
global srcdir
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
# The variable `test_name' is the name of the das input file for this test.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
set test_name test.30
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
# The variable `test_out' is a string that contains the text that should be
|
|
Packit |
a4aae4 |
# stored in comp_output by das-test_start. The two strings should match
|
|
Packit |
a4aae4 |
# exactly.
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
set test_out "Caught Error object:
|
|
Packit |
a4aae4 |
Error parsing the text on line 15
|
|
Packit |
a4aae4 |
Could not find the attribute `comp.g' in the attribute object.
|
|
Packit |
a4aae4 |
"
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
das-test_start p $srcdir/$test_name
|
|
Packit |
a4aae4 |
|
|
Packit |
a4aae4 |
if ![string compare $test_out $comp_output] { # check comp_output
|
|
Packit |
a4aae4 |
pass "$test_name"
|
|
Packit |
a4aae4 |
} else {
|
|
Packit |
a4aae4 |
fail "$test_name"
|
|
Packit |
a4aae4 |
}
|