Skip to content

Commit 475aeb3

Browse files
committed
oem test
1 parent 4fd9bd1 commit 475aeb3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/advanced_test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ int main(int argc, char *argv[])
9292
#else
9393
usleep((rand()%3000)*1000);
9494
#endif
95-
break;
9695
}
9796

9897
#ifdef WIN32
@@ -103,11 +102,8 @@ int main(int argc, char *argv[])
103102
// sorry guys, this test is in russian
104103
#ifdef LOG4Z_OEM_CONSOLE
105104
LOGI("(LOG4Z_OEM_CONSOLE enabled)");
106-
#else
107-
LOGI("(LOG4Z_OEM_CONSOLE disabled)");
108-
#endif
109-
LOGI("Following string should be in CP1251 if compiled without LOG4Z_OEM_CONSOLE and in OEM coding if compiled with LOG4Z_OEM_CONSOLE (for RU locale oem=866)");
110-
std::fstream fs;
105+
LOGI("Following string should be in CP1251 if compiled without LOG4Z_OEM_CONSOLE and in OEM coding if compiled with LOG4Z_OEM_CONSOLE (for RU locale oem=866)");
106+
std::fstream fs;
111107
fs.open("./oem_test_CP1251.txt", std::ios::binary | std::ios::in);
112108
if (fs.is_open())
113109
{
@@ -116,6 +112,10 @@ int main(int argc, char *argv[])
116112
LOGI(buf);
117113
fs.close();
118114
}
115+
#else
116+
LOGI("(LOG4Z_OEM_CONSOLE disabled)");
117+
#endif
118+
119119
#endif
120120

121121
LOGA("main quit .. hit 'enter' to exit.");

0 commit comments

Comments
 (0)