Author: mturk
Date: Sat Aug 29 16:06:35 2009
New Revision: 809152
URL: http://svn.apache.org/viewvc?rev=809152&view=rev
Log:
Fix typo
Modified:
commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
Modified: commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c?rev=809152&r1=809151&r2=809152&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c Sat Aug 29
16:06:35 2009
@@ -410,7 +410,7 @@
* 2002-08-14 12:05:36.186711 -25200 [257 Sat].
* Which happens to be when I wrote the new tests.
*/
-static acr_time_t test_now = ACR_INT64_C(1032030336186711);
+static acr_time_t test_2002 = ACR_INT64_C(1032030336186711);
static acr_time_t test_1980 = ACR_INT64_C(315532800000000);
static int test_times(int argc, const char *const argv[])
{
@@ -423,16 +423,16 @@
t2 = ACR_Dos2AcrTime(d1);
if (t1 != t2) {
int td;
- acr_time_t tu = t1 / ACR_USEC_PER_SEC;
+ acr_time_t tu = ACR_ALIGN((t1 / ACR_USEC_PER_SEC), 2);
tu = tu * ACR_USEC_PER_SEC;
td = (int)(tu-t2);
- if (td && td != ACR_USEC_PER_SEC) {
+ if (td) {
/* They should differ in usecs */
fprintf(stderr, "Diff is %d\n", td);
failed++;
}
}
- d2 = ACR_Acr2DosTime(test_now);
+ d2 = ACR_Acr2DosTime(test_2002);
printf("Dos Time 1 is %04x - %04x\n", d2 >> 16, d2 & 0xffff);
printf("Acr Time 1 is %lld\n", ACR_Dos2AcrTime(d2));
printf("Acr Time 1 is %lld\n", ACR_Dos2AcrTime(d2+1));