Skip to content

Commit 03cd5f4

Browse files
committed
Merge.
2 parents 1f80fe6 + 46b039c commit 03cd5f4

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

tests/appender_test/main.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ main()
117117
// Test appender's error handling for wrong layout.
118118

119119
{
120-
std::istringstream propsStream (
121-
"layout=log4cplus::WrongLayout");
120+
tistringstream propsStream (
121+
LOG4CPLUS_TEXT ("layout=log4cplus::WrongLayout"));
122122
Properties props (propsStream);
123123
SharedObjectPtr<Appender> append (
124124
new ConsoleAppender (props));
@@ -128,8 +128,8 @@ main()
128128
// Test threshold parsing.
129129

130130
{
131-
std::istringstream propsStream (
132-
"Threshold=ERROR");
131+
tistringstream propsStream (
132+
LOG4CPLUS_TEXT ("Threshold=ERROR"));
133133
Properties props (propsStream);
134134
SharedObjectPtr<Appender> append (
135135
new ConsoleAppender (props));
@@ -139,8 +139,8 @@ main()
139139
// Test threshold parsing of wrong log level.
140140

141141
{
142-
std::istringstream propsStream (
143-
"Threshold=WRONG");
142+
tistringstream propsStream (
143+
LOG4CPLUS_TEXT ("Threshold=WRONG"));
144144
Properties props (propsStream);
145145
SharedObjectPtr<Appender> append (
146146
new ConsoleAppender (props));
@@ -150,8 +150,8 @@ main()
150150
// Test wrong filter parsing.
151151

152152
{
153-
std::istringstream propsStream (
154-
"filters.1=log4cplus::spi::WrongFilter");
153+
tistringstream propsStream (
154+
LOG4CPLUS_TEXT ("filters.1=log4cplus::spi::WrongFilter"));
155155
Properties props (propsStream);
156156
SharedObjectPtr<Appender> append (
157157
new ConsoleAppender (props));

tests/fileappender_test/main.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ main()
3535
}
3636

3737
{
38-
std::istringstream propsStream ("File=");
38+
tistringstream propsStream (LOG4CPLUS_TEXT ("File="));
3939
helpers::Properties props (propsStream);
4040
FileAppender appender (props);
4141
appender.setName (LOG4CPLUS_TEXT ("Second"));
4242
}
4343

4444
{
45-
std::istringstream propsStream ("File=nonexistent/Test.log");
45+
tistringstream propsStream (
46+
LOG4CPLUS_TEXT("File=nonexistent/Test.log"));
4647
helpers::Properties props (propsStream);
4748
FileAppender appender (props);
4849
appender.setName (LOG4CPLUS_TEXT ("Third"));

tests/propertyconfig_test/main.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ main()
3131

3232
// Test that DOS EOLs in property files get removed.
3333
#define TEST_TEXT LOG4CPLUS_TEXT ("this is a test with DOS EOL-->")
34-
tistringstream propsStream ("text=" TEST_TEXT "\r\n");
34+
tistringstream propsStream (
35+
LOG4CPLUS_TEXT ("text=") TEST_TEXT LOG4CPLUS_TEXT ("\r\n"));
3536
Properties props (propsStream);
3637
LOG4CPLUS_ASSERT (root,
3738
props.getProperty (LOG4CPLUS_TEXT ("text")) == TEST_TEXT);

0 commit comments

Comments
 (0)