mirror of https://github.com/CGAL/cgal
Fix false warning reports and tests in snap_rounding_2 (eol problems)
This commit is contained in:
parent
0e9d4bf956
commit
b68dbb8f20
|
|
@ -19,7 +19,7 @@ function(add_Snap_rounding_tests name)
|
||||||
cgal_add_test(${name} TEST_NAME ${test_name} ARGUMENTS ${data_dir}/${file}
|
cgal_add_test(${name} TEST_NAME ${test_name} ARGUMENTS ${data_dir}/${file}
|
||||||
${data_dir}/output_${file})
|
${data_dir}/output_${file})
|
||||||
add_test(NAME "${test_name}_compare_results"
|
add_test(NAME "${test_name}_compare_results"
|
||||||
COMMAND ${CMAKE_COMMAND} -E compare_files
|
COMMAND ${CMAKE_COMMAND} -E compare_files --ignore-eol
|
||||||
${data_dir}/output_${file} ${data_dir}/gold_${file})
|
${data_dir}/output_${file} ${data_dir}/gold_${file})
|
||||||
cgal_setup_test_properties("${test_name}_compare_results")
|
cgal_setup_test_properties("${test_name}_compare_results")
|
||||||
set_property(
|
set_property(
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ with open_file_create_dir(result_file_name.format(dir=os.getcwd(),
|
||||||
print(" {result} {name} in {time} s : {value} ".format(result = "successful " if (t['Status'] == 'passed') else "ERROR: ", name = t['Name'], value = t['ExitValue'] if(t['ExitValue'] != "") else "SUCCESS" , time = t['ExecutionTime']), file=error)
|
print(" {result} {name} in {time} s : {value} ".format(result = "successful " if (t['Status'] == 'passed') else "ERROR: ", name = t['Name'], value = t['ExitValue'] if(t['ExitValue'] != "") else "SUCCESS" , time = t['ExecutionTime']), file=error)
|
||||||
if t['Status'] != 'passed':
|
if t['Status'] != 'passed':
|
||||||
result_for_label='n'
|
result_for_label='n'
|
||||||
elif t['Output'] != None and re.search(r'(^|[^a-zA-Z_,:-])warning', t['Output'], flags=re.IGNORECASE):
|
elif t['Output'] != None and re.search(r'(^|[^a-zA-Z_,:-])([^0]\s)warning', t['Output'], flags=re.IGNORECASE):
|
||||||
result_for_label='w'
|
result_for_label='w'
|
||||||
|
|
||||||
with io.open("{}/ProgramOutput.{}".format(label, t['Name']), mode="w", encoding="utf-8") as f:
|
with io.open("{}/ProgramOutput.{}".format(label, t['Name']), mode="w", encoding="utf-8") as f:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue