Skip to content

Commit

Permalink
TEST: add a segfault :)
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Oct 5, 2024
1 parent a0f30c3 commit 7959b01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/Packet++Test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "Logger.h"
#include "../../Tests/Packet++Test/Utils/TestUtils.h"

#include <signal.h>

static struct option PacketTestOptions[] = {
{ "include-tags", required_argument, nullptr, 't' },
{ "exclude-tags", required_argument, nullptr, 'x' },
Expand Down Expand Up @@ -120,6 +122,7 @@ int main(int argc, char* argv[])
PTF_RUN_TEST(EthDot3LayerParsingTest, "eth_dot3;eth");
PTF_RUN_TEST(EthDot3LayerCreateEditTest, "eth_dot3;eth");

raise(SIGSEGV);
PTF_RUN_TEST(VlanParseAndCreation, "vlan");
PTF_RUN_TEST(QinQ802_1adParse, "vlan");
PTF_RUN_TEST(MplsLayerTest, "mpls");
Expand Down

0 comments on commit 7959b01

Please sign in to comment.