X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_times.c;h=70a6bf5adf5e9522b7d291a00ec15019252780cd;hb=c5728261c324a75f8d23dd7d10cb42dde9420227;hp=f312372f48448fcd8500aaf421cf87b304a9ae75;hpb=9903ce8582d50b6cd5338dd9ca06b674da7a6c36;p=gnulib.git diff --git a/tests/test-sys_times.c b/tests/test-sys_times.c index f312372f4..70a6bf5ad 100644 --- a/tests/test-sys_times.c +++ b/tests/test-sys_times.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. 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 @@ -20,10 +20,11 @@ #include -struct tms tms; +static struct tms tms; int main (void) { - return 0; + clock_t t = tms.tms_utime + tms.tms_stime + tms.tms_cutime + tms.tms_cstime; + return t; }