From 5908486078359d4ca93c178b5efc5a2654f12c1c Mon Sep 17 00:00:00 2001 From: "Rocky Bernstein (VCDImager Developer)" Date: Sun, 20 Dec 2009 05:55:53 +0100 Subject: [PATCH] Disable some iso9660 tests when TM_GMTOFF is not available --- test/testiso9660.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/testiso9660.c b/test/testiso9660.c index de42edf0..7f826906 100644 --- a/test/testiso9660.c +++ b/test/testiso9660.c @@ -1,7 +1,7 @@ /* $Id: testiso9660.c,v 1.23 2008/06/03 08:40:15 rocky Exp $ - Copyright (C) 2003, 2006, 2007, 2008 Rocky Bernstein + Copyright (C) 2003, 2006, 2007, 2008, 2009 Rocky Bernstein This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -244,6 +244,7 @@ main (int argc, const char *argv[]) p_tm = localtime(&now); iso9660_set_dtime(p_tm, &dtime); iso9660_get_dtime(&dtime, true, &tm); +#ifdef HAVE_TM_GMTOFF if ( !time_compare(p_tm, &tm) ) { return 41; } @@ -253,12 +254,13 @@ main (int argc, const char *argv[]) printf("Error returned by iso9660_get_dtime\n"); return 42; } - + if ( !time_compare(p_tm, &tm) ) { printf("GMT time retrieved with iso9660_get_dtime() not same as that\n"); printf("set with iso9660_set_dtime().\n"); return 43; } +#endif { p_tm = localtime(&now);