-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2131 - Make -ORBListenerInterfaces work properly as documented and tested #2132
Open
nickwilliams-zaxiom
wants to merge
12
commits into
DOCGroup:master
Choose a base branch
from
nickwilliams-zaxiom:ORBListenerInterfaces_IPv6_fix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6924b12
Fix -ORBListenerInterfaces to work properly as documented and tested
nickwilliams-zaxiom a118efb
Address some Fuzz and Codacy issues
nickwilliams-zaxiom e260ba6
Fix wchar build failures
nickwilliams-zaxiom cf6386f
Fix wchar build failures
nickwilliams-zaxiom 54a0b63
Fix wchar build failures
nickwilliams-zaxiom 7a819e0
Fix wchar build failures
nickwilliams-zaxiom 23b2e4f
CodeFactor and use shared_ptr to string instead of char *
nickwilliams-zaxiom 168ccf2
Add McastListenerInterfaces test to tao_other_tests.lst
nickwilliams-zaxiom d7a652a
Initialize if_name_ in header instead of constructor init list
nickwilliams-zaxiom 8cceee4
Ignore .DS_Store
nickwilliams-zaxiom 18adedc
Remove now-unnecessary ignores
nickwilliams-zaxiom beef835
Merge branch 'master' into ORBListenerInterfaces_IPv6_fix
jwillemsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
*S_T.inl | ||
*.bmak | ||
*.recipe | ||
.DS_Store | ||
|
||
.depend.* | ||
GNUmakefile* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
TestC.cpp | ||
TestC.h | ||
TestC.inl | ||
TestS.cpp | ||
TestS.h | ||
client | ||
server | ||
if_addrs_helper |
43 changes: 43 additions & 0 deletions
43
TAO/orbsvcs/tests/Miop/McastListenerInterfaces/McastListenerInterfaces.mpc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// -*- MPC -*- | ||
project(*IDL): taoidldefaults { | ||
IDL_Files { | ||
Test.idl | ||
} | ||
custom_only = 1 | ||
} | ||
|
||
project(*Server): orbsvcsexe, portablegroup { | ||
exename = server | ||
after += *IDL | ||
|
||
Source_Files { | ||
Test_impl.cpp | ||
server.cpp | ||
TestC.cpp | ||
TestS.cpp | ||
} | ||
IDL_Files { | ||
} | ||
} | ||
|
||
project(*Client): taoexe { | ||
exename = client | ||
after += *IDL | ||
|
||
Source_Files { | ||
client.cpp | ||
TestC.cpp | ||
} | ||
IDL_Files { | ||
} | ||
} | ||
|
||
project(*Helper) { | ||
exename = if_addrs_helper | ||
|
||
Header_Files { | ||
} | ||
Source_Files { | ||
if_addrs_helper.cpp | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
This test verifies the proper behavior of the -ORBListenerInterfaces option on IPv4 and IPv6 with values *=ip_addr, | ||
*=interface_name, and CopyPreferredInterfaces. The latter requires also using the -ORBPreferredInterface option. | ||
It does so by doing the following: | ||
|
||
1. Calling the local helper utility if_addrs_helper to determine the system name of the loopback interface and | ||
ethernet-like interface(s) with routable IPv4 and IPv6 addresses, as well as the correct IP addresses for those | ||
interfaces. | ||
|
||
2. Creating a matrix of tests across these interfaces, IP addresses, and the *=ip_addr, *=interface_name, and | ||
CopyPreferredInterfaces option values. | ||
|
||
3. Executing the matrix of tests and asserting a specific failure (but no other failures) for loopback interfaces and | ||
no failures for non-loopback interfaces. Specifically, for loopback interfaces, the server process should never | ||
receive the instruction to shut down from the client, and so the test should time out waiting on the server process | ||
and elect to kill it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef _TEST_IDL_ | ||
#define _TEST_IDL_ | ||
|
||
module Test | ||
{ | ||
interface Server | ||
{ | ||
oneway void shutdown (); | ||
}; | ||
}; | ||
|
||
#endif // _TEST_IDL_ |
12 changes: 12 additions & 0 deletions
12
TAO/orbsvcs/tests/Miop/McastListenerInterfaces/Test_impl.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "Test_impl.h" | ||
|
||
|
||
Server_impl::Server_impl (CORBA::ORB_ptr orb) | ||
: orb_ (CORBA::ORB::_duplicate (orb)) | ||
{ | ||
} | ||
|
||
void Server_impl::shutdown () | ||
{ | ||
this->orb_->shutdown (false); | ||
} |
17 changes: 17 additions & 0 deletions
17
TAO/orbsvcs/tests/Miop/McastListenerInterfaces/Test_impl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef TEST_IMPL_HPP | ||
#define TEST_IMPL_HPP | ||
|
||
#include "TestS.h" | ||
|
||
class Server_impl : public virtual POA_Test::Server | ||
{ | ||
public: | ||
Server_impl (CORBA::ORB_ptr orb); | ||
|
||
virtual void shutdown (); | ||
|
||
private: | ||
CORBA::ORB_var orb_; | ||
}; | ||
|
||
#endif /* TEST_IMPL_HPP */ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Add virtual destructor and class documentation
The class is missing:
📝 Committable suggestion