Refactored SD card basic test
Refactored SD card basic test

Included return value check from fopen() functions in read/write testcases

dbestm/mbed,Archcady/mbed-os,kpurusho/mbed,tung7970/mbed-os,screamerbg/mbed,mmorenobarm/mbed-os,Tiryoh/mbed,theotherjimmy/mbed,andcor02/mbed-os,kpurusho/mbed,mbedmicro/mbed,tung7970/mbed-os-1,betzw/mbed-os,GustavWi/mbed,RonEld/mbed,ARM-software/mbed-beetle,fvincenzo/mbed-os,monkiineko/mbed-os,theotherjimmy/mbed,kpurusho/mbed,arostm/mbed-os,j-greffe/mbed-os,K4zuki/mbed,rosterloh/mbed,tung7970/mbed-os-1,NXPmicro/mbed,bentwire/mbed,Shengliang/mbed,Archcady/mbed-os,nabilbendafi/mbed,bulislaw/mbed-os,JasonHow44/mbed,cvtsi2sd/mbed-os,kjbracey-arm/mbed,nvlsianpu/mbed,ban4jp/mbed,dbestm/mbed,c1728p9/mbed-os,kl-cruz/mbed-os,ryankurte/mbed-os,jrjang/mbed,jeremybrodt/mbed,JasonHow44/mbed,bulislaw/mbed-os,nabilbendafi/mbed,bentwire/mbed,JasonHow44/mbed,maximmbed/mbed,FranklyDev/mbed,bikeNomad/mbed,kl-cruz/mbed-os,Marcomissyou/mbed,rgrover/mbed,pbrook/mbed,pbrook/mbed,tung7970/mbed-os-1,karsev/mbed-os,DanKupiniak/mbed,pedromes/mbed,screamerbg/mbed,arostm/mbed-os,autopulated/mbed,RonEld/mbed,xcrespo/mbed,jamesadevine/mbed,mazimkhan/mbed-os,mnlipp/mbed,wodji/mbed,pi19404/mbed,Willem23/mbed,karsev/mbed-os,YarivCol/mbed-os,RonEld/mbed,theotherjimmy/mbed,fpiot/mbed-ats,fahhem/mbed-os,nabilbendafi/mbed,xcrespo/mbed,al177/mbed,ryankurte/mbed-os,j-greffe/mbed-os,kjbracey-arm/mbed,nvlsianpu/mbed,bikeNomad/mbed,larks/mbed,bulislaw/mbed-os,brstew/MBED-BUILD,logost/mbed,monkiineko/mbed-os,jferreir/mbed,Tiryoh/mbed,pbrook/mbed,GustavWi/mbed,pradeep-gr/mbed-os5-onsemi,nRFMesh/mbed-os,fanghuaqi/mbed,xcrespo/mbed,tung7970/mbed-os,DanKupiniak/mbed,struempelix/mbed,maximmbed/mbed,wodji/mbed,CalSol/mbed,svastm/mbed,logost/mbed,jamesadevine/mbed,al177/mbed,andcor02/mbed-os,mmorenobarm/mbed-os,EmuxEvans/mbed,EmuxEvans/mbed,alertby/mbed,screamerbg/mbed,pedromes/mbed,tung7970/mbed-os,rosterloh/mbed,CalSol/mbed,FranklyDev/mbed,andreaslarssonublox/mbed,svogl/mbed-os,tung7970/mbed-os,bcostm/mbed-os,pi19404/mbed,NitinBhaskar/mbed,adamgreen/mbed,wodji/mbed,netzimme/mbed-os,sam-geek/mbed,Timmmm/mbed,bulislaw/mbed-os,andreaslarssonublox/mbed,nRFMesh/mbed-os,ban4jp/mbed,svogl/mbed-os,geky/mbed,EmuxEvans/mbed,andcor02/mbed-os,mmorenobarm/mbed-os,naves-thiago/mbed-midi,adustm/mbed,tung7970/mbed-os-1,nvlsianpu/mbed,c1728p9/mbed-os,maximmbed/mbed,getopenmono/mbed,HeadsUpDisplayInc/mbed,adustm/mbed,devanlai/mbed,catiedev/mbed-os,fvincenzo/mbed-os,pradeep-gr/mbed-os5-onsemi,bcostm/mbed-os,c1728p9/mbed-os,struempelix/mbed,sam-geek/mbed,andreaslarssonublox/mbed,ARM-software/mbed-beetle,devanlai/mbed,kl-cruz/mbed-os,tung7970/mbed-os,monkiineko/mbed-os,rgrover/mbed,mikaleppanen/mbed-os,kjbracey-arm/mbed,alertby/mbed,bulislaw/mbed-os,pedromes/mbed,jeremybrodt/mbed,infinnovation/mbed-os,hwfwgrp/mbed,adustm/mbed,NXPmicro/mbed,theotherjimmy/mbed,sam-geek/mbed,radhika-raghavendran/mbed-os5.1-onsemi,bulislaw/mbed-os,Sweet-Peas/mbed,netzimme/mbed-os,ryankurte/mbed-os,fahhem/mbed-os,svogl/mbed-os,kpurusho/mbed,mazimkhan/mbed-os,rosterloh/mbed,brstew/MBED-BUILD,nvlsianpu/mbed,maximmbed/mbed,geky/mbed,hwfwgrp/mbed,svogl/mbed-os,alertby/mbed,naves-thiago/mbed-midi,CalSol/mbed,Tiryoh/mbed,masaohamanaka/mbed,masaohamanaka/mbed,c1728p9/mbed-os,YarivCol/mbed-os,YarivCol/mbed-os,jpbrucker/mbed,mikaleppanen/mbed-os,logost/mbed,jpbrucker/mbed,betzw/mbed-os,dbestm/mbed,Archcady/mbed-os,RonEld/mbed,mazimkhan/mbed-os,wodji/mbed,Shengliang/mbed,kjbracey-arm/mbed,adamgreen/mbed,j-greffe/mbed-os,mikaleppanen/mbed-os,Marcomissyou/mbed,brstew/MBED-BUILD,struempelix/mbed,CalSol/mbed,karsev/mbed-os,rosterloh/mbed,fpiot/mbed-ats,Sweet-Peas/mbed,al177/mbed,svastm/mbed,fahhem/mbed-os,betzw/mbed-os,mazimkhan/mbed-os,NXPmicro/mbed,jpbrucker/mbed,devanlai/mbed,mikaleppanen/mbed-os,j-greffe/mbed-os,theotherjimmy/mbed,netzimme/mbed-os,Marcomissyou/mbed,logost/mbed,netzimme/mbed-os,mmorenobarm/mbed-os,kl-cruz/mbed-os,Willem23/mbed,fanghuaqi/mbed,Willem23/mbed,mnlipp/mbed,autopulated/mbed,infinnovation/mbed-os,K4zuki/mbed,pradeep-gr/mbed-os5-onsemi,geky/mbed,jamesadevine/mbed,andcor02/mbed-os,fanghuaqi/mbed,mikaleppanen/mbed-os,rosterloh/mbed,svogl/mbed-os,karsev/mbed-os,theotherjimmy/mbed,pi19404/mbed,Shengliang/mbed,Marcomissyou/mbed,bikeNomad/mbed,arostm/mbed-os,xcrespo/mbed,xcrespo/mbed,hwfwgrp/mbed,jamesadevine/mbed,nRFMesh/mbed-os,j-greffe/mbed-os,svogl/mbed-os,getopenmono/mbed,betzw/mbed-os,RonEld/mbed,ban4jp/mbed,struempelix/mbed,andreaslarssonublox/mbed,geky/mbed,fahhem/mbed-os,Timmmm/mbed,hwfwgrp/mbed,pedromes/mbed,adustm/mbed,jrjang/mbed,GustavWi/mbed,hwfwgrp/mbed,jpbrucker/mbed,dbestm/mbed,masaohamanaka/mbed,struempelix/mbed,Willem23/mbed,HeadsUpDisplayInc/mbed,infinnovation/mbed-os,nabilbendafi/mbed,tung7970/mbed-os-1,larks/mbed,adamgreen/mbed,larks/mbed,wodji/mbed,Timmmm/mbed,Tiryoh/mbed,maximmbed/mbed,rgrover/mbed,cvtsi2sd/mbed-os,jeremybrodt/mbed,GustavWi/mbed,larks/mbed,devanlai/mbed,monkiineko/mbed-os,mbedmicro/mbed,larks/mbed,bcostm/mbed-os,rosterloh/mbed,jeremybrodt/mbed,nabilbendafi/mbed,maximmbed/mbed,adamgreen/mbed,DanKupiniak/mbed,devanlai/mbed,RonEld/mbed,wodji/mbed,fvincenzo/mbed-os,naves-thiago/mbed-midi,mazimkhan/mbed-os,mmorenobarm/mbed-os,masaohamanaka/mbed,adamgreen/mbed,logost/mbed,radhika-raghavendran/mbed-os5.1-onsemi,jrjang/mbed,screamerbg/mbed,screamerbg/mbed,jferreir/mbed,HeadsUpDisplayInc/mbed,Timmmm/mbed,cvtsi2sd/mbed-os,dbestm/mbed,fpiot/mbed-ats,geky/mbed,EmuxEvans/mbed,mnlipp/mbed,naves-thiago/mbed-midi,netzimme/mbed-os,bentwire/mbed,al177/mbed,Archcady/mbed-os,fpiot/mbed-ats,fpiot/mbed-ats,brstew/MBED-BUILD,Sweet-Peas/mbed,logost/mbed,fahhem/mbed-os,catiedev/mbed-os,NXPmicro/mbed,pradeep-gr/mbed-os5-onsemi,adustm/mbed,al177/mbed,arostm/mbed-os,andreaslarssonublox/mbed,nvlsianpu/mbed,pbrook/mbed,jpbrucker/mbed,CalSol/mbed,catiedev/mbed-os,rgrover/mbed,fanghuaqi/mbed,NitinBhaskar/mbed,screamerbg/mbed,nRFMesh/mbed-os,brstew/MBED-BUILD,rgrover/mbed,HeadsUpDisplayInc/mbed,getopenmono/mbed,Marcomissyou/mbed,struempelix/mbed,pi19404/mbed,pbrook/mbed,Shengliang/mbed,Archcady/mbed-os,svastm/mbed,ARM-software/mbed-beetle,netzimme/mbed-os,jamesadevine/mbed,al177/mbed,ban4jp/mbed,jferreir/mbed,fvincenzo/mbed-os,NXPmicro/mbed,JasonHow44/mbed,cvtsi2sd/mbed-os,mazimkhan/mbed-os,autopulated/mbed,Shengliang/mbed,Willem23/mbed,betzw/mbed-os,pedromes/mbed,Sweet-Peas/mbed,arostm/mbed-os,mbedmicro/mbed,nRFMesh/mbed-os,NitinBhaskar/mbed,radhika-raghavendran/mbed-os5.1-onsemi,devanlai/mbed,jrjang/mbed,K4zuki/mbed,GustavWi/mbed,JasonHow44/mbed,dbestm/mbed,getopenmono/mbed,kpurusho/mbed,infinnovation/mbed-os,bentwire/mbed,jrjang/mbed,kpurusho/mbed,adamgreen/mbed,alertby/mbed,larks/mbed,catiedev/mbed-os,NXPmicro/mbed,EmuxEvans/mbed,fanghuaqi/mbed,fvincenzo/mbed-os,infinnovation/mbed-os,mmorenobarm/mbed-os,jamesadevine/mbed,sam-geek/mbed,mnlipp/mbed,alertby/mbed,JasonHow44/mbed,fpiot/mbed-ats,getopenmono/mbed,bentwire/mbed,jpbrucker/mbed,jferreir/mbed,FranklyDev/mbed,jeremybrodt/mbed,monkiineko/mbed-os,pedromes/mbed,ARM-software/mbed-beetle,infinnovation/mbed-os,betzw/mbed-os,naves-thiago/mbed-midi,svastm/mbed,K4zuki/mbed,ryankurte/mbed-os,CalSol/mbed,masaohamanaka/mbed,ryankurte/mbed-os,Archcady/mbed-os,arostm/mbed-os,FranklyDev/mbed,c1728p9/mbed-os,kl-cruz/mbed-os,bentwire/mbed,Tiryoh/mbed,EmuxEvans/mbed,pi19404/mbed,naves-thiago/mbed-midi,jferreir/mbed,mnlipp/mbed,andcor02/mbed-os,YarivCol/mbed-os,Sweet-Peas/mbed,getopenmono/mbed,Marcomissyou/mbed,YarivCol/mbed-os,nvlsianpu/mbed,mikaleppanen/mbed-os,j-greffe/mbed-os,NitinBhaskar/mbed,xcrespo/mbed,mbedmicro/mbed,cvtsi2sd/mbed-os,hwfwgrp/mbed,Timmmm/mbed,cvtsi2sd/mbed-os,bcostm/mbed-os,andcor02/mbed-os,K4zuki/mbed,karsev/mbed-os,catiedev/mbed-os,YarivCol/mbed-os,Timmmm/mbed,Sweet-Peas/mbed,catiedev/mbed-os,alertby/mbed,fahhem/mbed-os,kl-cruz/mbed-os,masaohamanaka/mbed,HeadsUpDisplayInc/mbed,bcostm/mbed-os,svastm/mbed,pradeep-gr/mbed-os5-onsemi,brstew/MBED-BUILD,pi19404/mbed,autopulated/mbed,FranklyDev/mbed,adustm/mbed,K4zuki/mbed,jferreir/mbed,DanKupiniak/mbed,radhika-raghavendran/mbed-os5.1-onsemi,radhika-raghavendran/mbed-os5.1-onsemi,monkiineko/mbed-os,ryankurte/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,sam-geek/mbed,nRFMesh/mbed-os,NitinBhaskar/mbed,HeadsUpDisplayInc/mbed,Shengliang/mbed,ban4jp/mbed,c1728p9/mbed-os,karsev/mbed-os,Tiryoh/mbed,autopulated/mbed,autopulated/mbed,ban4jp/mbed,jrjang/mbed,mnlipp/mbed,pradeep-gr/mbed-os5-onsemi,bikeNomad/mbed,pbrook/mbed,mbedmicro/mbed,bcostm/mbed-os,nabilbendafi/mbed,bikeNomad/mbed