Skip to content

Commit

Permalink
Workaround added until catchorg/Catch2#2935 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shpalani authored and agarwalishita committed Nov 20, 2024
1 parent 047caaa commit 1af48f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/netebpfext_unit/netebpfext_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,11 +617,23 @@ sock_addr_thread_function(
break;
case SOCK_ADDR_TEST_TYPE_CONNECT:
default:
// TODO: Bug filed in catchorg/Catch2#2935. Revert this change once the bug is fixed.
#ifdef _DEBUG
result = FWP_ACTION_PERMIT;
#else
result = helper->test_cgroup_inet4_connect(parameters);
#endif
break;
}

#ifdef _DEBUG
bool validate = (result == _get_fwp_sock_addr_action(port_number) || fault_injection_enabled);
if (!validate) {
REQUIRE(false);
}
#else
REQUIRE((result == _get_fwp_sock_addr_action(port_number) || fault_injection_enabled));
#endif
}
}

Expand Down

0 comments on commit 1af48f0

Please sign in to comment.