Even more dancing around the different tm mktime variations on different
OS's. I think we have GNU/Linux, cygwin, and BSDI now.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: testiso9660.c,v 1.11 2006/03/17 16:31:38 rocky Exp $
|
$Id: testiso9660.c,v 1.12 2006/03/17 16:41:04 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2003, 2006 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2003, 2006 Rocky Bernstein <rocky@panix.com>
|
||||||
|
|
||||||
@@ -260,8 +260,7 @@ main (int argc, const char *argv[])
|
|||||||
iso9660_set_ltime(p_tm, <ime);
|
iso9660_set_ltime(p_tm, <ime);
|
||||||
iso9660_get_ltime(<ime, &tm);
|
iso9660_get_ltime(<ime, &tm);
|
||||||
t2 = mktime(&tm);
|
t2 = mktime(&tm);
|
||||||
if ( t1 != t2 ) {
|
if ( t1 != t2 && ! time_compare(p_tm, &tm) ) {
|
||||||
time_compare(p_tm, &tm) ;
|
|
||||||
printf("local time retrieved with iso9660_get_ltime() not\n");
|
printf("local time retrieved with iso9660_get_ltime() not\n");
|
||||||
printf("same as that set with iso9660_set_ltime().\n");
|
printf("same as that set with iso9660_set_ltime().\n");
|
||||||
return 43;
|
return 43;
|
||||||
@@ -272,8 +271,7 @@ main (int argc, const char *argv[])
|
|||||||
iso9660_set_ltime(p_tm, <ime);
|
iso9660_set_ltime(p_tm, <ime);
|
||||||
iso9660_get_ltime(<ime, &tm);
|
iso9660_get_ltime(<ime, &tm);
|
||||||
t2 = mktime(&tm);
|
t2 = mktime(&tm);
|
||||||
if ( t1 != t2 ) {
|
if ( t1 != t2 && ! time_compare(p_tm, &tm) ) {
|
||||||
time_compare(p_tm, &tm) ;
|
|
||||||
printf("GMT time retrieved with iso9660_get_ltime() not\n");
|
printf("GMT time retrieved with iso9660_get_ltime() not\n");
|
||||||
printf("same as that set with iso9660_set_ltime().\n");
|
printf("same as that set with iso9660_set_ltime().\n");
|
||||||
return 44;
|
return 44;
|
||||||
|
|||||||
Reference in New Issue
Block a user