Skip to content

Commit 63a8c29

Browse files
authored
Simplification of assembly and fixing of watermark tests
Simplification of assembly and fixing of watermark tests
2 parents 71b65d1 + d7a54b0 commit 63a8c29

107 files changed

Lines changed: 2295 additions & 2715 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ set(TESTS
213213
test_yafl_suspend_resume
214214
test_yafl_guard
215215
test_yafl_many
216+
test_yafl_watermark
216217
)
217218

218219
# Create static library
@@ -233,18 +234,12 @@ endforeach()
233234
# Testing
234235
# ============================================================================
235236

236-
enable_testing()
237+
include(CTest)
237238

238239
# Ensure all test-related output goes to the build directory only
239240
set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED TRUE)
240241

241242
foreach(test ${TESTS})
242-
# Skip guard page test on macOS when coverage is enabled (coverage instrumentation changes signal behavior)
243-
if(ENABLE_COVERAGE AND APPLE AND "${test}" STREQUAL "test_yafl_guard")
244-
message(STATUS "Skipping ${test} on macOS (coverage enabled)")
245-
continue()
246-
endif()
247-
248243
# Use absolute path to binary so tests run from build directory
249244
add_test(NAME ${test} COMMAND ${test})
250245
endforeach()

docs/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/coverage/gcov.css

Lines changed: 76 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ td.title
3636
font-style: italic;
3737
font-weight: bold;
3838
}
39+
/* table footnote */
40+
td.footnote
41+
{
42+
text-align: left;
43+
padding-left: 100px;
44+
padding-right: 10px;
45+
background-color: #dae7fe; /* light blue table background color */
46+
/* dark blue table header color
47+
background-color: #6688d4; */
48+
white-space: nowrap;
49+
font-family: sans-serif;
50+
font-style: italic;
51+
font-size:70%;
52+
}
3953
/* "Line coverage date bins" leader */
4054
td.subTableHeader
4155
{
@@ -187,6 +201,17 @@ td.coverFile
187201
font-family: monospace;
188202
}
189203

204+
/* Directory view/File view (all): directory name entry format */
205+
td.coverDirectory
206+
{
207+
text-align: left;
208+
padding-left: 10px;
209+
padding-right: 20px;
210+
color: #284fa8;
211+
background-color: #b8d0ff;
212+
font-family: monospace;
213+
}
214+
190215
/* Directory view/File view (all): filename entry format */
191216
td.overallOwner
192217
{
@@ -528,12 +553,29 @@ pre.source
528553
margin-top: 2px;
529554
}
530555

556+
/* elided/removed code */
557+
span.elidedSource
558+
{
559+
font-family: sans-serif;
560+
/*font-size: 8pt; */
561+
font-style: italic;
562+
background-color: lightgrey;
563+
}
564+
531565
/* Source code view: line number format */
532566
span.lineNum
533567
{
534568
background-color: #efe383;
535569
}
536570

571+
/* Source code view: line number format when there are deleted
572+
lines in the corresponding location */
573+
span.lineNumWithDelete
574+
{
575+
foreground-color: #efe383;
576+
background-color: lightgrey;
577+
}
578+
537579
/* Source code view: format for Cov legend */
538580
span.coverLegendCov
539581
{
@@ -634,7 +676,17 @@ a.branchTla:visited
634676
color: #000000;
635677
}
636678

637-
/* Source code view/table entry backround: format for lines classified as "Uncovered New Code (+ => 0):
679+
a.mcdcTla:link
680+
{
681+
color: #000000;
682+
}
683+
684+
a.mcdcTla:visited
685+
{
686+
color: #000000;
687+
}
688+
689+
/* Source code view/table entry background: format for lines classified as "Uncovered New Code (+ => 0):
638690
Newly added code is not tested" */
639691
td.tlaUNC
640692
{
@@ -645,7 +697,7 @@ td.tlaBgUNC {
645697
background-color: #FF6230;
646698
}
647699

648-
/* Source code view/table entry backround: format for lines classified as "Uncovered New Code (+ => 0):
700+
/* Source code view/table entry background: format for lines classified as "Uncovered New Code (+ => 0):
649701
Newly added code is not tested" */
650702
span.tlaUNC
651703
{
@@ -670,7 +722,7 @@ td.headerCovTableHeadUNC {
670722
background-color: #FF6230;
671723
}
672724

673-
/* Source code view/table entry backround: format for lines classified as "Lost Baseline Coverage (1 => 0):
725+
/* Source code view/table entry background: format for lines classified as "Lost Baseline Coverage (1 => 0):
674726
Unchanged code is no longer tested" */
675727
td.tlaLBC
676728
{
@@ -681,7 +733,7 @@ td.tlaBgLBC {
681733
background-color: #FF6230;
682734
}
683735

684-
/* Source code view/table entry backround: format for lines classified as "Lost Baseline Coverage (1 => 0):
736+
/* Source code view/table entry background: format for lines classified as "Lost Baseline Coverage (1 => 0):
685737
Unchanged code is no longer tested" */
686738
span.tlaLBC
687739
{
@@ -706,7 +758,7 @@ td.headerCovTableHeadLBC {
706758
background-color: #FF6230;
707759
}
708760

709-
/* Source code view/table entry backround: format for lines classified as "Uncovered Included Code (# => 0):
761+
/* Source code view/table entry background: format for lines classified as "Uncovered Included Code (# => 0):
710762
Previously unused code is untested" */
711763
td.tlaUIC
712764
{
@@ -717,7 +769,7 @@ td.tlaBgUIC {
717769
background-color: #FF6230;
718770
}
719771

720-
/* Source code view/table entry backround: format for lines classified as "Uncovered Included Code (# => 0):
772+
/* Source code view/table entry background: format for lines classified as "Uncovered Included Code (# => 0):
721773
Previously unused code is untested" */
722774
span.tlaUIC
723775
{
@@ -742,7 +794,7 @@ td.headerCovTableHeadUIC {
742794
background-color: #FF6230;
743795
}
744796

745-
/* Source code view/table entry backround: format for lines classified as "Uncovered Baseline Code (0 => 0):
797+
/* Source code view/table entry background: format for lines classified as "Uncovered Baseline Code (0 => 0):
746798
Unchanged code was untested before, is untested now" */
747799
td.tlaUBC
748800
{
@@ -753,7 +805,7 @@ td.tlaBgUBC {
753805
background-color: #FF6230;
754806
}
755807

756-
/* Source code view/table entry backround: format for lines classified as "Uncovered Baseline Code (0 => 0):
808+
/* Source code view/table entry background: format for lines classified as "Uncovered Baseline Code (0 => 0):
757809
Unchanged code was untested before, is untested now" */
758810
span.tlaUBC
759811
{
@@ -778,7 +830,7 @@ td.headerCovTableHeadUBC {
778830
background-color: #FF6230;
779831
}
780832

781-
/* Source code view/table entry backround: format for lines classified as "Gained Baseline Coverage (0 => 1):
833+
/* Source code view/table entry background: format for lines classified as "Gained Baseline Coverage (0 => 1):
782834
Unchanged code is tested now" */
783835
td.tlaGBC
784836
{
@@ -789,7 +841,7 @@ td.tlaBgGBC {
789841
background-color: #CAD7FE;
790842
}
791843

792-
/* Source code view/table entry backround: format for lines classified as "Gained Baseline Coverage (0 => 1):
844+
/* Source code view/table entry background: format for lines classified as "Gained Baseline Coverage (0 => 1):
793845
Unchanged code is tested now" */
794846
span.tlaGBC
795847
{
@@ -814,7 +866,7 @@ td.headerCovTableHeadGBC {
814866
background-color: #CAD7FE;
815867
}
816868

817-
/* Source code view/table entry backround: format for lines classified as "Gained Included Coverage (# => 1):
869+
/* Source code view/table entry background: format for lines classified as "Gained Included Coverage (# => 1):
818870
Previously unused code is tested now" */
819871
td.tlaGIC
820872
{
@@ -825,7 +877,7 @@ td.tlaBgGIC {
825877
background-color: #CAD7FE;
826878
}
827879

828-
/* Source code view/table entry backround: format for lines classified as "Gained Included Coverage (# => 1):
880+
/* Source code view/table entry background: format for lines classified as "Gained Included Coverage (# => 1):
829881
Previously unused code is tested now" */
830882
span.tlaGIC
831883
{
@@ -850,7 +902,7 @@ td.headerCovTableHeadGIC {
850902
background-color: #CAD7FE;
851903
}
852904

853-
/* Source code view/table entry backround: format for lines classified as "Gained New Coverage (+ => 1):
905+
/* Source code view/table entry background: format for lines classified as "Gained New Coverage (+ => 1):
854906
Newly added code is tested" */
855907
td.tlaGNC
856908
{
@@ -861,7 +913,7 @@ td.tlaBgGNC {
861913
background-color: #CAD7FE;
862914
}
863915

864-
/* Source code view/table entry backround: format for lines classified as "Gained New Coverage (+ => 1):
916+
/* Source code view/table entry background: format for lines classified as "Gained New Coverage (+ => 1):
865917
Newly added code is tested" */
866918
span.tlaGNC
867919
{
@@ -886,7 +938,7 @@ td.headerCovTableHeadGNC {
886938
background-color: #CAD7FE;
887939
}
888940

889-
/* Source code view/table entry backround: format for lines classified as "Covered Baseline Code (1 => 1):
941+
/* Source code view/table entry background: format for lines classified as "Covered Baseline Code (1 => 1):
890942
Unchanged code was tested before and is still tested" */
891943
td.tlaCBC
892944
{
@@ -897,7 +949,7 @@ td.tlaBgCBC {
897949
background-color: #CAD7FE;
898950
}
899951

900-
/* Source code view/table entry backround: format for lines classified as "Covered Baseline Code (1 => 1):
952+
/* Source code view/table entry background: format for lines classified as "Covered Baseline Code (1 => 1):
901953
Unchanged code was tested before and is still tested" */
902954
span.tlaCBC
903955
{
@@ -922,7 +974,7 @@ td.headerCovTableHeadCBC {
922974
background-color: #CAD7FE;
923975
}
924976

925-
/* Source code view/table entry backround: format for lines classified as "Excluded Uncovered Baseline (0 => #):
977+
/* Source code view/table entry background: format for lines classified as "Excluded Uncovered Baseline (0 => #):
926978
Previously untested code is unused now" */
927979
td.tlaEUB
928980
{
@@ -933,7 +985,7 @@ td.tlaBgEUB {
933985
background-color: #FFFFFF;
934986
}
935987

936-
/* Source code view/table entry backround: format for lines classified as "Excluded Uncovered Baseline (0 => #):
988+
/* Source code view/table entry background: format for lines classified as "Excluded Uncovered Baseline (0 => #):
937989
Previously untested code is unused now" */
938990
span.tlaEUB
939991
{
@@ -958,7 +1010,7 @@ td.headerCovTableHeadEUB {
9581010
background-color: #FFFFFF;
9591011
}
9601012

961-
/* Source code view/table entry backround: format for lines classified as "Excluded Covered Baseline (1 => #):
1013+
/* Source code view/table entry background: format for lines classified as "Excluded Covered Baseline (1 => #):
9621014
Previously tested code is unused now" */
9631015
td.tlaECB
9641016
{
@@ -969,7 +1021,7 @@ td.tlaBgECB {
9691021
background-color: #FFFFFF;
9701022
}
9711023

972-
/* Source code view/table entry backround: format for lines classified as "Excluded Covered Baseline (1 => #):
1024+
/* Source code view/table entry background: format for lines classified as "Excluded Covered Baseline (1 => #):
9731025
Previously tested code is unused now" */
9741026
span.tlaECB
9751027
{
@@ -994,7 +1046,7 @@ td.headerCovTableHeadECB {
9941046
background-color: #FFFFFF;
9951047
}
9961048

997-
/* Source code view/table entry backround: format for lines classified as "Deleted Uncovered Baseline (0 => -):
1049+
/* Source code view/table entry background: format for lines classified as "Deleted Uncovered Baseline (0 => -):
9981050
Previously untested code has been deleted" */
9991051
td.tlaDUB
10001052
{
@@ -1005,7 +1057,7 @@ td.tlaBgDUB {
10051057
background-color: #FFFFFF;
10061058
}
10071059

1008-
/* Source code view/table entry backround: format for lines classified as "Deleted Uncovered Baseline (0 => -):
1060+
/* Source code view/table entry background: format for lines classified as "Deleted Uncovered Baseline (0 => -):
10091061
Previously untested code has been deleted" */
10101062
span.tlaDUB
10111063
{
@@ -1030,7 +1082,7 @@ td.headerCovTableHeadDUB {
10301082
background-color: #FFFFFF;
10311083
}
10321084

1033-
/* Source code view/table entry backround: format for lines classified as "Deleted Covered Baseline (1 => -):
1085+
/* Source code view/table entry background: format for lines classified as "Deleted Covered Baseline (1 => -):
10341086
Previously tested code has been deleted" */
10351087
td.tlaDCB
10361088
{
@@ -1041,7 +1093,7 @@ td.tlaBgDCB {
10411093
background-color: #FFFFFF;
10421094
}
10431095

1044-
/* Source code view/table entry backround: format for lines classified as "Deleted Covered Baseline (1 => -):
1096+
/* Source code view/table entry background: format for lines classified as "Deleted Covered Baseline (1 => -):
10451097
Previously tested code has been deleted" */
10461098
span.tlaDCB
10471099
{

0 commit comments

Comments
 (0)