Skip to content

Commit

Permalink
Disable signal test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Sep 1, 2021
1 parent f76990e commit 6fe131b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/integration/faulty_plugins.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <gtest/gtest.h>
#include <gtest/gtest-death-test.h>

#include <ignition/utilities/ExtraTestMacros.hh>

#include "Manager.hh"

std::string getConfig(const std::string &_pluginName)
Expand All @@ -36,9 +38,9 @@ bool runConfig(const std::string &_config)
return mgr.RunConfig(_config);
}

TEST(PluginDeathTest, SegfaultOnLoad)
// Disable test on Windows, no KilledBySignal available in that platform
TEST(PluginDeathTest, IGN_UTILS_TEST_DISABLED_ON_WIN32(SegfaultOnLoad))
{
auto config = getConfig("SegfaultOnLoad");
EXPECT_EXIT(runConfig(config), testing::KilledBySignal(SIGSEGV), "");
EXPECT_EXIT(runConfig(config), ::testing::KilledBySignal(SIGSEGV), "");
}

0 comments on commit 6fe131b

Please sign in to comment.