From 9779ee47871217df935261f6931eeb285198da51 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 8 Oct 2014 22:33:32 +0100 Subject: Run a subset of the upstream regression test suite at package build time, and the rest of it under autopkgtest. --- debian/tests/getpid.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 debian/tests/getpid.c (limited to 'debian/tests/getpid.c') diff --git a/debian/tests/getpid.c b/debian/tests/getpid.c deleted file mode 100644 index c9e35b87e..000000000 --- a/debian/tests/getpid.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Compile: - -gcc -fPIC -c getpid.c -o getpid.o -gcc -shared -o getpid.so getpid.o - - * Use: - -FORCE_PID=1234 LD_PRELOAD=./getpid.so bash - -# -# Copyright (C) 2001-2008 Kees Cook -# kees@outflux.net, http://outflux.net/ -# -# 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 the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# http://www.gnu.org/copyleft/gpl.html - -*/ - -#include -#include -#include - -pid_t getpid(void) -{ - return atoi(getenv("FORCE_PID")); -} -- cgit v1.2.3