X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_times.c;h=6765a0eb12ad36a1dc1f44590a8b18d3a580a5c5;hb=82e60758d286043fbeca68ac04f782bc46b4bc34;hp=5f367479c77781226545afd614610a7bcf4781f8;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/tests/test-sys_times.c b/tests/test-sys_times.c index 5f367479c..6765a0eb1 100644 --- a/tests/test-sys_times.c +++ b/tests/test-sys_times.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2008-2011 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; }