GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
smarteiffel
>
ERROR_MESSAGE_COMPARATOR
+
Point of view
All features
ANY
All features
class ERROR_MESSAGE_COMPARATOR
Summary
top
Class used to check that warning/error message of the compiler are stable.
Direct parents
Insert list:
ANY
Overview
top
Creation features
{
ANY
}
make
Features
{}
msg_file
:
TEXT_FILE_READ
new_file
:
TEXT_FILE_READ
msg_file_position
:
INTEGER_32
new_file_position
:
INTEGER_32
stop_flag
:
BOOLEAN
{
ANY
}
error_flag
:
BOOLEAN
error_message
:
STRING
do_compare
(msg_file_path:
STRING
, new_file_path:
STRING
)
Perform the comparison between the reference file
msg_file_path
and the
new_file_path
.
{}
make
error_exit
successful_exit
standard_forth
(m:
TEXT_FILE_READ
):
CHARACTER
inside_bracket_forth
(m:
TEXT_FILE_READ
):
CHARACTER
unix_path_forth
(m:
TEXT_FILE_READ
):
CHARACTER
msg_file
:
TEXT_FILE_READ
writable attribute
{}
top
new_file
:
TEXT_FILE_READ
writable attribute
{}
top
msg_file_position
:
INTEGER_32
writable attribute
{}
top
new_file_position
:
INTEGER_32
writable attribute
{}
top
stop_flag
:
BOOLEAN
writable attribute
{}
top
error_flag
:
BOOLEAN
writable attribute
{
ANY
}
top
error_message
:
STRING
writable attribute
{
ANY
}
top
do_compare
(msg_file_path:
STRING
, new_file_path:
STRING
)
effective procedure
{
ANY
}
top
Perform the comparison between the reference file
msg_file_path
and the
new_file_path
.
Check whether those two files are identical (remove version numbers, Unix/DOS path of files, blanks, tabs as well as non-meaningful line feed or informations...).
make
effective procedure
{}
top
error_exit
effective procedure
{}
top
successful_exit
effective procedure
{}
top
standard_forth
(m:
TEXT_FILE_READ
):
CHARACTER
effective function
{}
top
require
not m.end_of_input
inside_bracket_forth
(m:
TEXT_FILE_READ
):
CHARACTER
effective function
{}
top
unix_path_forth
(m:
TEXT_FILE_READ
):
CHARACTER
effective function
{}
top