From c29d2f1afb9b108be7cc7fa6bbd355d5dc057bd1 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Thu, 27 Oct 2022 16:11:19 +0200 Subject: [PATCH] test/unittest: cleanup most vera++ complains --- .../unittests/tests-bloom/tests-bloom-sets.h | 2020 ++++++++--------- tests/unittests/tests-clif/tests-clif.c | 5 +- .../tests-core/tests-core-bitarithm.c | 3 +- .../tests-core/tests-core-ringbuffer.c | 2 +- .../tests-core/tests-core-xfa-data1.c | 3 +- .../tests-core/tests-core-xfa-data2.c | 6 +- tests/unittests/tests-fib/tests-fib.c | 26 +- tests/unittests/tests-frac/tests-frac.c | 3 +- tests/unittests/tests-gcoap/tests-gcoap.c | 3 +- .../tests-gnrc_ipv6_nib-ft.c | 4 +- .../tests-gnrc_mac_internal.c | 22 +- .../tests-hashes/tests-hashes-sha1.c | 25 +- .../tests-hashes/tests-hashes-sha256-hmac.c | 25 +- .../tests-hashes/tests-hashes-sha256.c | 3 +- .../tests-hashes/tests-hashes-sha3.c | 9 +- .../tests-ipv6_addr/tests-ipv6_addr.c | 9 +- .../unittests/tests-nanocoap/tests-nanocoap.c | 1 - tests/unittests/tests-pktbuf/tests-pktbuf.c | 9 +- .../tests-priority_pktqueue.c | 65 +- .../tests-sock_util/tests-sock_util.c | 3 - .../tests-vfs/tests-vfs-mount-constfs.c | 6 +- 21 files changed, 1146 insertions(+), 1106 deletions(-) diff --git a/tests/unittests/tests-bloom/tests-bloom-sets.h b/tests/unittests/tests-bloom/tests-bloom-sets.h index 17f9152702..dd5d7b3b37 100644 --- a/tests/unittests/tests-bloom/tests-bloom-sets.h +++ b/tests/unittests/tests-bloom/tests-bloom-sets.h @@ -14,1018 +14,1018 @@ extern "C" { #endif const int lenA = 1000; -const char* const A[1000] = {"osteopathic" -,"whatnot" -,"fractable" -,"superinnocent" -,"prebendal" -,"thisness" -,"chemotherapeutic" -,"Narcissine" -,"laurustinus" -,"Shojo" -,"Phoenicopteriformes" -,"aureateness" -,"copastor" -,"undevious" -,"motherlessness" -,"Romishness" -,"laxifoliate" -,"sitio" -,"adjudicator" -,"Provencial" -,"polymorph" -,"nontelephonic" -,"unbickering" -,"trabuch" -,"mudee" -,"urotoxin" -,"charqui" -,"ghoulery" -,"yok" -,"forfaulture" -,"acalephoid" -,"colorimetrist" -,"belitter" -,"neurochitin" -,"althea" -,"palliata" -,"sundowning" -,"infraglacial" -,"space" -,"Itylus" -,"interpunction" -,"hydrolysis" -,"potentiometer" -,"desexualization" -,"cystous" -,"vela" -,"ethereally" -,"bespeakable" -,"Ostmannic" -,"cheesebox" -,"hysteralgic" -,"precondemn" -,"sarracenia" -,"demarchy" -,"whealy" -,"overgarrison" -,"redisseisin" -,"canapina" -,"Gemarist" -,"herewithal" -,"septoic" -,"buzzgloak" -,"pogonology" -,"secretion" -,"tragicomical" -,"compensator" -,"inclosure" -,"scandalous" -,"scribbledom" -,"basidia" -,"trilby" -,"sarcoenchondroma" -,"seminality" -,"nutlet" -,"anaerophyte" -,"murder" -,"pinkeen" -,"Dipsacaceae" -,"subpunctuation" -,"unprobationary" -,"whewl" -,"exiguity" -,"saltery" -,"undegrading" -,"insurrectionism" -,"saccate" -,"geographic" -,"kindhearted" -,"admonitive" -,"seemlihead" -,"wicopy" -,"imine" -,"hypochilium" -,"timeservingness" -,"inwrap" -,"swaddle" -,"furrower" -,"unmagical" -,"gittith" -,"plagioclinal" -,"valorousness" -,"glottid" -,"duodenojejunostomy" -,"supersubtle" -,"unconstricted" -,"suslik" -,"nonmicrobic" -,"honeylipped" -,"cho" -,"pendanting" -,"alkalimeter" -,"guttler" -,"blazing" -,"croceous" -,"laminarite" -,"Wichita" -,"podge" -,"pentateuchal" -,"snakeneck" -,"peevedly" -,"candela" -,"pulicosity" -,"nonjoinder" -,"tastingly" -,"archimpressionist" -,"crossness" -,"myxomycete" -,"preclothe" -,"indulgentially" -,"staminal" -,"noggen" -,"howdah" -,"telarian" -,"dismal" -,"unknown" -,"lambhood" -,"prorecall" -,"rangle" -,"antritis" -,"hemigeusia" -,"bake" -,"chape" -,"vitrifiability" -,"unkinlike" -,"lungie" -,"jive" -,"Vampyrum" -,"discontentedness" -,"Nimrodical" -,"cruelness" -,"unportrayed" -,"hypohyal" -,"monoxime" -,"noddle" -,"hemoglobinocholia" -,"restproof" -,"Georgie" -,"superopposition" -,"periastrum" -,"unpacable" -,"unbatted" -,"malleinize" -,"milksoppery" -,"hydrobromate" -,"unregard" -,"interstreet" -,"unprofuse" -,"pharmacal" -,"Harelda" -,"amphiploidy" -,"quadridentate" -,"inviscation" -,"reattainment" -,"tay" -,"kupfferite" -,"thurrock" -,"berri" -,"metalworker" -,"kronen" -,"presentiveness" -,"footpick" -,"bullwhacker" -,"fibroid" -,"chololithic" -,"reagitation" -,"sned" -,"complexionist" -,"improvise" -,"retinene" -,"Bumbledom" -,"orthodoxness" -,"integrand" -,"arctian" -,"plethory" -,"duteous" -,"preaccess" -,"Tareq" -,"depressive" -,"codworm" -,"sitting" -,"undivinely" -,"lubrication" -,"liturgically" -,"derailment" -,"hypodermoclysis" -,"unclerical" -,"foolscap" -,"saccharogalactorrhea" -,"sideline" -,"predicableness" -,"dorbeetle" -,"Molinism" -,"uncommendableness" -,"els" -,"auditorium" -,"wakingly" -,"septennium" -,"Tarai" -,"girling" -,"foison" -,"quadripolar" -,"obfuscable" -,"churchcraft" -,"germless" -,"zimbalon" -,"homesickness" -,"dinnery" -,"Stymphalides" -,"Spartacan" -,"coelia" -,"hemicrane" -,"conductorial" -,"hardly" -,"Nemastomaceae" -,"amaltas" -,"uncensuring" -,"archaeology" -,"nobbler" -,"epanaphoral" -,"Erymanthian" -,"felicide" -,"aegerian" -,"varlet" -,"dextrorotation" -,"Extravagantes" -,"jetter" -,"undergirth" -,"unvenerated" -,"brachiolarian" -,"overremissly" -,"Costata" -,"medievally" -,"settling" -,"ingestible" -,"bedrug" -,"orthoepical" -,"undervocabularied" -,"cloudage" -,"Granth" -,"superabound" -,"Clarissa" -,"ward" -,"mulefoot" -,"Derotrema" -,"repugnance" -,"tubicolar" -,"bookwright" -,"mohur" -,"retropubic" -,"recrank" -,"ungrained" -,"bandannaed" -,"barbastel" -,"wreathwise" -,"tannoid" -,"nervulose" -,"akund" -,"Mahra" -,"livelily" -,"theriotheism" -,"tanghin" -,"inoriginate" -,"cyanogenetic" -,"availingly" -,"ammelin" -,"electrophoric" -,"thumbbird" -,"selachoid" -,"Corynocarpaceae" -,"kikawaeo" -,"nursable" -,"Pishquow" -,"unamenable" -,"rivetless" -,"Negrophobe" -,"uncorrectable" -,"decomponible" -,"parasynapsis" -,"unbeclogged" -,"enwreathe" -,"Ctenacanthus" -,"thrombocytopenia" -,"infusorial" -,"Guato" -,"placentalian" -,"clinium" -,"xylographically" -,"prettyface" -,"Hysteriales" -,"cyrtoceratitic" -,"partridgeberry" -,"hematology" -,"unnucleated" -,"impatiency" -,"castellany" -,"makable" -,"juvenilely" -,"arthrotome" -,"preponderancy" -,"hypercalcemia" -,"cobless" -,"squander" -,"reticulocytosis" -,"vegetoalkaline" -,"dod" -,"protectorian" -,"radiocarpal" -,"taxpaid" -,"algoid" -,"zoodendrium" -,"Carinatae" -,"nonmercantile" -,"Bernoullian" -,"foreboder" -,"geometrically" -,"Drokpa" -,"khilat" -,"prolately" -,"vitrobasalt" -,"autosymbolic" -,"monographically" -,"bittersweet" -,"gentleship" -,"yellowroot" -,"unrestrictive" -,"preterdetermined" -,"bestorm" -,"isocheimal" -,"apricot" -,"commentatorship" -,"functionality" -,"Colubridae" -,"underpole" -,"whey" -,"bottlebird" -,"frondigerous" -,"revisional" -,"testicardine" -,"tetraxonian" -,"overage" -,"virtuose" -,"apepsinia" -,"world" -,"barytine" -,"Molluginaceae" -,"chordoid" -,"Enchodontid" -,"gangliform" -,"imperceptible" -,"loath" -,"unplanned" -,"Mahori" -,"unblightedly" -,"tined" -,"pinprick" -,"juncous" -,"unmisunderstanding" -,"doddering" -,"inirritable" -,"photochronographic" -,"intimater" -,"unposted" -,"octenary" -,"retrieve" -,"superluxurious" -,"Yucatecan" -,"subdiaconate" -,"clavicularium" -,"git" -,"organicist" -,"untranslated" -,"menopause" -,"boatshop" -,"creatininemia" -,"extenuator" -,"polluted" -,"overaccentuate" -,"menosepsis" -,"Kansa" -,"lameness" -,"azulmic" -,"heterodoxness" -,"callower" -,"misted" -,"Axis" -,"doodab" -,"unshadow" -,"restrengthen" -,"unexplicit" -,"bournless" -,"unincreasing" -,"intransitable" -,"balloter" -,"brushiness" -,"pansclerotic" -,"photoengrave" -,"monadism" -,"subtriplicate" -,"enomoty" -,"saccoderm" -,"hydroxylate" -,"unconvincedly" -,"dilker" -,"subovate" -,"cargoose" -,"underbuilder" -,"Brunella" -,"valediction" -,"lapstreaker" -,"variative" -,"diffractively" -,"intercommoner" -,"unbecome" -,"clitorism" -,"gearman" -,"foremade" -,"woodruff" -,"novelize" -,"Leonine" -,"Sak" -,"excursus" -,"emptings" -,"predeprivation" -,"hypopetalous" -,"Pristodus" -,"exhaustion" -,"thronize" -,"chronography" -,"verbolatry" -,"immoralist" -,"orthotoluic" -,"Rorippa" -,"monastic" -,"dentatoserrate" -,"openhanded" -,"bog" -,"hobnob" -,"opprobriousness" -,"ungentlemanlike" -,"calorie" -,"lipodystrophy" -,"prepossess" -,"sublimeness" -,"unloafing" -,"Bramantip" -,"yawper" -,"apoturmeric" -,"warbled" -,"garbler" -,"villageful" -,"Hippopotamidae" -,"severable" -,"Aurorian" -,"befleck" -,"acceptableness" -,"prowl" -,"decapper" -,"prefertilization" -,"vexil" -,"argentojarosite" -,"encreel" -,"heptameter" -,"disaccommodate" -,"unpumped" -,"khahoon" -,"Rhytina" -,"squawweed" -,"interobjective" -,"divertedly" -,"traditious" -,"flamenco" -,"forcipate" -,"obtenebration" -,"wanhope" -,"beneceptor" -,"compulsatorily" -,"Furud" -,"integrable" -,"phenolsulphonephthalein" -,"ziffs" -,"scimitarpod" -,"planetkin" -,"talion" -,"menses" -,"reprobacy" -,"shellproof" -,"nontrading" -,"alkylamine" -,"humpiness" -,"overexpansive" -,"nomisma" -,"superoccipital" -,"Enajim" -,"turfage" -,"contretemps" -,"predelegation" -,"ureteropyelonephritis" -,"scatological" -,"whare" -,"tracheophonine" -,"Quadrula" -,"ancestral" -,"besiegement" -,"gloeosporiose" -,"Byronite" -,"gyromagnetic" -,"Amyris" -,"headland" -,"transoceanic" -,"septier" -,"Tephrosia" -,"hipponosological" -,"she" -,"circuitously" -,"dice" -,"crispated" -,"comolecule" -,"solstitial" -,"vifda" -,"Polystomea" -,"bavary" -,"immotile" -,"extrasomatic" -,"jodhpurs" -,"chieftainess" -,"apocopation" -,"overtimbered" -,"benzene" -,"scumber" -,"Ampullaria" -,"chambermaid" -,"Chinesery" -,"epitrichium" -,"chloric" -,"naillike" -,"Sabbathly" -,"culilawan" -,"trigonocephalous" -,"Musca" -,"donot" -,"lobose" -,"Suevian" -,"Frenchwise" -,"osteologically" -,"procreatory" -,"unarch" -,"inkmaker" -,"utu" -,"Gutium" -,"banneret" -,"Tamil" -,"destroy" -,"gripgrass" -,"antiprofiteering" -,"grindable" -,"annoyment" -,"eisteddfodic" -,"consumption" -,"arterioarctia" -,"unpursuable" -,"Heteropoda" -,"giganticness" -,"disglut" -,"mumper" -,"bespot" -,"zygosis" -,"retape" -,"juristical" -,"nondepositor" -,"keratome" -,"peristerophily" -,"monosilicate" -,"overgreediness" -,"varsha" -,"hippic" -,"smattery" -,"biological" -,"retranslate" -,"despairer" -,"Proctotrypoidea" -,"resurvey" -,"reconfront" -,"suitably" -,"Pedipalpida" -,"fibromyositis" -,"ink" -,"pilori" -,"cataclasm" -,"flypaper" -,"candleshrift" -,"supracommissure" -,"intraselection" -,"downstate" -,"testify" -,"cryptarchy" -,"milky" -,"glandulosity" -,"idolatrousness" -,"antiprinciple" -,"metameride" -,"blown" -,"floodlike" -,"heterocephalous" -,"premarry" -,"Achaenodon" -,"outly" -,"substrator" -,"impervestigable" -,"Jackye" -,"noninterventionist" -,"thuggeeism" -,"kafir" -,"artificialness" -,"flandan" -,"jubbe" -,"renipericardial" -,"perceptionism" -,"gazetteer" -,"padder" -,"bun" -,"diazoimido" -,"fiendful" -,"backbone" -,"noncollectable" -,"pereion" -,"generally" -,"precontentment" -,"hymnless" -,"polybranch" -,"vibrophone" -,"psykter" -,"Elaeagnaceae" -,"nonprehensile" -,"Suberites" -,"slangster" -,"spinescence" -,"Zolaesque" -,"gazel" -,"pearlitic" -,"mouthwise" -,"antrocele" -,"premuddle" -,"singarip" -,"micropodal" -,"photological" -,"subdelegate" -,"titter" -,"erminee" -,"microcurie" -,"Corylaceae" -,"disbar" -,"Vestigian" -,"ineffulgent" -,"wheelmaking" -,"sarcolemma" -,"Ostyak" -,"cartaceous" -,"subheadwaiter" -,"Tarrateen" -,"erogenic" -,"mongrelity" -,"polygyral" -,"nonsaturated" -,"exultet" -,"hyperpyrexial" -,"undrag" -,"physiopsychology" -,"interlocular" -,"centrolepidaceous" -,"Anabaptistically" -,"Lafite" -,"blepharosphincterectomy" -,"threatening" -,"hypokeimenometry" -,"fallowness" -,"unidolized" -,"Piaroa" -,"shipwrecky" -,"solio" -,"sporidiole" -,"transmundane" -,"honeysweet" -,"pectocellulose" -,"himp" -,"cockiness" -,"Cygninae" -,"Waregga" -,"Millerite" -,"Thesmophorian" -,"daubreelite" -,"practicum" -,"regal" -,"gibbet" -,"aimless" -,"adultery" -,"Puelche" -,"mump" -,"occlusive" -,"unbeatably" -,"rushlighted" -,"separatress" -,"hetaeristic" -,"alimonied" -,"isopag" -,"keratode" -,"consentaneously" -,"empt" -,"consulship" -,"syndicator" -,"aphanipterous" -,"aboriginally" -,"laborhood" -,"conjugateness" -,"befog" -,"pleuron" -,"gun" -,"Clintonia" -,"impofo" -,"window" -,"dissolutional" -,"Rhizina" -,"unfinish" -,"sal" -,"oxyphyllous" -,"regularizer" -,"Rebeccaism" -,"fumble" -,"tricolor" -,"corallinaceous" -,"irrelevancy" -,"bufotalin" -,"embiotocid" -,"cowal" -,"chakari" -,"subsoil" -,"confirm" -,"pedagoguery" -,"exoarteritis" -,"courb" -,"exomphalous" -,"blastomycetic" -,"loessic" -,"screwsman" -,"zoosmosis" -,"Judaic" -,"dinothere" -,"ichthyotomist" -,"soulish" -,"capitalize" -,"Coruminacan" -,"coinhabitant" -,"tracheid" -,"thirl" -,"hydnocarpate" -,"Lycidae" -,"Smyrnean" -,"Triglidae" -,"scouriness" -,"Europasian" -,"unburial" -,"unsprung" -,"resignment" -,"ender" -,"talkie" -,"orisphere" -,"uncompliant" -,"uredinium" -,"posttracheal" -,"hydrosulphuric" -,"semiconic" -,"counterabut" -,"newscaster" -,"vulgarize" -,"lozenge" -,"toadling" -,"magnoferrite" -,"septane" -,"thelphusian" -,"filigree" -,"preimitation" -,"riverweed" -,"adharma" -,"sodbuster" -,"rhomborectangular" -,"horsetail" -,"toozle" -,"infranuclear" -,"glycerite" -,"glottalize" -,"jetty" -,"posticteric" -,"unconstruable" -,"gastroalbuminorrhea" -,"outsit" -,"twafauld" -,"misrender" -,"pedalferic" -,"intensifier" -,"pistol" -,"thermotypic" -,"downway" -,"pastoralness" -,"Stymphalian" -,"adultness" -,"serration" -,"haliography" -,"crouch" -,"outpupil" -,"superindulgence" -,"mancipium" -,"iridoptosis" -,"collegiateness" -,"synonymously" -,"protosalt" -,"praenarial" -,"Leptostraca" -,"orchestrion" -,"overdevotedly" -,"fibroglioma" -,"turio" -,"zeallessness" -,"Spyros" -,"unbilleted" -,"crimp" -,"katabella" -,"epipastic" -,"woodhorse" -,"hereinto" -,"atopite" -,"polypotome" -,"zer" -,"Echeveria" -,"vocicultural" -,"friendliness" -,"leadenly" -,"postseason" -,"hydriatry" -,"biosterin" -,"untamedly" -,"obstructor" -,"dextroversion" -,"leptosome" -,"Kabirpanthi" -,"malodorant" -,"xylographer" -,"fretted" -,"flotage" -,"ipid" -,"glyptician" -,"unseptate" -,"ungraphic" -,"laverwort" -,"Tezcucan" -,"procambium" -,"skirt" -,"seminally" -,"clipsheet" -,"experimentize" -,"ballant" -,"fadeaway" -,"teachment" -,"rated" -,"candlepin" -,"idiopsychological" -,"uncleverly" -,"carnic" -,"fjeld" -,"preregistration" -,"nomogenous" -,"tonneau" -,"Mahican" -,"unsawn" -,"commemorable" -,"changeably" -,"dern" -,"seminarial" -,"pteraspid" -,"underdriven" -,"neoacademic" -,"affray" -,"redecorate" -,"hobbyhorsical" -,"gastrotubotomy" -,"gauntness" -,"calculist" -,"elderbrotherly" -,"religiously" -,"churchful" -,"rocambole" -,"cakey" -,"sledlike" -,"coughroot" -,"witchlike" -,"hexadecyl" -,"gingival" -,"peeress" -,"valid" -,"historician" -,"swiper" -,"neurofibroma" -,"devourment" -,"Ab" -,"oil" -,"Tigrean" -,"broider" -,"unwesternized" -,"becrawl" -,"abiogeny" -,"draffy" -,"bemar" -,"phobiac" -,"Palluites" -,"scheelite" -,"halichondrine" -,"tiarella" -,"sedile" -,"pedodontic" -,"suspensively" -,"Ibycus" -,"misprofessor" -,"below" -,"waylayer" -,"Turki" -,"obviation" -,"illiteral" -,"idolatrize" -,"bifolium" -,"shoplet" -,"coefficient" -,"unnearly" -,"benign" -,"entelam" -,"mousingly" -,"wagonage" -,"supermuscan" -,"xeronate" -,"backstring" -,"dialogize" -,"postsplenic" -,"quartersawed" -,"tradeful" -,"trilite" -,"patricianly" -,"fistlike" -,"bathyseism" -,"precorrectness" -,"snipy" -,"ornithocopros" -,"Polysaccum" -,"sulfarsenide" -,"ultrainclusive" -,"protreasurer" -,"retackle" -,"unexceptionableness" -,"waggishly" -,"atomistically" -,"slaughteringly" -,"shinleaf" -,"collin" -,"sunburnproof" -,"pororoca" -,"fogdom" -,"hysterotraumatism" -,"unvalidly" -,"cadbait" -,"Fascio" -,"ascry" -,"noegenesis" -,"familiarism" -,"diureide" -,"malengine" -,"preconcession" -,"agony" -,"ratskeller" -,"advenient" -,"scratchingly" -,"inobvious" -,"antiprime" -,"calean" -,"oxalonitril" +const char* const A[1000] = {"osteopathic", +"whatnot", +"fractable", +"superinnocent", +"prebendal", +"thisness", +"chemotherapeutic", +"Narcissine", +"laurustinus", +"Shojo", +"Phoenicopteriformes", +"aureateness", +"copastor", +"undevious", +"motherlessness", +"Romishness", +"laxifoliate", +"sitio", +"adjudicator", +"Provencial", +"polymorph", +"nontelephonic", +"unbickering", +"trabuch", +"mudee", +"urotoxin", +"charqui", +"ghoulery", +"yok", +"forfaulture", +"acalephoid", +"colorimetrist", +"belitter", +"neurochitin", +"althea", +"palliata", +"sundowning", +"infraglacial", +"space", +"Itylus", +"interpunction", +"hydrolysis", +"potentiometer", +"desexualization", +"cystous", +"vela", +"ethereally", +"bespeakable", +"Ostmannic", +"cheesebox", +"hysteralgic", +"precondemn", +"sarracenia", +"demarchy", +"whealy", +"overgarrison", +"redisseisin", +"canapina", +"Gemarist", +"herewithal", +"septoic", +"buzzgloak", +"pogonology", +"secretion", +"tragicomical", +"compensator", +"inclosure", +"scandalous", +"scribbledom", +"basidia", +"trilby", +"sarcoenchondroma", +"seminality", +"nutlet", +"anaerophyte", +"murder", +"pinkeen", +"Dipsacaceae", +"subpunctuation", +"unprobationary", +"whewl", +"exiguity", +"saltery", +"undegrading", +"insurrectionism", +"saccate", +"geographic", +"kindhearted", +"admonitive", +"seemlihead", +"wicopy", +"imine", +"hypochilium", +"timeservingness", +"inwrap", +"swaddle", +"furrower", +"unmagical", +"gittith", +"plagioclinal", +"valorousness", +"glottid", +"duodenojejunostomy", +"supersubtle", +"unconstricted", +"suslik", +"nonmicrobic", +"honeylipped", +"cho", +"pendanting", +"alkalimeter", +"guttler", +"blazing", +"croceous", +"laminarite", +"Wichita", +"podge", +"pentateuchal", +"snakeneck", +"peevedly", +"candela", +"pulicosity", +"nonjoinder", +"tastingly", +"archimpressionist", +"crossness", +"myxomycete", +"preclothe", +"indulgentially", +"staminal", +"noggen", +"howdah", +"telarian", +"dismal", +"unknown", +"lambhood", +"prorecall", +"rangle", +"antritis", +"hemigeusia", +"bake", +"chape", +"vitrifiability", +"unkinlike", +"lungie", +"jive", +"Vampyrum", +"discontentedness", +"Nimrodical", +"cruelness", +"unportrayed", +"hypohyal", +"monoxime", +"noddle", +"hemoglobinocholia", +"restproof", +"Georgie", +"superopposition", +"periastrum", +"unpacable", +"unbatted", +"malleinize", +"milksoppery", +"hydrobromate", +"unregard", +"interstreet", +"unprofuse", +"pharmacal", +"Harelda", +"amphiploidy", +"quadridentate", +"inviscation", +"reattainment", +"tay", +"kupfferite", +"thurrock", +"berri", +"metalworker", +"kronen", +"presentiveness", +"footpick", +"bullwhacker", +"fibroid", +"chololithic", +"reagitation", +"sned", +"complexionist", +"improvise", +"retinene", +"Bumbledom", +"orthodoxness", +"integrand", +"arctian", +"plethory", +"duteous", +"preaccess", +"Tareq", +"depressive", +"codworm", +"sitting", +"undivinely", +"lubrication", +"liturgically", +"derailment", +"hypodermoclysis", +"unclerical", +"foolscap", +"saccharogalactorrhea", +"sideline", +"predicableness", +"dorbeetle", +"Molinism", +"uncommendableness", +"els", +"auditorium", +"wakingly", +"septennium", +"Tarai", +"girling", +"foison", +"quadripolar", +"obfuscable", +"churchcraft", +"germless", +"zimbalon", +"homesickness", +"dinnery", +"Stymphalides", +"Spartacan", +"coelia", +"hemicrane", +"conductorial", +"hardly", +"Nemastomaceae", +"amaltas", +"uncensuring", +"archaeology", +"nobbler", +"epanaphoral", +"Erymanthian", +"felicide", +"aegerian", +"varlet", +"dextrorotation", +"Extravagantes", +"jetter", +"undergirth", +"unvenerated", +"brachiolarian", +"overremissly", +"Costata", +"medievally", +"settling", +"ingestible", +"bedrug", +"orthoepical", +"undervocabularied", +"cloudage", +"Granth", +"superabound", +"Clarissa", +"ward", +"mulefoot", +"Derotrema", +"repugnance", +"tubicolar", +"bookwright", +"mohur", +"retropubic", +"recrank", +"ungrained", +"bandannaed", +"barbastel", +"wreathwise", +"tannoid", +"nervulose", +"akund", +"Mahra", +"livelily", +"theriotheism", +"tanghin", +"inoriginate", +"cyanogenetic", +"availingly", +"ammelin", +"electrophoric", +"thumbbird", +"selachoid", +"Corynocarpaceae", +"kikawaeo", +"nursable", +"Pishquow", +"unamenable", +"rivetless", +"Negrophobe", +"uncorrectable", +"decomponible", +"parasynapsis", +"unbeclogged", +"enwreathe", +"Ctenacanthus", +"thrombocytopenia", +"infusorial", +"Guato", +"placentalian", +"clinium", +"xylographically", +"prettyface", +"Hysteriales", +"cyrtoceratitic", +"partridgeberry", +"hematology", +"unnucleated", +"impatiency", +"castellany", +"makable", +"juvenilely", +"arthrotome", +"preponderancy", +"hypercalcemia", +"cobless", +"squander", +"reticulocytosis", +"vegetoalkaline", +"dod", +"protectorian", +"radiocarpal", +"taxpaid", +"algoid", +"zoodendrium", +"Carinatae", +"nonmercantile", +"Bernoullian", +"foreboder", +"geometrically", +"Drokpa", +"khilat", +"prolately", +"vitrobasalt", +"autosymbolic", +"monographically", +"bittersweet", +"gentleship", +"yellowroot", +"unrestrictive", +"preterdetermined", +"bestorm", +"isocheimal", +"apricot", +"commentatorship", +"functionality", +"Colubridae", +"underpole", +"whey", +"bottlebird", +"frondigerous", +"revisional", +"testicardine", +"tetraxonian", +"overage", +"virtuose", +"apepsinia", +"world", +"barytine", +"Molluginaceae", +"chordoid", +"Enchodontid", +"gangliform", +"imperceptible", +"loath", +"unplanned", +"Mahori", +"unblightedly", +"tined", +"pinprick", +"juncous", +"unmisunderstanding", +"doddering", +"inirritable", +"photochronographic", +"intimater", +"unposted", +"octenary", +"retrieve", +"superluxurious", +"Yucatecan", +"subdiaconate", +"clavicularium", +"git", +"organicist", +"untranslated", +"menopause", +"boatshop", +"creatininemia", +"extenuator", +"polluted", +"overaccentuate", +"menosepsis", +"Kansa", +"lameness", +"azulmic", +"heterodoxness", +"callower", +"misted", +"Axis", +"doodab", +"unshadow", +"restrengthen", +"unexplicit", +"bournless", +"unincreasing", +"intransitable", +"balloter", +"brushiness", +"pansclerotic", +"photoengrave", +"monadism", +"subtriplicate", +"enomoty", +"saccoderm", +"hydroxylate", +"unconvincedly", +"dilker", +"subovate", +"cargoose", +"underbuilder", +"Brunella", +"valediction", +"lapstreaker", +"variative", +"diffractively", +"intercommoner", +"unbecome", +"clitorism", +"gearman", +"foremade", +"woodruff", +"novelize", +"Leonine", +"Sak", +"excursus", +"emptings", +"predeprivation", +"hypopetalous", +"Pristodus", +"exhaustion", +"thronize", +"chronography", +"verbolatry", +"immoralist", +"orthotoluic", +"Rorippa", +"monastic", +"dentatoserrate", +"openhanded", +"bog", +"hobnob", +"opprobriousness", +"ungentlemanlike", +"calorie", +"lipodystrophy", +"prepossess", +"sublimeness", +"unloafing", +"Bramantip", +"yawper", +"apoturmeric", +"warbled", +"garbler", +"villageful", +"Hippopotamidae", +"severable", +"Aurorian", +"befleck", +"acceptableness", +"prowl", +"decapper", +"prefertilization", +"vexil", +"argentojarosite", +"encreel", +"heptameter", +"disaccommodate", +"unpumped", +"khahoon", +"Rhytina", +"squawweed", +"interobjective", +"divertedly", +"traditious", +"flamenco", +"forcipate", +"obtenebration", +"wanhope", +"beneceptor", +"compulsatorily", +"Furud", +"integrable", +"phenolsulphonephthalein", +"ziffs", +"scimitarpod", +"planetkin", +"talion", +"menses", +"reprobacy", +"shellproof", +"nontrading", +"alkylamine", +"humpiness", +"overexpansive", +"nomisma", +"superoccipital", +"Enajim", +"turfage", +"contretemps", +"predelegation", +"ureteropyelonephritis", +"scatological", +"whare", +"tracheophonine", +"Quadrula", +"ancestral", +"besiegement", +"gloeosporiose", +"Byronite", +"gyromagnetic", +"Amyris", +"headland", +"transoceanic", +"septier", +"Tephrosia", +"hipponosological", +"she", +"circuitously", +"dice", +"crispated", +"comolecule", +"solstitial", +"vifda", +"Polystomea", +"bavary", +"immotile", +"extrasomatic", +"jodhpurs", +"chieftainess", +"apocopation", +"overtimbered", +"benzene", +"scumber", +"Ampullaria", +"chambermaid", +"Chinesery", +"epitrichium", +"chloric", +"naillike", +"Sabbathly", +"culilawan", +"trigonocephalous", +"Musca", +"donot", +"lobose", +"Suevian", +"Frenchwise", +"osteologically", +"procreatory", +"unarch", +"inkmaker", +"utu", +"Gutium", +"banneret", +"Tamil", +"destroy", +"gripgrass", +"antiprofiteering", +"grindable", +"annoyment", +"eisteddfodic", +"consumption", +"arterioarctia", +"unpursuable", +"Heteropoda", +"giganticness", +"disglut", +"mumper", +"bespot", +"zygosis", +"retape", +"juristical", +"nondepositor", +"keratome", +"peristerophily", +"monosilicate", +"overgreediness", +"varsha", +"hippic", +"smattery", +"biological", +"retranslate", +"despairer", +"Proctotrypoidea", +"resurvey", +"reconfront", +"suitably", +"Pedipalpida", +"fibromyositis", +"ink", +"pilori", +"cataclasm", +"flypaper", +"candleshrift", +"supracommissure", +"intraselection", +"downstate", +"testify", +"cryptarchy", +"milky", +"glandulosity", +"idolatrousness", +"antiprinciple", +"metameride", +"blown", +"floodlike", +"heterocephalous", +"premarry", +"Achaenodon", +"outly", +"substrator", +"impervestigable", +"Jackye", +"noninterventionist", +"thuggeeism", +"kafir", +"artificialness", +"flandan", +"jubbe", +"renipericardial", +"perceptionism", +"gazetteer", +"padder", +"bun", +"diazoimido", +"fiendful", +"backbone", +"noncollectable", +"pereion", +"generally", +"precontentment", +"hymnless", +"polybranch", +"vibrophone", +"psykter", +"Elaeagnaceae", +"nonprehensile", +"Suberites", +"slangster", +"spinescence", +"Zolaesque", +"gazel", +"pearlitic", +"mouthwise", +"antrocele", +"premuddle", +"singarip", +"micropodal", +"photological", +"subdelegate", +"titter", +"erminee", +"microcurie", +"Corylaceae", +"disbar", +"Vestigian", +"ineffulgent", +"wheelmaking", +"sarcolemma", +"Ostyak", +"cartaceous", +"subheadwaiter", +"Tarrateen", +"erogenic", +"mongrelity", +"polygyral", +"nonsaturated", +"exultet", +"hyperpyrexial", +"undrag", +"physiopsychology", +"interlocular", +"centrolepidaceous", +"Anabaptistically", +"Lafite", +"blepharosphincterectomy", +"threatening", +"hypokeimenometry", +"fallowness", +"unidolized", +"Piaroa", +"shipwrecky", +"solio", +"sporidiole", +"transmundane", +"honeysweet", +"pectocellulose", +"himp", +"cockiness", +"Cygninae", +"Waregga", +"Millerite", +"Thesmophorian", +"daubreelite", +"practicum", +"regal", +"gibbet", +"aimless", +"adultery", +"Puelche", +"mump", +"occlusive", +"unbeatably", +"rushlighted", +"separatress", +"hetaeristic", +"alimonied", +"isopag", +"keratode", +"consentaneously", +"empt", +"consulship", +"syndicator", +"aphanipterous", +"aboriginally", +"laborhood", +"conjugateness", +"befog", +"pleuron", +"gun", +"Clintonia", +"impofo", +"window", +"dissolutional", +"Rhizina", +"unfinish", +"sal", +"oxyphyllous", +"regularizer", +"Rebeccaism", +"fumble", +"tricolor", +"corallinaceous", +"irrelevancy", +"bufotalin", +"embiotocid", +"cowal", +"chakari", +"subsoil", +"confirm", +"pedagoguery", +"exoarteritis", +"courb", +"exomphalous", +"blastomycetic", +"loessic", +"screwsman", +"zoosmosis", +"Judaic", +"dinothere", +"ichthyotomist", +"soulish", +"capitalize", +"Coruminacan", +"coinhabitant", +"tracheid", +"thirl", +"hydnocarpate", +"Lycidae", +"Smyrnean", +"Triglidae", +"scouriness", +"Europasian", +"unburial", +"unsprung", +"resignment", +"ender", +"talkie", +"orisphere", +"uncompliant", +"uredinium", +"posttracheal", +"hydrosulphuric", +"semiconic", +"counterabut", +"newscaster", +"vulgarize", +"lozenge", +"toadling", +"magnoferrite", +"septane", +"thelphusian", +"filigree", +"preimitation", +"riverweed", +"adharma", +"sodbuster", +"rhomborectangular", +"horsetail", +"toozle", +"infranuclear", +"glycerite", +"glottalize", +"jetty", +"posticteric", +"unconstruable", +"gastroalbuminorrhea", +"outsit", +"twafauld", +"misrender", +"pedalferic", +"intensifier", +"pistol", +"thermotypic", +"downway", +"pastoralness", +"Stymphalian", +"adultness", +"serration", +"haliography", +"crouch", +"outpupil", +"superindulgence", +"mancipium", +"iridoptosis", +"collegiateness", +"synonymously", +"protosalt", +"praenarial", +"Leptostraca", +"orchestrion", +"overdevotedly", +"fibroglioma", +"turio", +"zeallessness", +"Spyros", +"unbilleted", +"crimp", +"katabella", +"epipastic", +"woodhorse", +"hereinto", +"atopite", +"polypotome", +"zer", +"Echeveria", +"vocicultural", +"friendliness", +"leadenly", +"postseason", +"hydriatry", +"biosterin", +"untamedly", +"obstructor", +"dextroversion", +"leptosome", +"Kabirpanthi", +"malodorant", +"xylographer", +"fretted", +"flotage", +"ipid", +"glyptician", +"unseptate", +"ungraphic", +"laverwort", +"Tezcucan", +"procambium", +"skirt", +"seminally", +"clipsheet", +"experimentize", +"ballant", +"fadeaway", +"teachment", +"rated", +"candlepin", +"idiopsychological", +"uncleverly", +"carnic", +"fjeld", +"preregistration", +"nomogenous", +"tonneau", +"Mahican", +"unsawn", +"commemorable", +"changeably", +"dern", +"seminarial", +"pteraspid", +"underdriven", +"neoacademic", +"affray", +"redecorate", +"hobbyhorsical", +"gastrotubotomy", +"gauntness", +"calculist", +"elderbrotherly", +"religiously", +"churchful", +"rocambole", +"cakey", +"sledlike", +"coughroot", +"witchlike", +"hexadecyl", +"gingival", +"peeress", +"valid", +"historician", +"swiper", +"neurofibroma", +"devourment", +"Ab", +"oil", +"Tigrean", +"broider", +"unwesternized", +"becrawl", +"abiogeny", +"draffy", +"bemar", +"phobiac", +"Palluites", +"scheelite", +"halichondrine", +"tiarella", +"sedile", +"pedodontic", +"suspensively", +"Ibycus", +"misprofessor", +"below", +"waylayer", +"Turki", +"obviation", +"illiteral", +"idolatrize", +"bifolium", +"shoplet", +"coefficient", +"unnearly", +"benign", +"entelam", +"mousingly", +"wagonage", +"supermuscan", +"xeronate", +"backstring", +"dialogize", +"postsplenic", +"quartersawed", +"tradeful", +"trilite", +"patricianly", +"fistlike", +"bathyseism", +"precorrectness", +"snipy", +"ornithocopros", +"Polysaccum", +"sulfarsenide", +"ultrainclusive", +"protreasurer", +"retackle", +"unexceptionableness", +"waggishly", +"atomistically", +"slaughteringly", +"shinleaf", +"collin", +"sunburnproof", +"pororoca", +"fogdom", +"hysterotraumatism", +"unvalidly", +"cadbait", +"Fascio", +"ascry", +"noegenesis", +"familiarism", +"diureide", +"malengine", +"preconcession", +"agony", +"ratskeller", +"advenient", +"scratchingly", +"inobvious", +"antiprime", +"calean", +"oxalonitril" }; const int lenB = 10; -const char* const B[10] = {"interbedded" -,"definitively" -,"grasshopper" -,"cadbait" -,"innocuous" -,"sweater" -,"preimitation" -,"progressive" -,"meeting" -,"amplifier" +const char* const B[10] = {"interbedded", +"definitively", +"grasshopper", +"cadbait", +"innocuous", +"sweater", +"preimitation", +"progressive", +"meeting", +"amplifier" }; #ifdef __cplusplus diff --git a/tests/unittests/tests-clif/tests-clif.c b/tests/unittests/tests-clif/tests-clif.c index 7e6f6b15e4..f2e7177916 100644 --- a/tests/unittests/tests-clif/tests-clif.c +++ b/tests/unittests/tests-clif/tests-clif.c @@ -108,7 +108,7 @@ static void test_clif_encode_links(void) } pos += res; - res = clif_encode_link(&links[i],NULL, 0); + res = clif_encode_link(&links[i], NULL, 0); if (res <= 0) { break; } @@ -157,7 +157,8 @@ static void test_clif_decode_links(void) ";rt=\"light-lux\";if=sensor," ";" "anchor=\"/sensors/temp\";rel=\"describedby\";sz=1234," - ";anchor=\"/sensors/temp\";rel=\"alternate\";a;s=\"This is \\\"escaped and has , \\\"\"," + ";anchor=\"/sensors/temp\";rel=\"alternate\";a;s=\"" + "This is \\\"escaped and has , \\\"\"," ",;obs"; /* ordered expected types to be decoded */ diff --git a/tests/unittests/tests-core/tests-core-bitarithm.c b/tests/unittests/tests-core/tests-core-bitarithm.c index b9ae1b5aa4..56d2cf77de 100644 --- a/tests/unittests/tests-core/tests-core-bitarithm.c +++ b/tests/unittests/tests-core/tests-core-bitarithm.c @@ -215,7 +215,8 @@ static void test_bitarithm_bits_set_random(void) static void test_bitarithm_bits_set_u32_random(void) { - TEST_ASSERT_EQUAL_INT(21, bitarithm_bits_set_u32(4072524027)); /* Source: https://www.random.org/bytes */ + TEST_ASSERT_EQUAL_INT(21, bitarithm_bits_set_u32(4072524027)); + /* Source: https://www.random.org/bytes */ } Test *tests_core_bitarithm_tests(void) diff --git a/tests/unittests/tests-core/tests-core-ringbuffer.c b/tests/unittests/tests-core/tests-core-ringbuffer.c index 38f7309c07..be0f56afe7 100644 --- a/tests/unittests/tests-core/tests-core-ringbuffer.c +++ b/tests/unittests/tests-core/tests-core-ringbuffer.c @@ -146,7 +146,7 @@ static void tests_core_ringbuffer_remove_underflow(void) ringbuffer_add_one(&buf, 0); ringbuffer_add_one(&buf, 1); - ringbuffer_remove(&buf,1); + ringbuffer_remove(&buf, 1); TEST_ASSERT_EQUAL_INT(1, ringbuffer_get_one(&buf)); TEST_ASSERT_EQUAL_INT(1, ringbuffer_empty(&buf)); diff --git a/tests/unittests/tests-core/tests-core-xfa-data1.c b/tests/unittests/tests-core/tests-core-xfa-data1.c index af8af9c078..ff3c9d234b 100644 --- a/tests/unittests/tests-core/tests-core-xfa-data1.c +++ b/tests/unittests/tests-core/tests-core-xfa-data1.c @@ -26,7 +26,8 @@ XFA_INIT_CONST(xfatest_t, xfatest_use_const); XFA(xfatest_use, 0) xfatest_t _xfatest_use1 = { .val = 3333, .text = "xfatest_use1" }; XFA(xfatest_use, 0) xfatest_t _xfatest_use_again = { .val = 555, .text = "xfatest use again" }; -XFA_CONST(xfatest_use_const, 0) xfatest_t _xfatest_use_const1 = { .val = 4444, .text = "xfatest_use_const1" }; +XFA_CONST(xfatest_use_const, 0) xfatest_t _xfatest_use_const1 = + { .val = 4444, .text = "xfatest_use_const1" }; int hack1; /** @} */ diff --git a/tests/unittests/tests-core/tests-core-xfa-data2.c b/tests/unittests/tests-core/tests-core-xfa-data2.c index 01bb08ad1c..f85af5d48a 100644 --- a/tests/unittests/tests-core/tests-core-xfa-data2.c +++ b/tests/unittests/tests-core/tests-core-xfa-data2.c @@ -19,8 +19,10 @@ #include "tests-core-xfa.h" XFA(xfatest, 0) xfatest_t _xfatest2 = { .val = 0xbeef, .text = "another test string" }; -XFA_CONST(xfatest_const, 0) xfatest_t _xfatest_const2 = { .val = 32444, .text = "const string xfa 2" }; +XFA_CONST(xfatest_const, 0) xfatest_t _xfatest_const2 = + { .val = 32444, .text = "const string xfa 2" }; XFA(xfatest_use, 0) xfatest_t _xfatest_use2 = { .val = 11111, .text = "xfatest_use2" }; -XFA_CONST(xfatest_use_const, 0) xfatest_t _xfatest_use_const2 = { .val = 22222, .text = "xfatest_use_const2" }; +XFA_CONST(xfatest_use_const, 0) xfatest_t _xfatest_use_const2 = + { .val = 22222, .text = "xfatest_use_const2" }; /** @} */ diff --git a/tests/unittests/tests-fib/tests-fib.c b/tests/unittests/tests-fib/tests-fib.c index 5727a0354b..5a3bfde902 100644 --- a/tests/unittests/tests-fib/tests-fib.c +++ b/tests/unittests/tests-fib/tests-fib.c @@ -250,7 +250,7 @@ static void test_fib_06_remove_one_entry(void) TEST_ASSERT_EQUAL_INT(20, fib_get_num_used_entries(&test_fib_table)); TEST_ASSERT_EQUAL_INT(20, universal_address_get_num_used_entries()); - fib_remove_entry(&test_fib_table, (uint8_t *)addr_dst,add_buf_size - 1); + fib_remove_entry(&test_fib_table, (uint8_t *)addr_dst, add_buf_size - 1); #if (TEST_FIB_SHOW_OUTPUT == 1) fib_print_fib_table(&test_fib_table); @@ -725,7 +725,7 @@ static void test_fib_17_get_entry_set(void) size_t arr_size = 20; fib_destination_set_entry_t arr_dst[arr_size]; char prefix[addr_buf_size]; - memset(prefix,0, addr_buf_size); + memset(prefix, 0, addr_buf_size); /* cppcheck-suppress redundantCopy * (reason: prefix is set to all 0 before adding an address) */ snprintf(prefix, addr_buf_size, "Test address 1"); @@ -739,7 +739,7 @@ static void test_fib_17_get_entry_set(void) TEST_ASSERT_EQUAL_INT(10, arr_size); arr_size = 20; - memset(prefix,0, addr_buf_size); + memset(prefix, 0, addr_buf_size); /* cppcheck-suppress redundantCopy * (reason: prefix is set to all 0 before adding an address) */ snprintf(prefix, addr_buf_size, "Test address 0"); @@ -768,8 +768,8 @@ static void test_fib_17_get_entry_set(void) #if (TEST_FIB_SHOW_OUTPUT == 1) puts(""); - for(size_t i = 0; i < arr_size; ++i) { - for( size_t j = 0; j < arr_dst[i].dest_size; ++j) { + for (size_t i = 0; i < arr_size; ++i) { + for (size_t j = 0; j < arr_dst[i].dest_size; ++j) { printf("%c", (char)arr_dst[i].dest[j]); } puts(""); @@ -796,7 +796,7 @@ static void test_fib_18_get_next_hop_invalid_parameters(void) _fill_FIB_multiple(entries, 11); int ret = fib_get_next_hop(&test_fib_table, NULL, NULL, - NULL, NULL,NULL, add_buf_size - 1, 0x13); + NULL, NULL, NULL, add_buf_size - 1, 0x13); TEST_ASSERT_EQUAL_INT(-EINVAL, ret); @@ -839,7 +839,7 @@ static void test_fib_19_default_gateway(void) snprintf(addr_lookup, add_buf_size, "Some address X1"); /* set the bytes to 0x01..0x10 of the next-hop */ - for(size_t i = 0; i < add_buf_size; i++) { + for (size_t i = 0; i < add_buf_size; i++) { addr_nxt[i] = i+1; } @@ -861,7 +861,7 @@ static void test_fib_19_default_gateway(void) memset(addr_nxt_hop, 0, add_buf_size); /* set the bytes to 0x02..0x11 of the new next-hop for the default gateway */ - for(size_t i = 0; i < add_buf_size; ++i) { + for (size_t i = 0; i < add_buf_size; ++i) { addr_nxt[i] = i+2; } @@ -906,17 +906,17 @@ static void test_fib_20_replace_prefix(void) memset(addr_lookup, 0, add_buf_size); /* set the bytes to 0x01..0x10 of the next-hop */ - for(size_t i = 0; i < add_buf_size; i++) { + for (size_t i = 0; i < add_buf_size; i++) { addr_nxt[i] = i+1; } /* set the bytes to 0x01..0x08 of the destination prefix */ - for(size_t i = 0; i < add_buf_size/2; i++) { + for (size_t i = 0; i < add_buf_size/2; i++) { addr_dst[i] = i+1; } /* set the bytes to 0x01..0x0e of the lookup address */ - for(size_t i = 0; i < 14; i++) { + for (size_t i = 0; i < 14; i++) { addr_lookup[i] = i+1; } @@ -942,12 +942,12 @@ static void test_fib_20_replace_prefix(void) memset(addr_nxt_hop, 0, add_buf_size); /* set the bytes to 0x02..0x11 of the new next-hop */ - for(size_t i = 0; i < add_buf_size; ++i) { + for (size_t i = 0; i < add_buf_size; ++i) { addr_nxt[i] = i+2; } /* set the bytes to 0x01..0x0d of the new destination prefix */ - for(size_t i = 0; i < 13; i++) { + for (size_t i = 0; i < 13; i++) { addr_dst[i] = i+1; } diff --git a/tests/unittests/tests-frac/tests-frac.c b/tests/unittests/tests-frac/tests-frac.c index cbd1d64eca..7236ac61e4 100644 --- a/tests/unittests/tests-frac/tests-frac.c +++ b/tests/unittests/tests-frac/tests-frac.c @@ -121,7 +121,8 @@ static void test_frac_scale32(void) if ((uint32_t)expected != actual) { int32_t diff = actual - expected; DEBUG("%" PRIu32 " * (%" PRIu32 " / %" PRIu32 ")" - " tmp %" PRIu64 " expect %" PRIu32 ", actual %" PRIu32 ", diff = %" PRId32 " shift=%u\n", + " tmp %" PRIu64 " expect %" PRIu32 ", actual %" PRIu32 + ", diff = %" PRId32 " shift=%u\n", u32_test_values[i], num, den, tmp, (uint32_t)expected, actual, diff, frac.shift); diff --git a/tests/unittests/tests-gcoap/tests-gcoap.c b/tests/unittests/tests-gcoap/tests-gcoap.c index c1bf4bcb8d..d42b8e5824 100644 --- a/tests/unittests/tests-gcoap/tests-gcoap.c +++ b/tests/unittests/tests-gcoap/tests-gcoap.c @@ -55,7 +55,8 @@ static gcoap_listener_t listener_second = { .next = NULL }; -static const char *resource_list_str = ",,,"; +static const char *resource_list_str = + ",,,"; /* * Client GET request success case. Test request generation. diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-ft.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-ft.c index 2c74b2887c..5fa2b35f08 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-ft.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-ft.c @@ -615,7 +615,7 @@ static void test_nib_ft_del__unknown(void) iface++; } gnrc_ipv6_nib_ft_del(&dst, dst_len); - while(gnrc_ipv6_nib_ft_iter(NULL, 0, &iter_state, &fte)) { + while (gnrc_ipv6_nib_ft_iter(NULL, 0, &iter_state, &fte)) { count++; } TEST_ASSERT_EQUAL_INT(MAX_NUMOF, count); @@ -636,7 +636,7 @@ static void test_nib_ft_del__success(void) TEST_ASSERT_EQUAL_INT(0, gnrc_ipv6_nib_ft_add(&dst, GLOBAL_PREFIX_LEN, &next_hop, IFACE, 0)); gnrc_ipv6_nib_ft_del(&dst, GLOBAL_PREFIX_LEN); - TEST_ASSERT(!gnrc_ipv6_nib_ft_iter(NULL ,0, &iter_state, &fte)); + TEST_ASSERT(!gnrc_ipv6_nib_ft_iter(NULL, 0, &iter_state, &fte)); } /** diff --git a/tests/unittests/tests-gnrc_mac_internal/tests-gnrc_mac_internal.c b/tests/unittests/tests-gnrc_mac_internal/tests-gnrc_mac_internal.c index eae7d8b51f..cb9347d82c 100644 --- a/tests/unittests/tests-gnrc_mac_internal/tests-gnrc_mac_internal.c +++ b/tests/unittests/tests-gnrc_mac_internal/tests-gnrc_mac_internal.c @@ -93,13 +93,13 @@ static void test_gnrc_mac_queue_tx_packet(void) #if CONFIG_GNRC_MAC_NEIGHBOR_COUNT != 0 gnrc_pktsnip_t *pkt_head; - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,1,pkt1)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 1, pkt1)); pkt_head = gnrc_priority_pktqueue_head(&tx.neighbors[1].queue); TEST_ASSERT(pkt_head == pkt1); TEST_ASSERT(1 == gnrc_priority_pktqueue_length(&tx.neighbors[1].queue)); TEST_ASSERT_EQUAL_STRING(TEST_STRING4, pkt_head->next->data); - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,0,pkt2)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 0, pkt2)); pkt_head = gnrc_priority_pktqueue_head(&tx.neighbors[1].queue); TEST_ASSERT(pkt_head == pkt2); TEST_ASSERT(2 == gnrc_priority_pktqueue_length(&tx.neighbors[1].queue)); @@ -114,13 +114,13 @@ static void test_gnrc_mac_queue_tx_packet(void) TEST_ASSERT(pkt_head == pkt1); TEST_ASSERT_EQUAL_STRING(TEST_STRING4, pkt_head->next->data); - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,0,pkt3)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 0, pkt3)); pkt_head = gnrc_priority_pktqueue_head(&tx.neighbors[2].queue); TEST_ASSERT(pkt_head == pkt3); TEST_ASSERT(1 == gnrc_priority_pktqueue_length(&tx.neighbors[2].queue)); TEST_ASSERT_EQUAL_STRING(TEST_STRING16, pkt_head->next->data); - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,0,pkt_bcast)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 0, pkt_bcast)); pkt_head = gnrc_priority_pktqueue_head(&tx.neighbors[0].queue); TEST_ASSERT(pkt_head == pkt_bcast); TEST_ASSERT(1 == gnrc_priority_pktqueue_length(&tx.neighbors[0].queue)); @@ -128,26 +128,26 @@ static void test_gnrc_mac_queue_tx_packet(void) #else - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,1,pkt1)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 1, pkt1)); TEST_ASSERT(1 == gnrc_priority_pktqueue_length(&tx.queue)); gnrc_pktsnip_t *pkt_head; pkt_head = gnrc_priority_pktqueue_head(&tx.queue); TEST_ASSERT(pkt_head == pkt1); TEST_ASSERT_EQUAL_STRING(TEST_STRING4, pkt_head->next->data); - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,1,pkt2)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 1, pkt2)); TEST_ASSERT(2 == gnrc_priority_pktqueue_length(&tx.queue)); pkt_head = gnrc_priority_pktqueue_head(&tx.queue); TEST_ASSERT(pkt_head == pkt1); TEST_ASSERT_EQUAL_STRING(TEST_STRING4, pkt_head->next->data); - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,0,pkt3)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 0, pkt3)); TEST_ASSERT(3 == gnrc_priority_pktqueue_length(&tx.queue)); pkt_head = gnrc_priority_pktqueue_head(&tx.queue); TEST_ASSERT(pkt_head == pkt3); TEST_ASSERT_EQUAL_STRING(TEST_STRING16, pkt_head->next->data); - TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx,0,pkt_bcast)); + TEST_ASSERT(gnrc_mac_queue_tx_packet(&tx, 0, pkt_bcast)); TEST_ASSERT(4 == gnrc_priority_pktqueue_length(&tx.queue)); pkt_head = gnrc_priority_pktqueue_head(&tx.queue); TEST_ASSERT(pkt_head == pkt3); @@ -198,7 +198,7 @@ static void test_gnrc_mac_queue_rx_packet(void) gnrc_pktsnip_t *pkt3 = gnrc_pktbuf_add(NULL, TEST_STRING16, sizeof(TEST_STRING16), GNRC_NETTYPE_UNDEF); - TEST_ASSERT(gnrc_mac_queue_rx_packet(&rx,1,pkt1)); + TEST_ASSERT(gnrc_mac_queue_rx_packet(&rx, 1, pkt1)); TEST_ASSERT(1 == gnrc_priority_pktqueue_length(&rx.queue)); gnrc_pktsnip_t *pkt_head; @@ -207,7 +207,7 @@ static void test_gnrc_mac_queue_rx_packet(void) TEST_ASSERT(pkt_head == pkt1); TEST_ASSERT_EQUAL_STRING(TEST_STRING4, pkt_head->data); - TEST_ASSERT(gnrc_mac_queue_rx_packet(&rx,1,pkt2)); + TEST_ASSERT(gnrc_mac_queue_rx_packet(&rx, 1, pkt2)); TEST_ASSERT(2 == gnrc_priority_pktqueue_length(&rx.queue)); pkt_head = gnrc_priority_pktqueue_head(&rx.queue); @@ -215,7 +215,7 @@ static void test_gnrc_mac_queue_rx_packet(void) TEST_ASSERT(pkt_head == pkt1); TEST_ASSERT_EQUAL_STRING(TEST_STRING4, pkt_head->data); - TEST_ASSERT(gnrc_mac_queue_rx_packet(&rx,0,pkt3)); + TEST_ASSERT(gnrc_mac_queue_rx_packet(&rx, 0, pkt3)); TEST_ASSERT(3 == gnrc_priority_pktqueue_length(&rx.queue)); pkt_head = gnrc_priority_pktqueue_head(&rx.queue); diff --git a/tests/unittests/tests-hashes/tests-hashes-sha1.c b/tests/unittests/tests-hashes/tests-hashes-sha1.c index c64c210b01..b7c65ed77b 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha1.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha1.c @@ -64,18 +64,20 @@ static const char *_resultarray[TEST_CASES_NUM + 2] = #define TEST_CASES_HMAC_NUM (5) -#define TEST1_HMAC "Hi There" -#define TEST2_HMAC "what do ya want for nothing?" +#define TEST1_HMAC "Hi There" +#define TEST2_HMAC "what do ya want for nothing?" #define TEST3_HMAC "Test With Truncation" #define TEST4_HMAC "Test Using Larger Than Block-Size Key - Hash Key First" #define TEST5_HMAC "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data" static const uint8_t _hmac_key1[]={ - 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b + 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, + 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b }; static const uint8_t _hmac_key2[]= "Jefe"; static const uint8_t _hmac_key3[]={ - 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c + 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, + 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c }; static const uint8_t _hmac_key4[]={ 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, @@ -181,11 +183,16 @@ static void test_hashes_sha1(void) TEST_ASSERT(calc_and_compare_hash2(_testarray[2], _resultarray[4]) == 0); TEST_ASSERT(calc_and_compare_hash2(_testarray[3], _resultarray[5]) == 0); - TEST_ASSERT(calc_and_compare_hash_hmac(TEST1_HMAC, _resultarray_hmac[0], _hmac_key1, sizeof(_hmac_key1)) == 0); - TEST_ASSERT(calc_and_compare_hash_hmac(TEST2_HMAC, _resultarray_hmac[1], _hmac_key2, sizeof(_hmac_key2)) == 0); - TEST_ASSERT(calc_and_compare_hash_hmac(TEST3_HMAC, _resultarray_hmac[2], _hmac_key3, sizeof(_hmac_key3)) == 0); - TEST_ASSERT(calc_and_compare_hash_hmac(TEST4_HMAC, _resultarray_hmac[3], _hmac_key4, sizeof(_hmac_key4)) == 0); - TEST_ASSERT(calc_and_compare_hash_hmac(TEST5_HMAC, _resultarray_hmac[4], _hmac_key5, sizeof(_hmac_key5)) == 0); + TEST_ASSERT(calc_and_compare_hash_hmac(TEST1_HMAC, _resultarray_hmac[0], + _hmac_key1, sizeof(_hmac_key1)) == 0); + TEST_ASSERT(calc_and_compare_hash_hmac(TEST2_HMAC, _resultarray_hmac[1], + _hmac_key2, sizeof(_hmac_key2)) == 0); + TEST_ASSERT(calc_and_compare_hash_hmac(TEST3_HMAC, _resultarray_hmac[2], + _hmac_key3, sizeof(_hmac_key3)) == 0); + TEST_ASSERT(calc_and_compare_hash_hmac(TEST4_HMAC, _resultarray_hmac[3], + _hmac_key4, sizeof(_hmac_key4)) == 0); + TEST_ASSERT(calc_and_compare_hash_hmac(TEST5_HMAC, _resultarray_hmac[4], + _hmac_key5, sizeof(_hmac_key5)) == 0); } Test *tests_hashes_sha1_tests(void) diff --git a/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c b/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c index a8b359e581..a35809e78f 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c @@ -141,9 +141,11 @@ static void test_hashes_hmac_sha256_hash_PRF5(void) static void test_hashes_hmac_sha256_hash_PRF6(void) { /* Test Case PRF-6: */ - static const unsigned char strPRF6[] = "This is a test using a larger than block-size key and a " - "larger than block-size data. The key needs to be hashed " - "before being used by the HMAC algorithm."; + static const unsigned char strPRF6[] = + "This is a test using a larger than block-size key and a " + "larger than block-size data. The key needs to be hashed " + "before being used by the HMAC algorithm."; + unsigned char longKey[131]; static unsigned char hmac[SHA256_DIGEST_LENGTH]; memset(longKey, 0xaa, sizeof(longKey)); @@ -287,9 +289,11 @@ static void test_hashes_hmac_sha256_ite_hash_PRF6(void) { /* Test Case PRF-6: */ hmac_context_t ctx; - static const unsigned char strPRF6[] = "This is a test using a larger than block-size key and a " - "larger than block-size data. The key needs to be hashed " - "before being used by the HMAC algorithm."; + static const unsigned char strPRF6[] = + "This is a test using a larger than block-size key and a " + "larger than block-size data. The key needs to be hashed " + "before being used by the HMAC algorithm."; + unsigned char longKey[131]; static unsigned char hmac[SHA256_DIGEST_LENGTH]; memset(longKey, 0xaa, sizeof(longKey)); @@ -308,9 +312,12 @@ static void test_hashes_hmac_sha256_ite_hash_PRF6_split(void) { /* Test Case PRF-6: */ hmac_context_t ctx; - static const unsigned char strPRF6_1[] = "This is a test using a larger than block-size key and a "; - static const unsigned char strPRF6_2[] = "larger than block-size data. The key needs to be hashed "; - static const unsigned char strPRF6_3[] = "before being used by the HMAC algorithm."; + static const unsigned char strPRF6_1[] = + "This is a test using a larger than block-size key and a "; + static const unsigned char strPRF6_2[] = + "larger than block-size data. The key needs to be hashed "; + static const unsigned char strPRF6_3[] = + "before being used by the HMAC algorithm."; unsigned char longKey[131]; static unsigned char hmac[SHA256_DIGEST_LENGTH]; diff --git a/tests/unittests/tests-hashes/tests-hashes-sha256.c b/tests/unittests/tests-hashes/tests-hashes-sha256.c index 7570aaefb4..cd7cc8aefe 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha256.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha256.c @@ -204,7 +204,8 @@ static void test_hashes_sha256_hash_sequence_04(void) static void test_hashes_sha256_hash_sequence_digits_letters(void) { - static const char *teststring = "0123456789abcde-0123456789abcde-0123456789abcde-0123456789abcde-"; + static const char *teststring = + "0123456789abcde-0123456789abcde-0123456789abcde-0123456789abcde-"; TEST_ASSERT(calc_and_compare_hash(teststring, hdigits_letters)); TEST_ASSERT(calc_and_compare_hash_wrapper(teststring, hdigits_letters)); } diff --git a/tests/unittests/tests-hashes/tests-hashes-sha3.c b/tests/unittests/tests-hashes/tests-hashes-sha3.c index e8a7e9d759..1c27ac2934 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha3.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha3.c @@ -303,7 +303,8 @@ static int calc_and_compare_hash_256(const uint8_t *msg, size_t msg_len, const u } static int calc_steps_and_compare_hash_256(const uint8_t *msg1, size_t msg1_len, - const uint8_t *msg2, size_t msg2_len, const uint8_t *expected) + const uint8_t *msg2, size_t msg2_len, + const uint8_t *expected) { static unsigned char hash[SHA3_256_DIGEST_LENGTH]; keccak_state_t state; @@ -326,7 +327,8 @@ static int calc_and_compare_hash_384(const uint8_t *msg, size_t msg_len, const u } static int calc_steps_and_compare_hash_384(const uint8_t *msg1, size_t msg1_len, - const uint8_t *msg2, size_t msg2_len, const uint8_t *expected) + const uint8_t *msg2, size_t msg2_len, + const uint8_t *expected) { static unsigned char hash[SHA3_384_DIGEST_LENGTH]; keccak_state_t state; @@ -349,7 +351,8 @@ static int calc_and_compare_hash_512(const uint8_t *msg, size_t msg_len, const u } static int calc_steps_and_compare_hash_512(const uint8_t *msg1, size_t msg1_len, - const uint8_t *msg2, size_t msg2_len, const uint8_t *expected) + const uint8_t *msg2, size_t msg2_len, + const uint8_t *expected) { static unsigned char hash[SHA3_512_DIGEST_LENGTH]; keccak_state_t state; diff --git a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c index db265da15c..8a3197d2e7 100644 --- a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c +++ b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c @@ -1031,7 +1031,8 @@ static void test_ipv6_addr_from_str__success6(void) ipv6_addr_t result; #ifdef MODULE_IPV4_ADDR - TEST_ASSERT_NOT_NULL(ipv6_addr_from_str(&result, "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")); + TEST_ASSERT_NOT_NULL(ipv6_addr_from_str(&result, "ffff:ffff:ffff:ffff:ffff:ffff" + ":255.255.255.255")); #else TEST_ASSERT_NOT_NULL(ipv6_addr_from_str(&result, "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")); #endif @@ -1078,9 +1079,11 @@ static void test_ipv6_addr_from_buf__success(void) ipv6_addr_t result; #ifdef MODULE_IPV4_ADDR - TEST_ASSERT_NOT_NULL(ipv6_addr_from_buf(&result, "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255%tap0", 45)); + TEST_ASSERT_NOT_NULL(ipv6_addr_from_buf(&result, "ffff:ffff:ffff:ffff:ffff:ffff" + ":255.255.255.255%tap0", 45)); #else - TEST_ASSERT_NOT_NULL(ipv6_addr_from_buf(&result, "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff%tap0", 39)); + TEST_ASSERT_NOT_NULL(ipv6_addr_from_buf(&result, "ffff:ffff:ffff:ffff:ffff:ffff" + ":ffff:ffff%tap0", 39)); #endif TEST_ASSERT(ipv6_addr_equal(&a, &result)); } diff --git a/tests/unittests/tests-nanocoap/tests-nanocoap.c b/tests/unittests/tests-nanocoap/tests-nanocoap.c index f19affd6aa..b3c2888eda 100644 --- a/tests/unittests/tests-nanocoap/tests-nanocoap.c +++ b/tests/unittests/tests-nanocoap/tests-nanocoap.c @@ -622,7 +622,6 @@ static void test_nanocoap__option_remove_delta_512(void) __test_option_remove(512U); } - static void test_nanocoap__option_remove_no_payload(void) { /* header 4, token 2, option length 3, 0 payload marker 1 */ diff --git a/tests/unittests/tests-pktbuf/tests-pktbuf.c b/tests/unittests/tests-pktbuf/tests-pktbuf.c index baa0731325..f1abee38d4 100644 --- a/tests/unittests/tests-pktbuf/tests-pktbuf.c +++ b/tests/unittests/tests-pktbuf/tests-pktbuf.c @@ -150,7 +150,8 @@ static void test_pktbuf_add__pkt_NOT_NULL__data_NULL__size_not_0(void) TEST_ASSERT_NOT_NULL(next); - TEST_ASSERT_NOT_NULL((pkt = gnrc_pktbuf_add(next, NULL, sizeof(TEST_STRING8), GNRC_NETTYPE_TEST))); + TEST_ASSERT_NOT_NULL((pkt = gnrc_pktbuf_add(next, NULL, sizeof(TEST_STRING8), + GNRC_NETTYPE_TEST))); TEST_ASSERT(pkt->next == next); TEST_ASSERT_NOT_NULL(pkt->data); @@ -232,7 +233,8 @@ static void test_pktbuf_add__packed_struct(void) 34, -4469, 149699748, -46590430597 }; test_pktbuf_struct_t *data_cpy; - gnrc_pktsnip_t *pkt = gnrc_pktbuf_add(NULL, &data, sizeof(test_pktbuf_struct_t), GNRC_NETTYPE_TEST); + gnrc_pktsnip_t *pkt = gnrc_pktbuf_add(NULL, &data, sizeof(test_pktbuf_struct_t), + GNRC_NETTYPE_TEST); data_cpy = (test_pktbuf_struct_t *)pkt->data; TEST_ASSERT_EQUAL_INT(data.u8, data_cpy->u8); @@ -509,7 +511,8 @@ static void test_pktbuf_realloc_data__size_0(void) TEST_ASSERT(gnrc_pktbuf_is_empty()); } -#ifndef MODULE_GNRC_PKTBUF_MALLOC /* CONFIG_GNRC_PKTBUF_SIZE does not apply for gnrc_pktbuf_malloc */ +#ifndef MODULE_GNRC_PKTBUF_MALLOC /* CONFIG_GNRC_PKTBUF_SIZE does not*/ + /* apply for gnrc_pktbuf_malloc */ static void test_pktbuf_realloc_data__memfull(void) { gnrc_pktsnip_t *pkt = gnrc_pktbuf_add(NULL, NULL, sizeof(TEST_STRING8), GNRC_NETTYPE_TEST); diff --git a/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c b/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c index f754ba0193..faed65340a 100644 --- a/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c +++ b/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c @@ -50,7 +50,7 @@ static void test_gnrc_priority_pktqueue_node_init(void) gnrc_pktsnip_t pkt = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING8, NULL); gnrc_priority_pktqueue_node_t elem; - gnrc_priority_pktqueue_node_init(&elem,TEST_UINT32,&pkt); + gnrc_priority_pktqueue_node_init(&elem, TEST_UINT32, &pkt); TEST_ASSERT_NULL(elem.next); TEST_ASSERT(elem.pkt == &pkt); @@ -61,26 +61,30 @@ static void test_gnrc_priority_pktqueue_node_init(void) static void test_gnrc_priority_pktqueue_push_one(void) { gnrc_pktsnip_t pkt = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING8, NULL); - gnrc_priority_pktqueue_node_t elem = PRIORITY_PKTQUEUE_NODE_INIT(TEST_UINT32,&pkt); + gnrc_priority_pktqueue_node_t elem = PRIORITY_PKTQUEUE_NODE_INIT(TEST_UINT32, &pkt); - gnrc_priority_pktqueue_push(&pkt_queue,&elem); + gnrc_priority_pktqueue_push(&pkt_queue, &elem); TEST_ASSERT((gnrc_priority_pktqueue_node_t *)(pkt_queue.first) == &elem); TEST_ASSERT_NULL(((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next); - TEST_ASSERT_EQUAL_INT(TEST_UINT32, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->priority); + TEST_ASSERT_EQUAL_INT(TEST_UINT32, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->priority); TEST_ASSERT_EQUAL_INT(1, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->users); TEST_ASSERT_NULL(((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->next); - TEST_ASSERT_EQUAL_STRING(TEST_STRING8, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->data); - TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING8), ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->size); - TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->type); + TEST_ASSERT_EQUAL_STRING(TEST_STRING8, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->data); + TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING8), + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->size); + TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->type); } static void test_gnrc_priority_pktqueue_push_two(void) { gnrc_pktsnip_t pkt1 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING8, NULL); gnrc_pktsnip_t pkt2 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING16, NULL); - gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1,&pkt1); - gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0,&pkt2); + gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1, &pkt1); + gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0, &pkt2); gnrc_priority_pktqueue_push(&pkt_queue, &elem1); gnrc_priority_pktqueue_push(&pkt_queue, &elem2); @@ -92,22 +96,29 @@ static void test_gnrc_priority_pktqueue_push_two(void) TEST_ASSERT_EQUAL_INT(1, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->priority); TEST_ASSERT_EQUAL_INT(1, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->users); TEST_ASSERT_NULL(((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->next); - TEST_ASSERT_EQUAL_STRING(TEST_STRING16, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->data); - TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING16), ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->size); - TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->type); - TEST_ASSERT_EQUAL_INT(1, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->users); + TEST_ASSERT_EQUAL_STRING(TEST_STRING16, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->data); + TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING16), + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->size); + TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->pkt->type); + TEST_ASSERT_EQUAL_INT(1, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->users); TEST_ASSERT_NULL(((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->next); - TEST_ASSERT_EQUAL_STRING(TEST_STRING8, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->data); - TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING8), ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->size); - TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->type); + TEST_ASSERT_EQUAL_STRING(TEST_STRING8, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->data); + TEST_ASSERT_EQUAL_INT(sizeof(TEST_STRING8), + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->size); + TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, + ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->next->pkt->type); } static void test_gnrc_priority_pktqueue_length(void) { gnrc_pktsnip_t pkt1 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING8, NULL); gnrc_pktsnip_t pkt2 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING16, NULL); - gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1,&pkt1); - gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0,&pkt2); + gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1, &pkt1); + gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0, &pkt2); TEST_ASSERT_EQUAL_INT(0, gnrc_priority_pktqueue_length(&pkt_queue)); @@ -127,8 +138,8 @@ static void test_gnrc_priority_pktqueue_flush(void) TEST_ASSERT_NOT_NULL(pkt1); TEST_ASSERT_NOT_NULL(pkt2); - gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1,pkt1); - gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0,pkt2); + gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1, pkt1); + gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0, pkt2); gnrc_priority_pktqueue_push(&pkt_queue, &elem1); gnrc_priority_pktqueue_push(&pkt_queue, &elem2); @@ -151,9 +162,9 @@ static void test_gnrc_priority_pktqueue_head(void) TEST_ASSERT_NOT_NULL(pkt2); TEST_ASSERT_NOT_NULL(pkt3); - gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1,pkt1); - gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(1,pkt2); - gnrc_priority_pktqueue_node_t elem3 = PRIORITY_PKTQUEUE_NODE_INIT(0,pkt3); + gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1, pkt1); + gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(1, pkt2); + gnrc_priority_pktqueue_node_t elem3 = PRIORITY_PKTQUEUE_NODE_INIT(0, pkt3); gnrc_pktsnip_t *head = gnrc_priority_pktqueue_head(&pkt_queue); TEST_ASSERT_NULL(head); @@ -194,8 +205,8 @@ static void test_gnrc_priority_pktqueue_pop(void) { gnrc_pktsnip_t pkt1 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING8, NULL); gnrc_pktsnip_t pkt2 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING16, NULL); - gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1,&pkt1); - gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0,&pkt2); + gnrc_priority_pktqueue_node_t elem1 = PRIORITY_PKTQUEUE_NODE_INIT(1, &pkt1); + gnrc_priority_pktqueue_node_t elem2 = PRIORITY_PKTQUEUE_NODE_INIT(0, &pkt2); gnrc_pktsnip_t *res; gnrc_pktsnip_t *head; @@ -207,7 +218,7 @@ static void test_gnrc_priority_pktqueue_pop(void) TEST_ASSERT(res == &pkt2); TEST_ASSERT_NULL(elem2.pkt); TEST_ASSERT_NULL(elem2.next); - TEST_ASSERT_EQUAL_INT(0,elem2.priority); + TEST_ASSERT_EQUAL_INT(0, elem2.priority); TEST_ASSERT((gnrc_priority_pktqueue_node_t *)(pkt_queue.first) == &elem1); TEST_ASSERT_EQUAL_INT(1, ((gnrc_priority_pktqueue_node_t *)(pkt_queue.first))->priority); TEST_ASSERT_EQUAL_INT(1, res->users); @@ -221,7 +232,7 @@ static void test_gnrc_priority_pktqueue_pop(void) TEST_ASSERT_NULL(pkt_queue.first); TEST_ASSERT_NULL(elem1.pkt); TEST_ASSERT_NULL(elem1.next); - TEST_ASSERT_EQUAL_INT(0,elem1.priority); + TEST_ASSERT_EQUAL_INT(0, elem1.priority); TEST_ASSERT(res == &pkt1); TEST_ASSERT_EQUAL_INT(1, res->users); TEST_ASSERT_NULL(res->next); diff --git a/tests/unittests/tests-sock_util/tests-sock_util.c b/tests/unittests/tests-sock_util/tests-sock_util.c index f95dd8cf23..627f5b5f3f 100644 --- a/tests/unittests/tests-sock_util/tests-sock_util.c +++ b/tests/unittests/tests-sock_util/tests-sock_util.c @@ -54,7 +54,6 @@ "path/that/doesnt/fit/inside/sixtyfour/" \ "chars/of/buffer/space" - static char addr[CONFIG_SOCK_URLPATH_MAXLEN]; static char urlpath[CONFIG_SOCK_URLPATH_MAXLEN]; @@ -160,7 +159,6 @@ static void test_sock_util_urlsplit__null_path_buffer(void) TEST_ASSERT_EQUAL_STRING(TEST_URL_LOCALPART, (char*)urlpath); } - static void test_sock_util_str2ep__ipv6_noport(void) { sock_udp_ep_t ep; @@ -199,7 +197,6 @@ static void test_sock_util_str2ep__ipv4_bracketed(void) TEST_ASSERT_EQUAL_INT(-EINVAL, sock_udp_str2ep(&ep, test_str)); } - static void test_sock_util_str2ep__invalid_bracket_missing(void) { sock_udp_ep_t ep; diff --git a/tests/unittests/tests-vfs/tests-vfs-mount-constfs.c b/tests/unittests/tests-vfs/tests-vfs-mount-constfs.c index 5cf14271de..601ae74fc8 100644 --- a/tests/unittests/tests-vfs/tests-vfs-mount-constfs.c +++ b/tests/unittests/tests-vfs/tests-vfs-mount-constfs.c @@ -151,7 +151,8 @@ static void test_vfs_constfs_read_lseek(void) TEST_ASSERT_EQUAL_INT(sizeof(str_data) / 2, pos); nbytes = vfs_read(fd, strbuf, sizeof(strbuf)); TEST_ASSERT_EQUAL_INT((sizeof(str_data) + 1) / 2, nbytes); /* + 1 for rounding up */ - TEST_ASSERT_EQUAL_STRING((const char *)&str_data[sizeof(str_data) / 2], (const char *)&strbuf[0]); + TEST_ASSERT_EQUAL_STRING((const char *)&str_data[sizeof(str_data) / 2], + (const char *)&strbuf[0]); /* lseek to near the end */ memset(strbuf, '\0', sizeof(strbuf)); @@ -159,7 +160,8 @@ static void test_vfs_constfs_read_lseek(void) TEST_ASSERT_EQUAL_INT(sizeof(str_data) - 1, pos); nbytes = vfs_read(fd, strbuf, sizeof(strbuf)); TEST_ASSERT_EQUAL_INT(1, nbytes); - TEST_ASSERT_EQUAL_STRING((const char *)&str_data[sizeof(str_data) - 1], (const char *)&strbuf[0]); + TEST_ASSERT_EQUAL_STRING((const char *)&str_data[sizeof(str_data) - 1], + (const char *)&strbuf[0]); res = vfs_fcntl(fd, F_GETFL, 0); TEST_ASSERT_EQUAL_INT(O_RDONLY, res);