From 1b57099566f7bdfecd25af23f8bb76a825ec3d45 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 17 Mar 2006 16:41:04 +0000 Subject: [PATCH] Even more dancing around the different tm mktime variations on different OS's. I think we have GNU/Linux, cygwin, and BSDI now. --- test/testiso9660.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/testiso9660.c b/test/testiso9660.c index fd89cc52..632f835e 100644 --- a/test/testiso9660.c +++ b/test/testiso9660.c @@ -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 @@ -260,8 +260,7 @@ main (int argc, const char *argv[]) iso9660_set_ltime(p_tm, <ime); iso9660_get_ltime(<ime, &tm); t2 = mktime(&tm); - if ( t1 != t2 ) { - time_compare(p_tm, &tm) ; + if ( t1 != t2 && ! time_compare(p_tm, &tm) ) { printf("local time retrieved with iso9660_get_ltime() not\n"); printf("same as that set with iso9660_set_ltime().\n"); return 43; @@ -272,8 +271,7 @@ main (int argc, const char *argv[]) iso9660_set_ltime(p_tm, <ime); iso9660_get_ltime(<ime, &tm); t2 = mktime(&tm); - if ( t1 != t2 ) { - time_compare(p_tm, &tm) ; + if ( t1 != t2 && ! time_compare(p_tm, &tm) ) { printf("GMT time retrieved with iso9660_get_ltime() not\n"); printf("same as that set with iso9660_set_ltime().\n"); return 44;