X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-sys_times.c;h=1946fc644705d0389a73312f39a76de9ffc3e2ba;hb=200969d8ebed76c9b82837406a87cc767fafac1b;hp=5f367479c77781226545afd614610a7bcf4781f8;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/tests/test-sys_times.c b/tests/test-sys_times.c index 5f367479c..1946fc644 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-2012 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; }