Skip to content

Commit ed90304

Browse files
committed
Correct test
* ACE/tests/Time_Value_Test.cpp:
1 parent 4a6babf commit ed90304

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ACE/tests/Time_Value_Test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int test_year_month (const ACE_Time_Value& time, long year, long month)
6262
if (dt.year () != year)
6363
{
6464
ACE_ERROR ((LM_ERROR,
65-
ACE_TEXT ("time year should be %d not %d\n"), year, dt.year ()));
65+
ACE_TEXT ("time year should be %d not %d\n"), dt.year (), year));
6666
++ret;
6767
}
6868
else
@@ -73,7 +73,7 @@ int test_year_month (const ACE_Time_Value& time, long year, long month)
7373
if (dt.month () != month)
7474
{
7575
ACE_ERROR ((LM_ERROR,
76-
ACE_TEXT ("time month should be %d not %d\n"), month, dt.month ()));
76+
ACE_TEXT ("time month should be %d not %d\n"), dt.month (), month));
7777
++ret;
7878
}
7979
else
@@ -301,7 +301,7 @@ run_main (int, ACE_TCHAR *[])
301301
ACE_Time_Value dt20370726 ((time_t)2132203444);
302302
ret += test_year_month (dt20370726, 2037, 7);
303303
ACE_Time_Value dt20570726 ((time_t)2763355444);
304-
ret += test_year_month (dt20570726, 2050, 7);
304+
ret += test_year_month (dt20570726, 2057, 7);
305305
ACE_END_TEST;
306306

307307
return ret;

0 commit comments

Comments
 (0)