Skip to content

Commit

Permalink
Add Signal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Aug 23, 2021
1 parent 7c016f0 commit 7a32cd6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unittest/vslib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ tests_SOURCES = main.cpp \
TestResourceLimiter.cpp \
TestResourceLimiterContainer.cpp \
TestResourceLimiterParser.cpp \
TestSaiUnittests.cpp
TestSaiUnittests.cpp \
TestSelectableFd.cpp \
TestSignal.cpp

tests_CXXFLAGS = $(DBGFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS_COMMON)
tests_LDADD = $(LDADD_GTEST) $(top_srcdir)/vslib/libSaiVS.a -lhiredis -lswsscommon -lnl-genl-3 -lnl-nf-3 -lnl-route-3 -lnl-3 \
Expand Down
12 changes: 12 additions & 0 deletions unittest/vslib/TestSignal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "Signal.h"

#include <gtest/gtest.h>

using namespace saivs;

TEST(Signal, notifyOne)
{
Signal s;

s.notifyOne();
}

0 comments on commit 7a32cd6

Please sign in to comment.