X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_times.c;h=70a6bf5adf5e9522b7d291a00ec15019252780cd;hb=880d107;hp=5f367479c77781226545afd614610a7bcf4781f8;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/tests/test-sys_times.c b/tests/test-sys_times.c index 5f367479c..70a6bf5ad 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, 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; }