X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_times.c;h=d6f28f5e8ae964dea2bf47ef832259a66dfeed3d;hb=c50edd6462eaaae00f8549f9bad99d4e68b94376;hp=f312372f48448fcd8500aaf421cf87b304a9ae75;hpb=9903ce8582d50b6cd5338dd9ca06b674da7a6c36;p=gnulib.git diff --git a/tests/test-sys_times.c b/tests/test-sys_times.c index f312372f4..d6f28f5e8 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-2013 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; }