From 61037e1eb051a155908f1d038b5b156a3f661023 Mon Sep 17 00:00:00 2001 From: Wanlong Gao Date: Thu, 8 Mar 2012 19:01:17 +0800 Subject: [PATCH] convert the wrong file format from dos to unix dos file format will cause many problems for git. Signed-off-by: Wanlong Gao --- testcases/kernel/fs/fs_maim/maimparts | 162 ++++++------- testcases/kernel/fs/fs_maim/partbeat | 154 ++++++------- testcases/kernel/fs/mongo/test.sh | 218 +++++++++--------- .../conformance/interfaces/fork/testfrmw.h | 142 ++++++------ .../conformance/interfaces/getpid/testfrmw.h | 170 +++++++------- .../interfaces/pthread_atfork/testfrmw.h | 170 +++++++------- .../pthread_cond_broadcast/testfrmw.h | 170 +++++++------- .../pthread_cond_destroy/testfrmw.h | 170 +++++++------- .../interfaces/pthread_cond_signal/testfrmw.h | 170 +++++++------- .../pthread_cond_timedwait/testfrmw.h | 170 +++++++------- .../interfaces/pthread_cond_wait/testfrmw.h | 170 +++++++------- .../interfaces/pthread_create/testfrmw.h | 170 +++++++------- .../interfaces/pthread_equal/testfrmw.h | 170 +++++++------- .../interfaces/pthread_exit/testfrmw.h | 170 +++++++------- .../interfaces/pthread_join/testfrmw.h | 170 +++++++------- .../interfaces/pthread_kill/testfrmw.h | 170 +++++++------- .../pthread_mutex_destroy/testfrmw.h | 170 +++++++------- .../pthread_mutex_trylock/testfrmw.h | 170 +++++++------- .../pthread_mutex_unlock/testfrmw.h | 164 ++++++------- .../interfaces/pthread_once/testfrmw.h | 170 +++++++------- .../pthread_setschedparam/testfrmw.h | 170 +++++++------- .../interfaces/pthread_sigmask/testfrmw.h | 170 +++++++------- .../interfaces/sem_close/testfrmw.h | 170 +++++++------- .../interfaces/sem_getvalue/testfrmw.h | 170 +++++++------- .../interfaces/sem_init/testfrmw.h | 170 +++++++------- .../interfaces/sem_open/testfrmw.h | 170 +++++++------- .../interfaces/sem_unlink/testfrmw.h | 170 +++++++------- .../interfaces/sem_wait/testfrmw.h | 170 +++++++------- .../interfaces/sigaction/testfrmw.h | 170 +++++++------- .../conformance/interfaces/sigwait/testfrmw.h | 170 +++++++------- .../stress/threads/fork/testfrmw.h | 170 +++++++------- .../stress/threads/pthread_cancel/testfrmw.h | 170 +++++++------- .../threads/pthread_cond_init/testfrmw.h | 168 +++++++------- .../threads/pthread_cond_timedwait/testfrmw.h | 168 +++++++------- .../threads/pthread_cond_wait/testfrmw.h | 170 +++++++------- .../stress/threads/pthread_create/testfrmw.h | 170 +++++++------- .../stress/threads/pthread_exit/testfrmw.h | 170 +++++++------- .../threads/pthread_getschedparam/testfrmw.h | 170 +++++++------- .../stress/threads/pthread_kill/testfrmw.h | 170 +++++++------- .../threads/pthread_mutex_init/testfrmw.h | 168 +++++++------- .../threads/pthread_mutex_lock/testfrmw.h | 168 +++++++------- .../threads/pthread_mutex_trylock/testfrmw.h | 170 +++++++------- .../stress/threads/pthread_once/testfrmw.h | 170 +++++++------- .../stress/threads/pthread_self/testfrmw.h | 170 +++++++------- .../stress/threads/sem_getvalue/testfrmw.h | 170 +++++++------- .../stress/threads/sem_init/testfrmw.h | 170 +++++++------- .../stress/threads/sem_open/testfrmw.h | 170 +++++++------- 47 files changed, 3986 insertions(+), 3986 deletions(-) diff --git a/testcases/kernel/fs/fs_maim/maimparts b/testcases/kernel/fs/fs_maim/maimparts index e1855ea495a..920dd080bbd 100755 --- a/testcases/kernel/fs/fs_maim/maimparts +++ b/testcases/kernel/fs/fs_maim/maimparts @@ -1,81 +1,81 @@ -#!/usr/bin/perl -w -# -# Copyright (c) International Business Machines Corp., 2000 -# -# 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 -# - -# -# FILE(s) : maimparts -# DESCRIPTION : Takes the disk device name (ex: hda) and number of iterations -# to run thru and then rips the drive into a defined number of -# partitions ($parts). This sets up the device for partbeat -# and backbeat which are called after setup occurs. -# -# WARNING!!! : The device you specify on the command line (hda/sda/etc) will be -# blown away...smoking any important data, programs, OS, etc. -# Don't specify a device name that you don't want to wipe out. -# YOU HAVE BEEN WARNED! -# -# AUTHOR : Jeff Martin (martinjn@us.ibm.com) -# HISTORY : -# - -# target is device to split into partions -$target=$ARGV[0]; -$iterations=$ARGV[1]; -# part is the number of partitions to split the drive into (max is 4) -$parts=3; -# fsid is the partition id or type (83 is linux native) -$fstype=$ARGV[2]; -$fsid=0x83; - -if (!$ARGV[0]) { - print "Usage: maimparts [target device ie: hda or sda] [iterations]\n"; - exit; - } -# run sfdisk to display device geometry and rip out info -# (specifically cylinders) -$Geom = `/sbin/sfdisk -g /dev/$target`; -chomp $Geom; -($Junk,$Temp1) = split(/\: /,$Geom,2); -($Cyl,$Heads,$Sec) = split(/\, /,$Temp1,3); -($Cyl,$Junk) = split(/ /,$Cyl,2); -($Heads,$Junk) = split(/ /,$Heads,2); -($Sec,$Junk) = split(/ /,$Sec,2); - -# determine partition size to create (force int so we don't -# try to use 1/2 a cylinder!) -$psize = int($Cyl/$parts); - -# create a config file in /tmp for sfdisk creation run -open(CONFIG,">/tmp/part.cfg") || - die "Couldn't create /tmp/part.cfg\n"; -for($i=1;$i<=$parts;$i++) { - printf(CONFIG ",%d,%x\n",$psize,$fsid); # write the lines in cfg - } -close(CONFIG); - -# create the partitions! -`sfdisk --force /dev/$target < /tmp/part.cfg`; - -#run partbeat on the partitions -for ($k=1;$k<=$parts;$k++) { - $part[$k] = sprintf("%s%d",$target,$k); - $tmp = `./partbeat /dev/$target$k $iterations $fstype`; - print $tmp; - } -$tmp = `./backbeat /dev/$part[1] /dev/$part[2] /dev/$part[3]`; -print $tmp; +#!/usr/bin/perl -w +# +# Copyright (c) International Business Machines Corp., 2000 +# +# 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 +# + +# +# FILE(s) : maimparts +# DESCRIPTION : Takes the disk device name (ex: hda) and number of iterations +# to run thru and then rips the drive into a defined number of +# partitions ($parts). This sets up the device for partbeat +# and backbeat which are called after setup occurs. +# +# WARNING!!! : The device you specify on the command line (hda/sda/etc) will be +# blown away...smoking any important data, programs, OS, etc. +# Don't specify a device name that you don't want to wipe out. +# YOU HAVE BEEN WARNED! +# +# AUTHOR : Jeff Martin (martinjn@us.ibm.com) +# HISTORY : +# + +# target is device to split into partions +$target=$ARGV[0]; +$iterations=$ARGV[1]; +# part is the number of partitions to split the drive into (max is 4) +$parts=3; +# fsid is the partition id or type (83 is linux native) +$fstype=$ARGV[2]; +$fsid=0x83; + +if (!$ARGV[0]) { + print "Usage: maimparts [target device ie: hda or sda] [iterations]\n"; + exit; + } +# run sfdisk to display device geometry and rip out info +# (specifically cylinders) +$Geom = `/sbin/sfdisk -g /dev/$target`; +chomp $Geom; +($Junk,$Temp1) = split(/\: /,$Geom,2); +($Cyl,$Heads,$Sec) = split(/\, /,$Temp1,3); +($Cyl,$Junk) = split(/ /,$Cyl,2); +($Heads,$Junk) = split(/ /,$Heads,2); +($Sec,$Junk) = split(/ /,$Sec,2); + +# determine partition size to create (force int so we don't +# try to use 1/2 a cylinder!) +$psize = int($Cyl/$parts); + +# create a config file in /tmp for sfdisk creation run +open(CONFIG,">/tmp/part.cfg") || + die "Couldn't create /tmp/part.cfg\n"; +for($i=1;$i<=$parts;$i++) { + printf(CONFIG ",%d,%x\n",$psize,$fsid); # write the lines in cfg + } +close(CONFIG); + +# create the partitions! +`sfdisk --force /dev/$target < /tmp/part.cfg`; + +#run partbeat on the partitions +for ($k=1;$k<=$parts;$k++) { + $part[$k] = sprintf("%s%d",$target,$k); + $tmp = `./partbeat /dev/$target$k $iterations $fstype`; + print $tmp; + } +$tmp = `./backbeat /dev/$part[1] /dev/$part[2] /dev/$part[3]`; +print $tmp; diff --git a/testcases/kernel/fs/fs_maim/partbeat b/testcases/kernel/fs/fs_maim/partbeat index fdcb32d8b0f..b8268604eef 100755 --- a/testcases/kernel/fs/fs_maim/partbeat +++ b/testcases/kernel/fs/fs_maim/partbeat @@ -1,77 +1,77 @@ -#!/usr/bin/perl -w -# -# Copyright (c) International Business Machines Corp., 2000 -# -# 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 -# - -# -# FILE(s) : partbeat -# DESCRIPTION : Quick test to test storage management functions like mount and fsck. -# More can be added later without much trouble. Command line takes the -# partition device name (ex: /dev/hda1), an integer for how many iterations -# of the test you would like to run and the filesystem type to use (jfs or ext2 for now). -# AUTHOR : Jeff Martin (martinjn@us.ibm.com) -# HISTORY : -# - -$target=$ARGV[0]; -$iterations=$ARGV[1]; -$fstype=$ARGV[2]; - -print "mkfs:"; -if ($fstype =~ /jfs\b/i) { - $tmp = `mkfs.jfs -f $target`; - } -elsif ($fstype =~ /ext2\b/i) { - $tmp=`mkfs $target`; - } -elsif ($fstype =~ /ext3\b/i) { - $tmp=`mkfs -t ext3 $target`; - } -elsif ($fstype =~ /reiserfs\b/i) { - $tmp=`mkreiserfs --format 3.6 -f $target`; - } -else { - $tmp=`mkfs $target`; - } -print $tmp; - -print "fsck:"; -$tmp=`fsck -t $fstype -a $target`; -print $tmp; - -($junk,$junk,$device)=split(/\//,$target); - -`mkdir $device`; - -for ($i=1;$i<=$iterations;$i++) { - print "mount:"; - $tmp=`mount -t $fstype $target $device`; - print ($tmp."\n"); - - `touch $device/indicator$i`; - - print "umount:"; - $tmp=`umount $target`; - print ($tmp."\n"); - } - -print "fsck:"; -$tmp=`fsck -t $fstype -a $target`; -print $tmp; - -`mount -t $fstype $target $device`; -`rm -f $device/indicator*`; +#!/usr/bin/perl -w +# +# Copyright (c) International Business Machines Corp., 2000 +# +# 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 +# + +# +# FILE(s) : partbeat +# DESCRIPTION : Quick test to test storage management functions like mount and fsck. +# More can be added later without much trouble. Command line takes the +# partition device name (ex: /dev/hda1), an integer for how many iterations +# of the test you would like to run and the filesystem type to use (jfs or ext2 for now). +# AUTHOR : Jeff Martin (martinjn@us.ibm.com) +# HISTORY : +# + +$target=$ARGV[0]; +$iterations=$ARGV[1]; +$fstype=$ARGV[2]; + +print "mkfs:"; +if ($fstype =~ /jfs\b/i) { + $tmp = `mkfs.jfs -f $target`; + } +elsif ($fstype =~ /ext2\b/i) { + $tmp=`mkfs $target`; + } +elsif ($fstype =~ /ext3\b/i) { + $tmp=`mkfs -t ext3 $target`; + } +elsif ($fstype =~ /reiserfs\b/i) { + $tmp=`mkreiserfs --format 3.6 -f $target`; + } +else { + $tmp=`mkfs $target`; + } +print $tmp; + +print "fsck:"; +$tmp=`fsck -t $fstype -a $target`; +print $tmp; + +($junk,$junk,$device)=split(/\//,$target); + +`mkdir $device`; + +for ($i=1;$i<=$iterations;$i++) { + print "mount:"; + $tmp=`mount -t $fstype $target $device`; + print ($tmp."\n"); + + `touch $device/indicator$i`; + + print "umount:"; + $tmp=`umount $target`; + print ($tmp."\n"); + } + +print "fsck:"; +$tmp=`fsck -t $fstype -a $target`; +print $tmp; + +`mount -t $fstype $target $device`; +`rm -f $device/indicator*`; diff --git a/testcases/kernel/fs/mongo/test.sh b/testcases/kernel/fs/mongo/test.sh index eccb0798756..0e598ea7fb9 100755 --- a/testcases/kernel/fs/mongo/test.sh +++ b/testcases/kernel/fs/mongo/test.sh @@ -1,109 +1,109 @@ -#!/bin/sh -#To exectute this you need mongo filesystem utility. -#Run this inside the mongo directory. -#mongo utility can be found in www.namesys.com/benchmarks/mongo-xxx.tgz -#Description-this script tests the mongo utility which actulally give the time ie cpu time -#Real time etc on reiserfile system and jfs filesystem. -#created by prakash.banu@wipro.com -# -# 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 -# - -LOG_DIR=$PWD -TEST_DIR=testdir - - - #should be root to execute this script . - if [ $(id -ru) -ne 0 ]; then - echo "This script must be run as root" - exit - fi - #set the PATH variable if its not done . -export PATH=$PATH:/sbin -lsmod |grep reiserfs - - if [ $? -ne 0 ]; then - echo "inserting reiserfs and its dependencies" - fi -modprobe reiserfs - if [ $? -ne 0 ]; then - echo "check wheather reiserfs is been compiled in the kernel" - fi - -lsmod |grep loop - if [ $? -ne 0 ]; then - echo "inserting loopback device module" - fi -modprobe loop - if [ $? -ne 0 ]; then - echo "check wheather loopback device option is been compiled in the kernel" - fi - - #run the mongo test on reiserfs file system type -reiserfs() -{ -cat > fs.sh < /dev/null 2>&1 -losetup /dev/loop0 reiserfs -mkdir -p $TEST_DIR -./mongo.pl LOG=/tmp/logfile1 file_size=10000 bytes=100000 fstype=reiserfs dev=/dev/loop0 dir=$TEST_DIR RUN log=$LOG_DIR/reiserlog > /dev/null 2>&1 - -echo "RESULTS LOGGED IN $LOG_DIR/reiserlog" -export PATH=$PATH:/sbin -losetup -d /dev/loop0 - -EOF -} - - -#To run on jfs file system type -JFS() -{ -cat >> fs.sh < /dev/null 2>&1 -losetup /dev/loop0 jfs -./mongo.pl LOG=/tmp/logfile1 file_size=10000 bytes=100000 fstype=jfs dev=/dev/loop0 dir=$TEST_DIR RUN log=$LOG_DIR/jfslog - -echo "RESULTS LOGGED IN $LOG_DIR/jfslog" -export PATH=$PATH:/sbin -losetup -d /dev/loop0 -echo "rm -rf ./fs.sh" >> ./fs.sh 2>&1 -EOF -} - - -echo -ne "TEST ON REISERFS?[y/N]:" -read ker - -case $ker in -y|Y) reiserfs -esac - -echo -ne "TEST ON JFS[y/N]: " -read ker - -case $ker in -y|Y) JFS -esac - -echo "THIS MAY TAKE SOME MINUTES" -sh fs.sh - -#performing cleanup -#losetup -d /dev/loop0 -rm -rf $TEST_DIR +#!/bin/sh +#To exectute this you need mongo filesystem utility. +#Run this inside the mongo directory. +#mongo utility can be found in www.namesys.com/benchmarks/mongo-xxx.tgz +#Description-this script tests the mongo utility which actulally give the time ie cpu time +#Real time etc on reiserfile system and jfs filesystem. +#created by prakash.banu@wipro.com +# +# 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 +# + +LOG_DIR=$PWD +TEST_DIR=testdir + + + #should be root to execute this script . + if [ $(id -ru) -ne 0 ]; then + echo "This script must be run as root" + exit + fi + #set the PATH variable if its not done . +export PATH=$PATH:/sbin +lsmod |grep reiserfs + + if [ $? -ne 0 ]; then + echo "inserting reiserfs and its dependencies" + fi +modprobe reiserfs + if [ $? -ne 0 ]; then + echo "check wheather reiserfs is been compiled in the kernel" + fi + +lsmod |grep loop + if [ $? -ne 0 ]; then + echo "inserting loopback device module" + fi +modprobe loop + if [ $? -ne 0 ]; then + echo "check wheather loopback device option is been compiled in the kernel" + fi + + #run the mongo test on reiserfs file system type +reiserfs() +{ +cat > fs.sh < /dev/null 2>&1 +losetup /dev/loop0 reiserfs +mkdir -p $TEST_DIR +./mongo.pl LOG=/tmp/logfile1 file_size=10000 bytes=100000 fstype=reiserfs dev=/dev/loop0 dir=$TEST_DIR RUN log=$LOG_DIR/reiserlog > /dev/null 2>&1 + +echo "RESULTS LOGGED IN $LOG_DIR/reiserlog" +export PATH=$PATH:/sbin +losetup -d /dev/loop0 + +EOF +} + + +#To run on jfs file system type +JFS() +{ +cat >> fs.sh < /dev/null 2>&1 +losetup /dev/loop0 jfs +./mongo.pl LOG=/tmp/logfile1 file_size=10000 bytes=100000 fstype=jfs dev=/dev/loop0 dir=$TEST_DIR RUN log=$LOG_DIR/jfslog + +echo "RESULTS LOGGED IN $LOG_DIR/jfslog" +export PATH=$PATH:/sbin +losetup -d /dev/loop0 +echo "rm -rf ./fs.sh" >> ./fs.sh 2>&1 +EOF +} + + +echo -ne "TEST ON REISERFS?[y/N]:" +read ker + +case $ker in +y|Y) reiserfs +esac + +echo -ne "TEST ON JFS[y/N]: " +read ker + +case $ker in +y|Y) JFS +esac + +echo "THIS MAY TAKE SOME MINUTES" +sh fs.sh + +#performing cleanup +#losetup -d /dev/loop0 +rm -rf $TEST_DIR diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/fork/testfrmw.h index 5cd5cc7a7a7..c500624f428 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/fork/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/fork/testfrmw.h @@ -1,71 +1,71 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#ifndef __TESTFRMW_H__ -#define __TESTFRMW_H__ - -#include - -#include "posixtest.h" - -#define UNRESOLVED(x, s) \ -do { \ - output("Test %s unresolved: got %i (%s) on line %i (%s)\n", \ - __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); \ -} while (0) - -#define FAILED(s) \ -do { \ - output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); \ -} while (0) - -#define PASSED \ -do { \ - output_fini(); \ - exit(PTS_PASS); \ -} while (0) - -#define UNTESTED(s) \ -do { \ - output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} while (0) - -#endif +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#ifndef __TESTFRMW_H__ +#define __TESTFRMW_H__ + +#include + +#include "posixtest.h" + +#define UNRESOLVED(x, s) \ +do { \ + output("Test %s unresolved: got %i (%s) on line %i (%s)\n", \ + __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); \ +} while (0) + +#define FAILED(s) \ +do { \ + output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); \ +} while (0) + +#define PASSED \ +do { \ + output_fini(); \ + exit(PTS_PASS); \ +} while (0) + +#define UNTESTED(s) \ +do { \ + output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} while (0) + +#endif diff --git a/testcases/open_posix_testsuite/conformance/interfaces/getpid/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/getpid/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/getpid/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/getpid/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/testfrmw.h index 6fe495f48ec..3fd8c3a3c97 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/testfrmw.h @@ -1,82 +1,82 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i on line %i (%s)\n", __FILE__, x, __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i on line %i (%s)\n", x, __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i on line %i (%s)\n", __FILE__, x, __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i on line %i (%s)\n", x, __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_close/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sem_close/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_close/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_close/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_init/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_open/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_open/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwait/testfrmw.h b/testcases/open_posix_testsuite/conformance/interfaces/sigwait/testfrmw.h index fb9aa1105ca..e3c9028f9cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwait/testfrmw.h +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwait/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2005, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2005, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/fork/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/fork/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/fork/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/fork/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cancel/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_cancel/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cancel/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_cancel/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/testfrmw.h index 77dfc1ea843..3de6c02d6ab 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/testfrmw.h @@ -1,84 +1,84 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/testfrmw.h index 77dfc1ea843..3de6c02d6ab 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/testfrmw.h @@ -1,84 +1,84 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_create/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_create/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_create/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_create/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_exit/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_exit/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_exit/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_exit/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_kill/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_kill/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_kill/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_kill/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/testfrmw.h index 77dfc1ea843..3de6c02d6ab 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/testfrmw.h @@ -1,84 +1,84 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/testfrmw.h index 77dfc1ea843..3de6c02d6ab 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/testfrmw.h @@ -1,84 +1,84 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_once/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_once/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_once/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_once/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_self/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/pthread_self/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/pthread_self/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/pthread_self/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/sem_getvalue/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/sem_getvalue/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/sem_getvalue/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/sem_getvalue/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/sem_init/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/sem_init/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/sem_init/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/sem_init/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif + diff --git a/testcases/open_posix_testsuite/stress/threads/sem_open/testfrmw.h b/testcases/open_posix_testsuite/stress/threads/sem_open/testfrmw.h index 239b7a5df44..2d17f1dbba0 100644 --- a/testcases/open_posix_testsuite/stress/threads/sem_open/testfrmw.h +++ b/testcases/open_posix_testsuite/stress/threads/sem_open/testfrmw.h @@ -1,85 +1,85 @@ -/* - * Copyright (c) 2004, Bull S.A.. All rights reserved. - * Created by: Sebastien Decugis - - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - - - * This file is a wrapper to use the tests from the NPTL Test & Trace Project - * with either the Linux Test Project or the Open POSIX Test Suite. - - * The following macros are defined here: - * UNRESOLVED(ret, descr); - * where descr is a description of the error and ret is an int (error code for example) - * FAILED(descr); - * where descr is a short text saying why the test has failed. - * PASSED(); - * No parameter. - * - * Both three macros shall terminate the calling process. - * The testcase shall not terminate without calling one of those macros. - * - * - */ - -#include "posixtest.h" -#include /* for the strerror() routine */ - - -#ifdef __GNUC__ /* We are using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test %s FAILED: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("File %s cannot test: %s\n", __FILE__, s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#else /* not using GCC */ - - #define UNRESOLVED(x, s) \ - { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ - output_fini(); \ - exit(PTS_UNRESOLVED); } - - #define FAILED(s) \ - { output("Test FAILED: %s\n", s); \ - output_fini(); \ - exit(PTS_FAIL); } - - #define PASSED \ - output_fini(); \ - exit(PTS_PASS); - - #define UNTESTED(s) \ -{ output("Unable to test: %s\n", s); \ - output_fini(); \ - exit(PTS_UNTESTED); \ -} - -#endif - +/* + * Copyright (c) 2004, Bull S.A.. All rights reserved. + * Created by: Sebastien Decugis + + * This program is free software; you can redistribute it and/or modify it + * under the terms of version 2 of the GNU General Public License as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it would be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston MA 02111-1307, USA. + * + + + * This file is a wrapper to use the tests from the NPTL Test & Trace Project + * with either the Linux Test Project or the Open POSIX Test Suite. + + * The following macros are defined here: + * UNRESOLVED(ret, descr); + * where descr is a description of the error and ret is an int (error code for example) + * FAILED(descr); + * where descr is a short text saying why the test has failed. + * PASSED(); + * No parameter. + * + * Both three macros shall terminate the calling process. + * The testcase shall not terminate without calling one of those macros. + * + * + */ + +#include "posixtest.h" +#include /* for the strerror() routine */ + + +#ifdef __GNUC__ /* We are using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test %s unresolved: got %i (%s) on line %i (%s)\n", __FILE__, x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test %s FAILED: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("File %s cannot test: %s\n", __FILE__, s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#else /* not using GCC */ + + #define UNRESOLVED(x, s) \ + { output("Test unresolved: got %i (%s) on line %i (%s)\n", x, strerror(x), __LINE__, s); \ + output_fini(); \ + exit(PTS_UNRESOLVED); } + + #define FAILED(s) \ + { output("Test FAILED: %s\n", s); \ + output_fini(); \ + exit(PTS_FAIL); } + + #define PASSED \ + output_fini(); \ + exit(PTS_PASS); + + #define UNTESTED(s) \ +{ output("Unable to test: %s\n", s); \ + output_fini(); \ + exit(PTS_UNTESTED); \ +} + +#endif +