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;