From: brarcher Date: Sun, 13 Sep 2015 16:39:05 +0000 (+0000) Subject: Add LGPL header to files without the header X-Git-Tag: 0.11.0~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d87bfbd66fabbd44bf7a7e2b07131799e27df6dc;p=check Add LGPL header to files without the header git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1222 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/NEWS b/NEWS index 1a9bb26..eccad93 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,9 @@ In Development: # Mentioning Check 0.10.0 for now, to fix distcheck target until next release +* Add LGPL header to files where it was missing + Bug #110 + Sun Aug 2, 2015: Released Check 0.10.0 based on r1217 (2015-08-02 19:21:14 +0000) diff --git a/doc/example/src/main.c b/doc/example/src/main.c index 75e52cb..382a3e2 100644 --- a/doc/example/src/main.c +++ b/doc/example/src/main.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "money.h" /* only main should be in this file, to make all other functions in diff --git a/doc/example/src/money.1.c b/doc/example/src/money.1.c index e69de29..8e1e65b 100644 --- a/doc/example/src/money.1.c +++ b/doc/example/src/money.1.c @@ -0,0 +1,20 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + diff --git a/doc/example/src/money.1.h b/doc/example/src/money.1.h index d1b2094..3bdd083 100644 --- a/doc/example/src/money.1.h +++ b/doc/example/src/money.1.h @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #ifndef MONEY_H #define MONEY_H diff --git a/doc/example/src/money.2.h b/doc/example/src/money.2.h index 3d4ce00..5550c23 100644 --- a/doc/example/src/money.2.h +++ b/doc/example/src/money.2.h @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #ifndef MONEY_H #define MONEY_H diff --git a/doc/example/src/money.3.c b/doc/example/src/money.3.c index dd91083..8474a8c 100644 --- a/doc/example/src/money.3.c +++ b/doc/example/src/money.3.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include "money.h" diff --git a/doc/example/src/money.4.c b/doc/example/src/money.4.c index 9570c10..69a4368 100644 --- a/doc/example/src/money.4.c +++ b/doc/example/src/money.4.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include "money.h" diff --git a/doc/example/src/money.5.c b/doc/example/src/money.5.c index 92e5860..5c7f335 100644 --- a/doc/example/src/money.5.c +++ b/doc/example/src/money.5.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include "money.h" diff --git a/doc/example/src/money.6.c b/doc/example/src/money.6.c index e020e9e..706c38a 100644 --- a/doc/example/src/money.6.c +++ b/doc/example/src/money.6.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include "money.h" diff --git a/doc/example/src/money.c b/doc/example/src/money.c index e020e9e..706c38a 100644 --- a/doc/example/src/money.c +++ b/doc/example/src/money.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include "money.h" diff --git a/doc/example/src/money.h b/doc/example/src/money.h index 3d4ce00..5550c23 100644 --- a/doc/example/src/money.h +++ b/doc/example/src/money.h @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #ifndef MONEY_H #define MONEY_H diff --git a/doc/example/tests/check_money.1.c b/doc/example/tests/check_money.1.c index 58fe692..abfacf1 100644 --- a/doc/example/tests/check_money.1.c +++ b/doc/example/tests/check_money.1.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + int main(void) { return 0; diff --git a/doc/example/tests/check_money.2.c b/doc/example/tests/check_money.2.c index 3eb1838..148f10f 100644 --- a/doc/example/tests/check_money.2.c +++ b/doc/example/tests/check_money.2.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include "../src/money.h" diff --git a/doc/example/tests/check_money.3.c b/doc/example/tests/check_money.3.c index 980c817..733a0da 100644 --- a/doc/example/tests/check_money.3.c +++ b/doc/example/tests/check_money.3.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include #include "../src/money.h" diff --git a/doc/example/tests/check_money.6.c b/doc/example/tests/check_money.6.c index f1b9f7e..e1120c6 100644 --- a/doc/example/tests/check_money.6.c +++ b/doc/example/tests/check_money.6.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include #include "../src/money.h" diff --git a/doc/example/tests/check_money.7.c b/doc/example/tests/check_money.7.c index a35d8cd..e82a0eb 100644 --- a/doc/example/tests/check_money.7.c +++ b/doc/example/tests/check_money.7.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include #include "../src/money.h" diff --git a/doc/example/tests/check_money.c b/doc/example/tests/check_money.c index 7ce86c3..b5a3004 100644 --- a/doc/example/tests/check_money.c +++ b/doc/example/tests/check_money.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include #include #include diff --git a/lib/alarm.c b/lib/alarm.c index 1dd0df5..0de00e5 100644 --- a/lib/alarm.c +++ b/lib/alarm.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" unsigned int alarm(unsigned int seconds CK_ATTRIBUTE_UNUSED) diff --git a/lib/clock_gettime.c b/lib/clock_gettime.c index b71e597..6b37769 100644 --- a/lib/clock_gettime.c +++ b/lib/clock_gettime.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" #ifdef __MACH__ diff --git a/lib/getline.c b/lib/getline.c index d649c7d..c27da7e 100644 --- a/lib/getline.c +++ b/lib/getline.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" #include diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index ad57972..62be4e9 100644 --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" #include diff --git a/lib/libcompat.c b/lib/libcompat.c index 750d661..e9b654a 100644 --- a/lib/libcompat.c +++ b/lib/libcompat.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" /* silence warnings about an empty library */ diff --git a/lib/libcompat.h b/lib/libcompat.h index d8c9970..b20ffa6 100644 --- a/lib/libcompat.h +++ b/lib/libcompat.h @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #ifndef LIBCOMPAT_H #define LIBCOMPAT_H diff --git a/lib/localtime_r.c b/lib/localtime_r.c index ec7056e..540527d 100644 --- a/lib/localtime_r.c +++ b/lib/localtime_r.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" #if !defined(localtime_r) diff --git a/lib/malloc.c b/lib/malloc.c index 7a99122..8cc0044 100644 --- a/lib/malloc.c +++ b/lib/malloc.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + /* * AC_FUNC_MALLOC in configure defines malloc to rpl_malloc if * malloc (0) is NULL to provide GNU compatibility diff --git a/lib/realloc.c b/lib/realloc.c index 2fa2654..7d72876 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + /* * AC_FUNC_REALLOC in configure defines realloc to rpl_realloc if * realloc (p, 0) or realloc (0, n) is NULL to provide GNU diff --git a/lib/strdup.c b/lib/strdup.c index 7a8d36a..d26a99f 100644 --- a/lib/strdup.c +++ b/lib/strdup.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" char *strdup(const char *str CK_ATTRIBUTE_UNUSED) diff --git a/lib/strsignal.c b/lib/strsignal.c index ed069c8..2239d27 100644 --- a/lib/strsignal.c +++ b/lib/strsignal.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" const char *strsignal(int sig) diff --git a/lib/timer_create.c b/lib/timer_create.c index bf1b1bf..7058961 100644 --- a/lib/timer_create.c +++ b/lib/timer_create.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" int timer_create(clockid_t clockid CK_ATTRIBUTE_UNUSED, diff --git a/lib/timer_delete.c b/lib/timer_delete.c index ef38833..f4235d7 100644 --- a/lib/timer_delete.c +++ b/lib/timer_delete.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" int timer_delete(timer_t timerid CK_ATTRIBUTE_UNUSED) diff --git a/lib/timer_settime.c b/lib/timer_settime.c index d3b5aba..e1bab0e 100644 --- a/lib/timer_settime.c +++ b/lib/timer_settime.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "libcompat.h" int timer_settime(timer_t timerid CK_ATTRIBUTE_UNUSED, diff --git a/tests/check_check.h b/tests/check_check.h index c691dcd..ba17492 100644 --- a/tests/check_check.h +++ b/tests/check_check.h @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #ifndef CHECK_CHECK_H #define CHECK_CHECK_H diff --git a/tests/check_check_exit.c b/tests/check_check_exit.c index b86c7a8..9ada4eb 100644 --- a/tests/check_check_exit.c +++ b/tests/check_check_exit.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_export_main.c b/tests/check_check_export_main.c index e0d30fa..0d03581 100644 --- a/tests/check_check_export_main.c +++ b/tests/check_check_export_main.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_fixture.c b/tests/check_check_fixture.c index 4669bd6..45cdbdb 100644 --- a/tests/check_check_fixture.c +++ b/tests/check_check_fixture.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include @@ -63,7 +83,7 @@ START_TEST(test_setup_failure_msg) { TestResult **tra; char *trm; - const char *trmexp = "check_check_fixture.c:16:S:Fix Sub:unchecked_setup:0: Test failure in fixture"; + const char *trmexp = "check_check_fixture.c:36:S:Fix Sub:unchecked_setup:0: Test failure in fixture"; tra = srunner_failures(fixture_sr); trm = tr_str(tra[0]); @@ -190,9 +210,9 @@ START_TEST(test_ch_setup_fail) tr = srunner_failures(sr); trm = tr_str(tr[0]); - /* Search for check_check_fixture.c:130 if this fails. */ + /* Search for check_check_fixture.c:150 if this fails. */ if (strstr(trm, - "check_check_fixture.c:130:S:Setup Fail:test_sub_fail:0: Failed setup") + "check_check_fixture.c:150:S:Setup Fail:test_sub_fail:0: Failed setup") == 0) { snprintf(errm, sizeof(errm), "Bad failed checked setup tr msg (%s)", trm); @@ -317,7 +337,7 @@ START_TEST(test_ch_setup_sig) trm = tr_str(tr[0]); if (strstr(trm, - "check_check_fixture.c:140:S:Setup Sig:test_sub_fail:0: " + "check_check_fixture.c:160:S:Setup Sig:test_sub_fail:0: " "(after this point) Received signal 8") == 0) { snprintf(errm, sizeof(errm), @@ -409,7 +429,7 @@ START_TEST(test_ch_teardown_fail) trm = tr_str(tr[0]); if (strstr(trm, - "check_check_fixture.c:135:S:Teardown Fail:test_sub_pass:0: Failed teardown") + "check_check_fixture.c:155:S:Teardown Fail:test_sub_pass:0: Failed teardown") == 0) { snprintf(errm, sizeof(errm), "Bad failed checked teardown tr msg (%s)", trm); @@ -455,7 +475,7 @@ START_TEST(test_ch_teardown_fail_nofork) trm = tr_str(tr[0]); if (strstr(trm, - "check_check_fixture.c:135:S:Teardown Fail No Fork:test_sub_pass:0: Failed teardown") + "check_check_fixture.c:155:S:Teardown Fail No Fork:test_sub_pass:0: Failed teardown") == 0) { snprintf(errm, sizeof(errm), "Bad failed checked teardown tr msg (%s)", trm); @@ -506,7 +526,7 @@ START_TEST(test_ch_teardown_sig) trm = tr_str(tr[0]); if (strstr(trm, - "check_check_fixture.c:146:S:Teardown Sig:test_sub_pass:0: " + "check_check_fixture.c:166:S:Teardown Sig:test_sub_pass:0: " "(after this point) Received signal 8") == 0) { snprintf(errm, sizeof(errm), diff --git a/tests/check_check_fork.c b/tests/check_check_fork.c index 32d096a..7961646 100644 --- a/tests/check_check_fork.c +++ b/tests/check_check_fork.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_limit.c b/tests/check_check_limit.c index 3034c97..2f38c4a 100644 --- a/tests/check_check_limit.c +++ b/tests/check_check_limit.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_log.c b/tests/check_check_log.c index 0168809..ee36fde 100644 --- a/tests/check_check_log.c +++ b/tests/check_check_log.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_log_internal.c b/tests/check_check_log_internal.c index d14fcbf..0101432 100644 --- a/tests/check_check_log_internal.c +++ b/tests/check_check_log_internal.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" /* Tests for log related stuff in check which need non-exported functions. */ diff --git a/tests/check_check_main.c b/tests/check_check_main.c index 17a84a5..758aaf2 100644 --- a/tests/check_check_main.c +++ b/tests/check_check_main.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_master.c b/tests/check_check_master.c index 5883e94..e061b5c 100644 --- a/tests/check_check_master.c +++ b/tests/check_check_master.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_msg.c b/tests/check_check_msg.c index a2ad5c5..3a1f38a 100644 --- a/tests/check_check_msg.c +++ b/tests/check_check_msg.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_pack.c b/tests/check_check_pack.c index 8dfd265..7da7e57 100644 --- a/tests/check_check_pack.c +++ b/tests/check_check_pack.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_selective.c b/tests/check_check_selective.c index b3b71f7..d07a093 100644 --- a/tests/check_check_selective.c +++ b/tests/check_check_selective.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_check_sub.c b/tests/check_check_sub.c index 519c1db..28a5fa9 100644 --- a/tests/check_check_sub.c +++ b/tests/check_check_sub.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_list.c b/tests/check_list.c index 9dfe2d7..ff2aefb 100644 --- a/tests/check_list.c +++ b/tests/check_list.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_mem_leaks.c b/tests/check_mem_leaks.c index 590f766..72f6647 100644 --- a/tests/check_mem_leaks.c +++ b/tests/check_mem_leaks.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + /** * The purpose of this test is to be used by valgrind to check for * memory leaks. Each public API that check exports is used at diff --git a/tests/check_nofork.c b/tests/check_nofork.c index 92d7b2b..da2ddd2 100644 --- a/tests/check_nofork.c +++ b/tests/check_nofork.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_nofork_teardown.c b/tests/check_nofork_teardown.c index f041c0e..6484e32 100644 --- a/tests/check_nofork_teardown.c +++ b/tests/check_nofork_teardown.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/check_stress.c b/tests/check_stress.c index e35cacd..7f0756e 100644 --- a/tests/check_stress.c +++ b/tests/check_stress.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" /* note: this test appears pretty useless, so we aren't including it diff --git a/tests/check_thread_stress.c b/tests/check_thread_stress.c index e5f8af0..717e62d 100644 --- a/tests/check_thread_stress.c +++ b/tests/check_thread_stress.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/ex_output.c b/tests/ex_output.c index 04dba54..6d0aad2 100644 --- a/tests/ex_output.c +++ b/tests/ex_output.c @@ -1,3 +1,23 @@ +/* + * Check: a unit test framework for C + * Copyright (C) 2001, 2002 Arien Malec + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + #include "../lib/libcompat.h" #include diff --git a/tests/test_check_nofork_teardown.sh b/tests/test_check_nofork_teardown.sh index 9b642c9..44cf42c 100755 --- a/tests/test_check_nofork_teardown.sh +++ b/tests/test_check_nofork_teardown.sh @@ -4,7 +4,7 @@ expected="Running suite(s): bug-99 0%: Checks: 1, Failures: 1, Errors: 0 -${SRCDIR}check_nofork_teardown.c:36:F:tc:will_fail:0: Assertion '0' failed" +${SRCDIR}check_nofork_teardown.c:56:F:tc:will_fail:0: Assertion '0' failed" actual=`./check_nofork_teardown${EXEEXT} | tr -d "\r"` if [ x"${expected}" = x"${actual}" ]; then diff --git a/tests/test_output_strings b/tests/test_output_strings index 329615a..b23da03 100644 --- a/tests/test_output_strings +++ b/tests/test_output_strings @@ -21,17 +21,17 @@ $exp_minimal_result" if [ $HAVE_FORK -eq 1 ]; then exp_normal_result="37%: Checks: 8, Failures: 4, Errors: 1 -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +${SRCDIR}ex_output.c:37:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:46:E:Core:test_exit:0: (after this point) Early exit with return value 1 +${SRCDIR}ex_output.c:72:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:72:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:78:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" else exp_normal_result="42%: Checks: 7, Failures: 4, Errors: 0 -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +${SRCDIR}ex_output.c:37:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:72:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:72:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:78:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" fi exp_normal="$suite_output $exp_normal_result" @@ -39,23 +39,23 @@ $exp_normal_result" if [ $HAVE_FORK -eq 1 ]; then exp_verbose_result="37%: Checks: 8, Failures: 4, Errors: 1 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +${SRCDIR}ex_output.c:31:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:37:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:46:E:Core:test_exit:0: (after this point) Early exit with return value 1 +${SRCDIR}ex_output.c:66:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:72:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:78:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" else exp_verbose_result="42%: Checks: 7, Failures: 4, Errors: 0 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +${SRCDIR}ex_output.c:31:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:37:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:66:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:72:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:78:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" fi exp_verbose="$suite_output $exp_verbose_result" @@ -65,50 +65,50 @@ exp_subunit="test: Core:test_pass success: Core:test_pass test: Core:test_fail failure: Core:test_fail [ -${SRCDIR}ex_output.c:17: Failure +${SRCDIR}ex_output.c:37: Failure ] test: Core:test_exit error: Core:test_exit [ -${SRCDIR}ex_output.c:26: (after this point) Early exit with return value 1 +${SRCDIR}ex_output.c:46: (after this point) Early exit with return value 1 ] test: Core:test_pass2 success: Core:test_pass2 test: Core:test_loop failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 0 failed +${SRCDIR}ex_output.c:72: Iteration 0 failed ] test: Core:test_loop success: Core:test_loop test: Core:test_loop failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 2 failed +${SRCDIR}ex_output.c:72: Iteration 2 failed ] test: description \" ' < > &:test_xml_esc_fail_msg failure: description \" ' < > &:test_xml_esc_fail_msg [ -${SRCDIR}ex_output.c:58: fail \" ' < > & message +${SRCDIR}ex_output.c:78: fail \" ' < > & message ]" else exp_subunit="test: Core:test_pass success: Core:test_pass test: Core:test_fail failure: Core:test_fail [ -${SRCDIR}ex_output.c:17: Failure +${SRCDIR}ex_output.c:37: Failure ] test: Core:test_pass2 success: Core:test_pass2 test: Core:test_loop failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 0 failed +${SRCDIR}ex_output.c:72: Iteration 0 failed ] test: Core:test_loop success: Core:test_loop test: Core:test_loop failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 2 failed +${SRCDIR}ex_output.c:72: Iteration 2 failed ] test: description \" ' < > &:test_xml_esc_fail_msg failure: description \" ' < > &:test_xml_esc_fail_msg [ -${SRCDIR}ex_output.c:58: fail \" ' < > & message +${SRCDIR}ex_output.c:78: fail \" ' < > & message ]" fi @@ -117,29 +117,29 @@ fi ################## if [ $HAVE_FORK -eq 1 ]; then expected_log_log="Running suite S1 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 +${SRCDIR}ex_output.c:31:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:37:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:46:E:Core:test_exit:0: (after this point) Early exit with return value 1 Running suite S2 -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:66:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:72:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:2: Iteration 2 failed Running suite XML escape \" ' < > & tests -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message +${SRCDIR}ex_output.c:78:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message Results for all suites run: 37%: Checks: 8, Failures: 4, Errors: 1" else expected_log_log="Running suite S1 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:31:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:37:F:Core:test_fail:0: Failure Running suite S2 -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:66:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:72:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:72:F:Core:test_loop:2: Iteration 2 failed Running suite XML escape \" ' < > & tests -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message +${SRCDIR}ex_output.c:78:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message Results for all suites run: 42%: Checks: 7, Failures: 4, Errors: 0" fi @@ -154,21 +154,21 @@ expected_xml=" S1 - ex_output.c:11 + ex_output.c:31 test_pass 0 Core Passed - ex_output.c:17 + ex_output.c:37 test_fail 0 Core Failure - ex_output.c:26 + ex_output.c:46 test_exit 0 Core @@ -178,28 +178,28 @@ expected_xml=" S2 - ex_output.c:46 + ex_output.c:66 test_pass2 0 Core Passed - ex_output.c:52 + ex_output.c:72 test_loop 0 Core Iteration 0 failed - ex_output.c:52 + ex_output.c:72 test_loop 1 Core Passed - ex_output.c:52 + ex_output.c:72 test_loop 2 Core @@ -209,7 +209,7 @@ expected_xml=" XML escape " ' < > & tests - ex_output.c:58 + ex_output.c:78 test_xml_esc_fail_msg 0 description " ' < > & @@ -225,14 +225,14 @@ expected_xml=" S1 - ex_output.c:11 + ex_output.c:31 test_pass 0 Core Passed - ex_output.c:17 + ex_output.c:37 test_fail 0 Core @@ -242,28 +242,28 @@ expected_xml=" S2 - ex_output.c:46 + ex_output.c:66 test_pass2 0 Core Passed - ex_output.c:52 + ex_output.c:72 test_loop 0 Core Iteration 0 failed - ex_output.c:52 + ex_output.c:72 test_loop 1 Core Passed - ex_output.c:52 + ex_output.c:72 test_loop 2 Core @@ -273,7 +273,7 @@ expected_xml=" XML escape " ' < > & tests - ex_output.c:58 + ex_output.c:78 test_xml_esc_fail_msg 0 description " ' < > &