Skip to content

Commit f686929

Browse files
authored
[citadel] Backport "Remove problematic discovery test #(336)" (#339)
* [citadel] Backport "Remove problematic discovery test #(336)" Signed-off-by: Michael Carroll <michael@openrobotics.org> * Disabled needs to be all caps Signed-off-by: Michael Carroll <michael@openrobotics.org>
1 parent 0be3a49 commit f686929

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Discovery_TEST.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,16 @@ TEST(DiscoveryTest, TestActivity)
523523
discovery1.TestActivity(proc2Uuid, false);
524524
}
525525

526+
/// Logic to disable the following test via Linux
527+
#if defined __linux__
528+
#define TEST_NAME DISABLED_WrongIgnIp
529+
#else
530+
#define TEST_NAME WrongIgnIp
531+
#endif // defined __linux__
532+
526533
//////////////////////////////////////////////////
527534
/// \brief Check that a wrong IGN_IP value makes HostAddr() to return 127.0.0.1
528-
TEST(DiscoveryTest, WrongIgnIp)
535+
TEST(DiscoveryTest, TEST_NAME)
529536
{
530537
// Save the current value of IGN_IP environment variable.
531538
std::string ignIp;

0 commit comments

Comments
 (0)