diff options
author | Adam Mitz <mitza@ociweb.com> | 2019-02-13 17:11:37 -0600 |
---|---|---|
committer | Adam Mitz <mitza@ociweb.com> | 2019-02-13 17:16:55 -0600 |
commit | a7255f41da266630886c26007ea41a95491f396c (patch) | |
tree | ddec02e5c3662c88cc38d21e57bda3462f464308 /ACE/tests/Arg_Shifter_Test.cpp | |
parent | 8d35eb8b12f4a9bae490620d5a0cf52d7f8f717e (diff) | |
download | ATCD-a7255f41da266630886c26007ea41a95491f396c.tar.gz |
Support instantiating ACE_Arg_Shifter_T<char> in wchar builds.
Cleaned up some comments and style guidelines violations.
Diffstat (limited to 'ACE/tests/Arg_Shifter_Test.cpp')
-rw-r--r-- | ACE/tests/Arg_Shifter_Test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ACE/tests/Arg_Shifter_Test.cpp b/ACE/tests/Arg_Shifter_Test.cpp index 854e47122f9..08bb29c2900 100644 --- a/ACE/tests/Arg_Shifter_Test.cpp +++ b/ACE/tests/Arg_Shifter_Test.cpp @@ -68,6 +68,20 @@ run_main (int, ACE_TCHAR *[]) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("argshifter 2 test failed\n")), -1); } +#ifdef ACE_USES_WCHAR + const char *args3[] = { + "-ORBDebugLevel 0", + "-o", + "server.ior", + }; + int argc3 = sizeof args3 / sizeof args3[0]; + ACE_Arg_Shifter_T<char> arg_shifter_char (argc3, args3); + if (15 != arg_shifter_char.cur_arg_strncasecmp ("-ORBDebugLevel")) + { + ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("argshifter<char> failed\n")), -1); + } +#endif + ACE_END_TEST; return 0; } |