Skip to content

Commit 38dc2d1

Browse files
MonekaLakshmiplaksh175_comcast
authored andcommitted
RDKEMW-10008: Update CapMock.cpp
1 parent 55bec48 commit 38dc2d1

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

source/test/mocks/CapMock.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19+
#include <cstdarg>
1920
#include "test/mocks/CapMock.h"
2021

2122
extern CapMock *g_CapMock;

test/run_ut.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
2-
cd ../
3-
ENABLE_COV=true
2+
3+
ENABLE_COV=false
44

55
if [ "x$1" = "x--enable-cov" ]; then
66
echo "Enabling coverage options"
@@ -10,17 +10,18 @@ if [ "x$1" = "x--enable-cov" ]; then
1010
ENABLE_COV=true
1111
fi
1212

13-
autoreconf --install
13+
cd ../
14+
if [ "$ENABLE_COV" = true ]; then
15+
make distclean 2>/dev/null || true
16+
find . -name "*.gcda" -delete
17+
find . -name "*.gcno" -delete
18+
fi
1419

20+
autoreconf --install
1521
./configure --enable-gtestapp
1622

17-
make clean
18-
find . -name "*.gcda" -delete
19-
find . -name "*.gcno" -delete
2023
make -C source/test
21-
2224
echo "**** Compiling libunpriv_gtest ****"
23-
2425
./source/test/libunpriv_gtest.bin
2526

2627
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)