You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
(16) |
Apr
(25) |
May
(8) |
Jun
(22) |
Jul
(71) |
Aug
(36) |
Sep
(22) |
Oct
(31) |
Nov
(88) |
Dec
(40) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(128) |
Feb
(35) |
Mar
(28) |
Apr
(33) |
May
(18) |
Jun
(8) |
Jul
(21) |
Aug
(18) |
Sep
(6) |
Oct
(19) |
Nov
(12) |
Dec
(44) |
2012 |
Jan
(31) |
Feb
(48) |
Mar
(31) |
Apr
(11) |
May
(13) |
Jun
(15) |
Jul
(13) |
Aug
(18) |
Sep
(7) |
Oct
(25) |
Nov
(21) |
Dec
(13) |
2013 |
Jan
(17) |
Feb
(18) |
Mar
(21) |
Apr
(35) |
May
(30) |
Jun
(4) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(30) |
Nov
(13) |
Dec
|
From: Garrett C. <ris...@li...> - 2010-07-11 17:05:02
|
The branch, master, has been updated via 68f89536bf8b1611ebbe0216029930b1e18bf243 (commit) via 125d98b413bf6a38b9a0c673fdabc70b42b6843e (commit) via 851e7792927e378711c341522c2f5069abd1635c (commit) via adbddc08e62bbd99de01b5c3bdbaede28b4abe11 (commit) from d3932316ca77e87e99371680a1f8cd7e7521cb05 (commit) - Log ----------------------------------------------------------------- commit 68f89536bf8b1611ebbe0216029930b1e18bf243 Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 11 10:01:45 2010 -0700 Testcase "nfs02" fails with following message "Test Failed: Removal of write permissions not honored on ascii.sm" This is because ascii.sm has a rwx file permission for others when It got installed. The script first tried to remove only write permission for others and then it tests it with the r-- permission so test get fails as it has r-x permission for others. Signed-off-by: Sumit Dhoot <su...@li...> Acked-by: Garrett Cooper <yan...@gm...> commit 125d98b413bf6a38b9a0c673fdabc70b42b6843e Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 11 09:59:50 2010 -0700 While running networktest for nfs; nfsstress & nfsstat01 test gets fail. Because TCbin is not exported with required path. Following patch fixed the above problem. Signed-off-by: Sumit Dhoot <su...@li...> Acked-by: Garrett Cooper <yan...@gm...> commit 851e7792927e378711c341522c2f5069abd1635c Author: Garrett Cooper <yan...@gm...> Date: Sun Jul 11 09:55:54 2010 -0700 Testcase "nfs02" fails as script does not able to find following files ascii.jmb ascii.lg ascii.med ascii.sm This is because ltp's testcases/network/Makefile doesn't installed those. Signed-off-by: Sumit Dhoot <su...@li...> Acked-by: Garrett Cooper <yan...@gm...> commit adbddc08e62bbd99de01b5c3bdbaede28b4abe11 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 23:18:13 2010 -0700 Keep on going with make test! Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: runtest/nfs | 4 ++-- testcases/network/Makefile | 3 ++- testcases/network/nfs/nfs02/nfs02 | 2 +- testcases/open_posix_testsuite/Makefile | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/runtest/nfs b/runtest/nfs index b016e5d..19f2344 100644 --- a/runtest/nfs +++ b/runtest/nfs @@ -6,10 +6,10 @@ nfs01 export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs01 nfs02 export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs02 nfs03 export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs03 nfs04 export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfs04 -nfslock01 export VERSION; nfslock01 +nfslock01 export VERSION; TCbin=$LTPROOT/testcases/bin nfslock01 # This will run 1 thread on 20 directories with 50 files in each. -nfsstress export VERSION SOCKET_TYPE; nfsstress 20 50 1 +nfsstress export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin nfsstress 20 50 1 nfsstat01 export VERSION; TCbin=$LTPROOT/testcases/bin nfsstat01 nfsx-linux export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin fsx.sh diff --git a/testcases/network/Makefile b/testcases/network/Makefile index 0b35c71..f847df9 100644 --- a/testcases/network/Makefile +++ b/testcases/network/Makefile @@ -30,7 +30,8 @@ CLEAN_TARGETS += $(DIR) INSTALL_DIR := testcases/bin -INSTALL_TARGETS := $(addprefix $(DIR)/bin.,sm med lg jmb) +INSTALL_TARGETS := $(addprefix $(DIR)/ascii.,sm med lg jmb) +INSTALL_TARGETS += $(addprefix $(DIR)/bin.,sm med lg jmb) RM += -r diff --git a/testcases/network/nfs/nfs02/nfs02 b/testcases/network/nfs/nfs02/nfs02 index 18452e9..ff2a4ee 100755 --- a/testcases/network/nfs/nfs02/nfs02 +++ b/testcases/network/nfs/nfs02/nfs02 @@ -179,7 +179,7 @@ do_test3() { $trace_logic echo "do_test3 $TC " - chmod a-w $TCtmp/ascii.sm & + chmod a-wx $TCtmp/ascii.sm & wait $! ls -l $TCtmp/ascii.sm | grep "r--" [ $? -eq 0 ] || end_testcase "Removal of write permissions not honored on ascii.sm" diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 78ecf42..d912201 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -28,7 +28,7 @@ TEST_MAKE_ENV= $(MAKE_ENV) BUILD_MAKE= env $(BUILD_MAKE_ENV) $(MAKE) -TEST_MAKE= env $(TEST_MAKE_ENV) $(MAKE) +TEST_MAKE= env $(TEST_MAKE_ENV) $(MAKE) -k top_srcdir?= . hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 06:18:32
|
The branch, master, has been updated via d3932316ca77e87e99371680a1f8cd7e7521cb05 (commit) via 4fe1dbd06cd7b4f79388f2af929868a741e9a12e (commit) from 49c75d67c4898b1a02ba127a5e1088b0d9e30ac3 (commit) - Log ----------------------------------------------------------------- commit d3932316ca77e87e99371680a1f8cd7e7521cb05 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 23:14:45 2010 -0700 Be pedantic about the ret. code from timer_create. Opengroup says: If the call succeeds, timer_create() returns zero and updates the location referenced by timerid to a timer_t, which can be passed to the per-process timer calls. If an error occurs, the function returns a value of -1 and sets errno to indicate the error. The value of timerid is undefined if an error occurs. So, technically non-zero != -1 is undefined behavior. Signed-off-by: Garrett Cooper <yan...@gm...> commit 4fe1dbd06cd7b4f79388f2af929868a741e9a12e Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 23:12:55 2010 -0700 This test only requires -lrt. Also, remove unnecessary trailing newline in perror output. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../conformance/behavior/timers/1-1.c | 4 ++-- .../conformance/behavior/timers/LDLIBS | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/1-1.c b/testcases/open_posix_testsuite/conformance/behavior/timers/1-1.c index 52678fd..ac043b0 100644 --- a/testcases/open_posix_testsuite/conformance/behavior/timers/1-1.c +++ b/testcases/open_posix_testsuite/conformance/behavior/timers/1-1.c @@ -25,8 +25,8 @@ int main(int argc, char *argv[]) scTIMER_MAX=sysconf(_SC_TIMER_MAX); for (i=0; i<scTIMER_MAX;i++) { - if (timer_create(CLOCK_REALTIME, NULL, &tid) != 0) { - perror("timer_create() did not return success\n"); + if (timer_create(CLOCK_REALTIME, NULL, &tid) == -1) { + perror("timer_create() did not return success"); return PTS_FAIL; } } diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS index 4c7e2d8..08f7cd6 100644 --- a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS @@ -1 +1 @@ --lpthread -lrt +-lrt hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 05:53:07
|
The branch, master, has been updated via 49c75d67c4898b1a02ba127a5e1088b0d9e30ac3 (commit) from 9a569038e386fff5564b9c9bdc240e919f2f2958 (commit) - Log ----------------------------------------------------------------- commit 49c75d67c4898b1a02ba127a5e1088b0d9e30ac3 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 22:50:19 2010 -0700 Might as well add distclean... distclean-makefiles exist, so this is just for consistency... Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 1794aa3..78ecf42 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -40,6 +40,8 @@ clean: $(CRITICAL_MAKEFILES) $(MAKE) -C $$dir clean >/dev/null; \ done +distclean: distclean-makefiles + # Clean out all of the generated Makefiles. distclean-makefiles: @for dir in $(SUBDIRS); do \ hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 05:44:19
|
The branch, master, has been updated via 9a569038e386fff5564b9c9bdc240e919f2f2958 (commit) via b7385b9414a7ef0ea003faafff2fad372f2d6651 (commit) from 4be025ca1db5a9d1c0d712e21892be42d6205627 (commit) - Log ----------------------------------------------------------------- commit 9a569038e386fff5564b9c9bdc240e919f2f2958 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 12:03:06 2010 -0700 Break non-POSIX tests. Signed-off-by: Garrett Cooper <yan...@gm...> commit b7385b9414a7ef0ea003faafff2fad372f2d6651 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 11:53:57 2010 -0700 pthread_kill obviously requires -lpthread. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../getpid => definitions/signal_h}/LDLIBS | 0 .../functional/threads/robust_test/robust1-mode2.c | 5 +---- .../functional/threads/robust_test/robust1-sun.c | 5 +---- .../functional/threads/robust_test/robust2-mode2.c | 5 +---- .../functional/threads/robust_test/robust2-sun.c | 5 +---- .../functional/threads/robust_test/robust3-mode2.c | 5 +---- 6 files changed, 5 insertions(+), 20 deletions(-) copy testcases/open_posix_testsuite/conformance/{interfaces/getpid => definitions/signal_h}/LDLIBS (100%) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/getpid/LDLIBS b/testcases/open_posix_testsuite/conformance/definitions/signal_h/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/getpid/LDLIBS copy to testcases/open_posix_testsuite/conformance/definitions/signal_h/LDLIBS diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-mode2.c b/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-mode2.c index 9d2e4c4..f8029cc 100644 --- a/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-mode2.c +++ b/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-mode2.c @@ -18,10 +18,7 @@ /* * XXX: pthread_mutexattr_setrobust_np and PTHREAD_MUTEX_ROBUST_NP isn't POSIX. */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#warning "Uses GNU-isms; needs fixing." -#endif +#error "Uses GNU-isms; needs fixing." #include <pthread.h> #include <stdio.h> #include <stdlib.h> diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-sun.c b/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-sun.c index 50dbb13..fc934c9 100644 --- a/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-sun.c +++ b/testcases/open_posix_testsuite/functional/threads/robust_test/robust1-sun.c @@ -18,10 +18,7 @@ * XXX: pthread_mutexattr_setrobust_np and PTHREAD_MUTEX_ROBUST_SUN_NP isn't * POSIX. */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#warning "Uses GNU-isms; needs fixing." -#endif +#error "Uses GNU-isms; needs fixing." #include <pthread.h> #include <stdio.h> #include <stdlib.h> diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-mode2.c b/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-mode2.c index 0559c19..03d4223 100644 --- a/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-mode2.c +++ b/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-mode2.c @@ -19,10 +19,7 @@ /* * XXX: pthread_mutexattr_setrobust_np and PTHREAD_MUTEX_ROBUST_NP isn't POSIX. */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#warning "Uses GNU-isms; needs fixing." -#endif +#error "Uses GNU-isms; needs fixing." #include <pthread.h> #include <stdio.h> #include <stdlib.h> diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-sun.c b/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-sun.c index 690306e..143df22 100644 --- a/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-sun.c +++ b/testcases/open_posix_testsuite/functional/threads/robust_test/robust2-sun.c @@ -21,10 +21,7 @@ * XXX: pthread_mutexattr_setrobust_np and PTHREAD_MUTEX_ROBUST_SUN_NP isn't * POSIX. */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#warning "Uses GNU-isms; needs fixing." -#endif +#error "Uses GNU-isms; needs fixing." #include <pthread.h> #include <stdio.h> #include <stdlib.h> diff --git a/testcases/open_posix_testsuite/functional/threads/robust_test/robust3-mode2.c b/testcases/open_posix_testsuite/functional/threads/robust_test/robust3-mode2.c index a3d0669..8f5e0a7 100644 --- a/testcases/open_posix_testsuite/functional/threads/robust_test/robust3-mode2.c +++ b/testcases/open_posix_testsuite/functional/threads/robust_test/robust3-mode2.c @@ -19,10 +19,7 @@ /* * XXX: pthread_mutexattr_setrobust_np and PTHREAD_MUTEX_ROBUST_NP isn't POSIX. */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#warning "Uses GNU-isms; needs fixing." -#endif +#error "Uses GNU-isms; needs fixing." #include <pthread.h> #include <stdio.h> #include <stdlib.h> hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 05:34:11
|
The branch, master, has been updated via 4be025ca1db5a9d1c0d712e21892be42d6205627 (commit) via 4ce871eafb0c400d72d563c73ff659de446a6eba (commit) via dc78660e31c06352f246d6bd4c10771703ca9fb7 (commit) from b46cce64976237c8d8d74ab9becb301eab19ac4e (commit) - Log ----------------------------------------------------------------- commit 4be025ca1db5a9d1c0d712e21892be42d6205627 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 11:29:25 2010 -0700 Adjust LDLIBS files. Assume everything that requires -lrt requires -lpthread (for sem_* on Linux). aio_* is a realtime extension; add -lrt. Signed-off-by: Garrett Cooper <yan...@gm...> commit 4ce871eafb0c400d72d563c73ff659de446a6eba Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 11:22:53 2010 -0700 Use a value built off $(abs_top_srcdir) for top_srcdir. This is just cheaper for me to determine mentally, and a lot more intuitive to use for determining where sources are in open_posix_testsuite. Signed-off-by: Garrett Cooper <yan...@gm...> commit dc78660e31c06352f246d6bd4c10771703ca9fb7 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 11:19:20 2010 -0700 Fix linker errors on Fedora 13. Apparently glibc gets grumpy if you omit -lpthread when linking against symbols in -lrt (but is kind enough to note the error), so add -lpthread. FreeBSD doesn't care about this. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 2 +- .../conformance/behavior/timers/LDLIBS | 2 +- .../conformance/definitions/aio_h/LDLIBS | 2 +- .../conformance/interfaces/aio_cancel/LDLIBS | 2 +- .../interfaces/{fork => aio_error}/LDLIBS | 0 .../interfaces/{fork => aio_fsync}/LDLIBS | 0 .../interfaces/{fork => aio_read}/LDLIBS | 0 .../interfaces/{fork => aio_return}/LDLIBS | 0 .../interfaces/{fork => aio_suspend}/LDLIBS | 0 .../interfaces/{fork => aio_write}/LDLIBS | 0 .../interfaces/clock_getcpuclockid/LDLIBS | 2 +- .../conformance/interfaces/clock_getres/LDLIBS | 2 +- .../conformance/interfaces/clock_gettime/LDLIBS | 2 +- .../conformance/interfaces/clock_nanosleep/LDLIBS | 2 +- .../conformance/interfaces/clock_settime/LDLIBS | 2 +- .../conformance/interfaces/mlockall/LDLIBS | 2 +- .../conformance/interfaces/mmap/LDLIBS | 2 +- .../conformance/interfaces/nanosleep/LDLIBS | 2 +- .../conformance/interfaces/sem_close/LDLIBS | 2 +- .../conformance/interfaces/sem_open/LDLIBS | 2 +- .../conformance/interfaces/sem_post/LDLIBS | 2 +- .../conformance/interfaces/sem_timedwait/LDLIBS | 2 +- .../conformance/interfaces/sem_wait/LDLIBS | 2 +- .../conformance/interfaces/shm_open/LDLIBS | 2 +- .../conformance/interfaces/shm_unlink/LDLIBS | 2 +- .../conformance/interfaces/timer_create/LDLIBS | 2 +- .../conformance/interfaces/timer_delete/LDLIBS | 2 +- .../conformance/interfaces/timer_getoverrun/LDLIBS | 2 +- .../conformance/interfaces/timer_gettime/LDLIBS | 2 +- .../conformance/interfaces/timer_settime/LDLIBS | 2 +- 30 files changed, 24 insertions(+), 24 deletions(-) copy testcases/open_posix_testsuite/conformance/interfaces/{fork => aio_error}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{fork => aio_fsync}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{fork => aio_read}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{fork => aio_return}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{fork => aio_suspend}/LDLIBS (100%) copy testcases/open_posix_testsuite/conformance/interfaces/{fork => aio_write}/LDLIBS (100%) diff --git a/testcases/Makefile b/testcases/Makefile index ec9834a..ea57e3d 100644 --- a/testcases/Makefile +++ b/testcases/Makefile @@ -50,6 +50,6 @@ trunk-clean:: open_posix_testsuite-clean trunk-install: open_posix_testsuite-install open_posix_testsuite-%: open_posix_testsuite - $(MAKE) -C $^ top_srcdir=$(top_srcdir)/testcases/$^ $* + $(MAKE) -C $^ top_srcdir=$(abs_top_srcdir)/testcases/$^ $* include $(top_srcdir)/include/mk/generic_trunk_target.mk diff --git a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS b/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS b/testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_error/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_read/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_return/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/LDLIBS similarity index 100% copy from testcases/open_posix_testsuite/conformance/interfaces/fork/LDLIBS copy to testcases/open_posix_testsuite/conformance/interfaces/aio_write/LDLIBS diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mlockall/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mlockall/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mlockall/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/mlockall/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mmap/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/mmap/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mmap/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/mmap/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_close/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_close/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_close/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_close/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_open/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_open/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_open/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/shm_open/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/shm_open/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/shm_open/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/shm_open/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_gettime/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/LDLIBS b/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/LDLIBS index 08f7cd6..4c7e2d8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/LDLIBS +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/LDLIBS @@ -1 +1 @@ --lrt +-lpthread -lrt hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 04:38:22
|
The branch, master, has been updated via b46cce64976237c8d8d74ab9becb301eab19ac4e (commit) from f8d3588cca35972c6ef96769468af6e5e615950c (commit) - Log ----------------------------------------------------------------- commit b46cce64976237c8d8d74ab9becb301eab19ac4e Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 21:35:41 2010 -0700 Commit integrate Make rules under test. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/testcases/Makefile b/testcases/Makefile index a0abbe8..ec9834a 100644 --- a/testcases/Makefile +++ b/testcases/Makefile @@ -40,4 +40,16 @@ ifneq ($(UCLINUX),1) FILTER_OUT_DIRS += audit-test DOTS realtime endif +open_posix_testsuite: + mkdir -p $@ + +trunk-all: open_posix_testsuite-all + +trunk-clean:: open_posix_testsuite-clean + +trunk-install: open_posix_testsuite-install + +open_posix_testsuite-%: open_posix_testsuite + $(MAKE) -C $^ top_srcdir=$(top_srcdir)/testcases/$^ $* + include $(top_srcdir)/include/mk/generic_trunk_target.mk hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 04:22:54
|
The branch, master, has been updated via f8d3588cca35972c6ef96769468af6e5e615950c (commit) via 2ba63f24f2f3fcc65191ab0de172907c96712b0c (commit) from ec5557833ef9b56de0a174b976d06dce396b4112 (commit) - Log ----------------------------------------------------------------- commit f8d3588cca35972c6ef96769468af6e5e615950c Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 21:19:59 2010 -0700 If t0 isn't present or exec'able - game over. This avoids non-intuitive HUNG errors in run-test.sh. Signed-off-by: Garrett Cooper <yan...@gm...> commit 2ba63f24f2f3fcc65191ab0de172907c96712b0c Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 21:18:48 2010 -0700 Sync checks for sys/mman.h w/ posixtest HEAD. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/bin/run-tests.sh | 6 ++++++ .../definitions/sys/mman_h/10-1-buildonly.c | 5 +++++ .../definitions/sys/mman_h/20-1-buildonly.c | 5 +++++ .../definitions/sys/mman_h/21-1-buildonly.c | 5 +++++ .../definitions/sys/mman_h/22-1-buildonly.c | 5 +++++ .../definitions/sys/mman_h/8-1-buildonly.c | 5 +++++ .../definitions/sys/mman_h/8-2-buildonly.c | 5 +++++ .../definitions/sys/mman_h/8-3-buildonly.c | 5 +++++ 8 files changed, 41 insertions(+), 0 deletions(-) diff --git a/testcases/open_posix_testsuite/bin/run-tests.sh b/testcases/open_posix_testsuite/bin/run-tests.sh index 6d98b08..b2ab6b5 100755 --- a/testcases/open_posix_testsuite/bin/run-tests.sh +++ b/testcases/open_posix_testsuite/bin/run-tests.sh @@ -93,8 +93,14 @@ fi SCRIPT_DIR=`dirname "$0"` TEST_PATH=$1; shift +T0=$SCRIPT_DIR/t0 T0_VAL=$SCRIPT_DIR/t0.val +if [ ! -x $T0 ]; then + echo >&2 "ERROR: $T0 doesn't exist / isn't executable" + exit 1 +fi + if [ ! -f "$T0_VAL" ]; then $SCRIPT_DIR/t0 0 echo $? > "$T0_VAL" diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/10-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/10-1-buildonly.c index fd3a3ee..a30c7e6 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/10-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/10-1-buildonly.c @@ -15,6 +15,9 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 struct posix_typed_mem_info this_type_should_exist, t; @@ -26,3 +29,5 @@ int dummyfcn(void) return 0; } + +#endif diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/20-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/20-1-buildonly.c index 546ae8c..05160a1 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/20-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/20-1-buildonly.c @@ -16,6 +16,9 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 typedef int (*posix_mem_offset_test)(const void *restrict, size_t, off_t *restrict, size_t *restrict, @@ -27,3 +30,5 @@ int dummyfcn (void) dummyvar = posix_mem_offset; return 0; } + +#endif diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/21-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/21-1-buildonly.c index 9900ef9..45d6b31 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/21-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/21-1-buildonly.c @@ -15,6 +15,9 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 typedef int (*posix_typed_mem_get_info_test)(int, struct posix_typed_mem_info *); @@ -24,3 +27,5 @@ int dummyfcn (void) dummyvar = posix_typed_mem_get_info; return 0; } + +#endif diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/22-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/22-1-buildonly.c index eaae4d7..ed30fa8 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/22-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/22-1-buildonly.c @@ -15,6 +15,9 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 typedef int (*posix_typed_mem_open_test)(const char *, int, int); @@ -24,3 +27,5 @@ int dummyfcn (void) dummyvar = posix_typed_mem_open; return 0; } + +#endif diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-1-buildonly.c index 1b80031..bae76ca 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-1-buildonly.c @@ -14,7 +14,12 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 #ifndef POSIX_TYPED_MEM_ALLOCATE #error POSIX_TYPED_MEM_ALLOCATE not defined #endif + +#endif diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-2-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-2-buildonly.c index 887fc7a..22738f2 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-2-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-2-buildonly.c @@ -14,7 +14,12 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 #ifndef POSIX_TYPED_MEM_ALLOCATE_CONTIG #error POSIX_TYPED_MEM_ALLOCATE_CONTIG not defined #endif + +#endif diff --git a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-3-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-3-buildonly.c index e3f5e8c..76eea4c 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-3-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/8-3-buildonly.c @@ -14,7 +14,12 @@ */ #include <sys/mman.h> +#include <unistd.h> + +#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1 #ifndef POSIX_TYPED_MEM_MAP_ALLOCATABLE #error POSIX_TYPED_MEM_MAP_ALLOCATABLE not defined #endif + +#endif hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 04:19:31
|
The branch, master, has been updated via ec5557833ef9b56de0a174b976d06dce396b4112 (commit) from 88cc8f1cd411cd787ccb09f5dcdca81ce6be6389 (commit) - Log ----------------------------------------------------------------- commit ec5557833ef9b56de0a174b976d06dce396b4112 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 21:16:48 2010 -0700 Commit more runtime checks for aio_* on FreeBSD. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../conformance/interfaces/aio_cancel/1-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/10-1.c | 6 +++--- .../conformance/interfaces/aio_cancel/2-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/2-2.c | 5 ++--- .../conformance/interfaces/aio_cancel/3-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/4-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/5-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/6-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/7-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/8-1.c | 5 ++--- .../conformance/interfaces/aio_cancel/9-1.c | 6 +++--- .../conformance/interfaces/aio_error/1-1.c | 5 ++--- .../conformance/interfaces/aio_error/2-1.c | 5 ++--- .../conformance/interfaces/aio_error/3-1.c | 5 ++--- .../conformance/interfaces/aio_fsync/1-1.c | 12 ++++-------- .../conformance/interfaces/aio_fsync/10-1.c | 12 ++++-------- .../conformance/interfaces/aio_fsync/11-1.c | 12 ++++-------- .../conformance/interfaces/aio_fsync/12-1.c | 6 +++--- .../conformance/interfaces/aio_fsync/13-1.c | 12 ++++-------- .../conformance/interfaces/aio_fsync/14-1.c | 5 ++--- .../conformance/interfaces/aio_fsync/2-1.c | 13 ++----------- .../conformance/interfaces/aio_fsync/3-1.c | 5 ++--- .../conformance/interfaces/aio_fsync/4-1.c | 5 ++--- .../conformance/interfaces/aio_fsync/4-2.c | 5 ++--- .../conformance/interfaces/aio_fsync/5-1.c | 5 ++--- .../conformance/interfaces/aio_fsync/6-1.c | 12 ++++-------- .../conformance/interfaces/aio_fsync/7-1.c | 12 ++++-------- .../conformance/interfaces/aio_fsync/8-1.c | 5 ++--- .../conformance/interfaces/aio_fsync/8-2.c | 5 ++--- .../conformance/interfaces/aio_fsync/8-3.c | 5 ++--- .../conformance/interfaces/aio_fsync/8-4.c | 5 ++--- .../conformance/interfaces/aio_fsync/9-1.c | 5 ++--- .../conformance/interfaces/aio_read/1-1.c | 5 ++--- .../conformance/interfaces/aio_read/10-1.c | 5 ++--- .../conformance/interfaces/aio_read/11-1.c | 5 ++--- .../conformance/interfaces/aio_read/11-2.c | 5 ++--- .../conformance/interfaces/aio_read/12-1.c | 14 ++++---------- .../conformance/interfaces/aio_read/13-1.c | 14 ++++---------- .../conformance/interfaces/aio_read/14-1.c | 16 +++++----------- .../conformance/interfaces/aio_read/15-1.c | 18 +++--------------- .../conformance/interfaces/aio_read/2-1.c | 20 +++++--------------- .../conformance/interfaces/aio_read/3-1.c | 5 ++--- .../conformance/interfaces/aio_read/3-2.c | 5 ++--- .../conformance/interfaces/aio_read/4-1.c | 5 ++--- .../conformance/interfaces/aio_read/5-1.c | 5 ++--- .../conformance/interfaces/aio_read/6-1.c | 13 ++++--------- .../conformance/interfaces/aio_read/7-1.c | 5 ++--- .../conformance/interfaces/aio_read/8-1.c | 5 ++--- .../conformance/interfaces/aio_read/9-1.c | 5 ++--- .../conformance/interfaces/aio_return/1-1.c | 5 ++--- .../conformance/interfaces/aio_return/2-1.c | 5 ++--- .../conformance/interfaces/aio_return/3-1.c | 5 ++--- .../conformance/interfaces/aio_return/3-2.c | 5 ++--- .../conformance/interfaces/aio_return/4-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/1-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/2-1.c | 12 ++++-------- .../conformance/interfaces/aio_suspend/3-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/4-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/5-1.c | 19 ++++++------------- .../conformance/interfaces/aio_suspend/6-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/7-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/8-1.c | 5 ++--- .../conformance/interfaces/aio_suspend/9-1.c | 5 ++--- .../conformance/interfaces/aio_write/1-1.c | 5 ++--- .../conformance/interfaces/aio_write/1-2.c | 5 ++--- .../conformance/interfaces/aio_write/10-1.c | 12 ++++-------- .../conformance/interfaces/aio_write/11-1.c | 12 ++++-------- .../conformance/interfaces/aio_write/12-1.c | 12 ++++-------- .../conformance/interfaces/aio_write/13-1.c | 13 ++++--------- .../conformance/interfaces/aio_write/2-1.c | 5 ++--- .../conformance/interfaces/aio_write/3-1.c | 5 ++--- .../conformance/interfaces/aio_write/5-1.c | 5 ++--- .../conformance/interfaces/aio_write/6-1.c | 5 ++--- .../conformance/interfaces/aio_write/7-1.c | 5 ++--- .../conformance/interfaces/aio_write/8-1.c | 5 ++--- .../conformance/interfaces/aio_write/8-2.c | 5 ++--- .../conformance/interfaces/aio_write/9-1.c | 5 ++--- .../conformance/interfaces/aio_write/9-2.c | 5 ++--- 78 files changed, 198 insertions(+), 360 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/1-1.c index 1796d10..14ef2b5 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/1-1.c @@ -42,9 +42,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/10-1.c index 765a5b7..f262223 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/10-1.c @@ -34,9 +34,9 @@ int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; if (aio_cancel(-1, NULL) != -1) { diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-1.c index ba0b19f..a420b3e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-1.c @@ -47,9 +47,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-2.c index 7af51b6..c484062 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/2-2.c @@ -41,9 +41,8 @@ int main() char tmpfname[256]; int fd; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_2_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c index 29db1ec..e49687d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c @@ -72,9 +72,8 @@ int main() struct sigaction action; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/4-1.c index 9499df5..6c4b40e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/4-1.c @@ -52,9 +52,8 @@ int main() int i; int in_progress; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/5-1.c index 956e749..6d01cea 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/5-1.c @@ -52,9 +52,8 @@ int main() int in_progress; static int check_one; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_5_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/6-1.c index 5e35427..a1b520d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/6-1.c @@ -54,9 +54,8 @@ int main() int in_progress; int gret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_6_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/7-1.c index 6b8f70c..f083381 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/7-1.c @@ -52,9 +52,8 @@ int main() int in_progress; int gret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_7_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/8-1.c index ff3ecc8..f23d613 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/8-1.c @@ -44,9 +44,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_cancel_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/9-1.c index cffa560..8cd290b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/9-1.c @@ -35,9 +35,9 @@ int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; if (aio_cancel(-1, NULL) != -1) { diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/1-1.c index 1a67893..c6b6062 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/1-1.c @@ -42,9 +42,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_error_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/2-1.c index 0ba1abe..a3f0c9b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/2-1.c @@ -46,9 +46,8 @@ int main() int i; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - return PTS_UNSUPPORTED; -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_error_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c index 7f6c893..d215409 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c @@ -44,9 +44,8 @@ int main() struct aiocb aiocb; int ret=0; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_error_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/1-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/1-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/10-1.c index a0b10cd..e2f9a21 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/10-1.c @@ -21,17 +21,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/11-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/11-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/11-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/11-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/12-1.c index b0de45a..cc9b6e1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/12-1.c @@ -24,9 +24,9 @@ int main() { struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; memset(&aiocb, 0, sizeof(struct aiocb)); aiocb.aio_fildes = -1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/13-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/13-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/13-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/13-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c index 6eb2eb3..bc1d384 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_14_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c index 5088d84..52d0dad 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c @@ -23,7 +23,6 @@ #define BUF_SIZE 1024 -#if defined(_POSIX_ASYNCHRONOUS_IO) && 200112L <= _POSIX_ASYNCHRONOUS_IO int main (void) { @@ -33,7 +32,8 @@ main (void) struct aiocb aiocb_write; struct aiocb aiocb_fsync; - exit(PTS_UNSUPPORTED); + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_2_1_%d", getpid()); @@ -76,12 +76,3 @@ main (void) return PTS_UNTESTED; } -#else -int -main (void) -{ - printf(TNAME " required _POSIX_ASYNCHRONOUS_IO support isn't " - "available\n"); - exit(PTS_UNSUPPORTED); -} -#endif diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/3-1.c index d746423..dd80669 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/3-1.c @@ -31,9 +31,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-1.c index a2f1683..41adb25 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-1.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-2.c index 3ae9a89..9bc63ea 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-2.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_4_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/5-1.c index 41b2fd0..6524cf8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/5-1.c @@ -32,9 +32,8 @@ int main() struct aiocb aiocb_fsync; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_5_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/6-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/6-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/7-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/7-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-1.c index 8eef14c..8a54098 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-1.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_8_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-2.c index 33ae064..798339e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-2.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_8_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-3.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-3.c index 86fbceb..c7ad2f4 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-3.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_8_3_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-4.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-4.c index 1472ef7..bce6714 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-4.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_8_4_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/9-1.c index 7a3491b..6ff435f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/9-1.c @@ -30,9 +30,8 @@ int main() struct aiocb aiocb_write; struct aiocb aiocb_fsync; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_fsync_9_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/1-1.c index e5820ca..596cb9a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/1-1.c @@ -46,9 +46,8 @@ int main() struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/10-1.c index c562a91..7c835dd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/10-1.c @@ -42,9 +42,8 @@ int main() struct aiocb aiocb; int ret=0; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; memset(buf, 0xaa, BUF_SIZE); memset(&aiocb, 0, sizeof(struct aiocb)); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-1.c index 018460e..22d73cd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-1.c @@ -44,9 +44,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_11_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-2.c index 5e9f56f..b0030e4 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/11-2.c @@ -44,9 +44,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_11_2%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/12-1.c index 9a3ee2d..9eadfa5 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/12-1.c @@ -20,19 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" -#define TNAME "aio_read/12-1.c" - int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/13-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/13-1.c index 32e50f9..96cc008 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/13-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/13-1.c @@ -19,19 +19,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" -#define TNAME "aio_read/13-1.c" - int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/14-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/14-1.c index a6aad0c..5425cfc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/14-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/14-1.c @@ -10,7 +10,7 @@ * assertion: * * The error status of a succesfully queued operation shall be: - * [EINVAL] if aio_offset woud be invalid, or aio_reqprio is not a valid + * [EINVAL] if aio_offset would be invalid, or aio_reqprio is not a valid * value, or aio_nbytes is an invalid value. * * method: @@ -20,19 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" -#define TNAME "aio_read/14-1.c" - int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/15-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/15-1.c index 2bc9610..53288ee 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/15-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/15-1.c @@ -20,25 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <sys/resource.h> -#include <aio.h> -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "posixtest.h" int main() { - char tmpfname[256]; -#define BUF_SIZE 1024 - char buf[BUF_SIZE]; - int fd; - struct aiocb aiocb; - struct rlimit limit; - -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/2-1.c index f707334..d13d24d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/2-1.c @@ -18,24 +18,14 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> -#include <unistd.h> #include <stdlib.h> -#include <aio.h> - +#include <unistd.h> #include "posixtest.h" -#define TNAME "aio_read/2-1.c" - int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - -#ifndef _POSIX_PRIORITIZED_IO - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L || + sysconf(_SC_PRIORITIZED_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-1.c index 4fb0e64..248a00d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-1.c @@ -41,9 +41,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-2.c index c2f89d8..28931e5 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/3-2.c @@ -41,9 +41,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_3_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/4-1.c index c1d1517..8305ec8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/4-1.c @@ -43,9 +43,8 @@ int main() struct aiocb aiocb; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/5-1.c index 378b971..4ecc5d6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/5-1.c @@ -44,9 +44,8 @@ int main() struct aiocb aiocb; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_5_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/6-1.c index 75e2d8a..8f070b0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/6-1.c @@ -20,18 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { - -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c index 5874063..54581a6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/7-1.c @@ -42,9 +42,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_read_7_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/8-1.c index fc872fa..789348c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/8-1.c @@ -38,9 +38,8 @@ int main() { struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; /* submit a request with a NULL buffer */ aiocb.aio_fildes = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/9-1.c index 2dc0420..63bb8a6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_read/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_read/9-1.c @@ -50,9 +50,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/1-1.c index d159697..bfc8e12 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/1-1.c @@ -43,9 +43,8 @@ int main(void) struct aiocb aiocb; int fd, retval; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_return_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/2-1.c index 6e9ff5d..c363a00 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/2-1.c @@ -41,9 +41,8 @@ int main(void) struct aiocb aiocb; int fd, retval; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_return_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-1.c index 12d4bc7..2dd9177 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-1.c @@ -46,9 +46,8 @@ int main(void) struct aiocb aiocb; int fd, retval; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_return_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-2.c index f0b058b..8e018c2 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/3-2.c @@ -44,9 +44,8 @@ int main(void) struct aiocb aiocb; int fd, retval; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_return_3_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/4-1.c index 321e6ab..f67a4fb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_return/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_return/4-1.c @@ -44,9 +44,8 @@ int main(void) struct aiocb aiocb2; int fd, retval; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_return_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/1-1.c index 70cab0c..7d33e62 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/1-1.c @@ -76,9 +76,8 @@ main () int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/2-1.c index 9349a4f..2b47824 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/2-1.c @@ -19,17 +19,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/3-1.c index 16fac81..378c158 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/3-1.c @@ -47,9 +47,8 @@ int main() const struct aiocb *list[NENT]; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/4-1.c index f197de0..260c26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/4-1.c @@ -74,9 +74,8 @@ main () int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/5-1.c index 7a42ef2..f102c0c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/5-1.c @@ -16,23 +16,16 @@ * * UNTESTED */ + #define _XOPEN_SOURCE 600 -#include <stdio.h> -#include <unistd.h> #include <stdlib.h> -#include <aio.h> - +#include <unistd.h> #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - -#if _POSIX_MONOTONIC_CLOCK == 0 - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L || + sysconf(_SC_MONOTONIC_CLOCK) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/6-1.c index 288d2c8..bc464c8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/6-1.c @@ -72,9 +72,8 @@ main () int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_6_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/7-1.c index 0e14012..83a6a00 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/7-1.c @@ -74,9 +74,8 @@ main () int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_7_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/8-1.c index fa77c2a..0023520 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/8-1.c @@ -77,9 +77,8 @@ main () int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_8_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/9-1.c index 024bc94..39d504d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/9-1.c @@ -74,9 +74,8 @@ main () int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_suspend_9_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-1.c index 98906ea..b95cfab 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-1.c @@ -47,9 +47,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-2.c index f5b5070..f6fbc90 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/1-2.c @@ -48,9 +48,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_1_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/10-1.c index d83cd3c..40fd93b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/10-1.c @@ -20,17 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/11-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/11-1.c index d30197d..62a89b4 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/11-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/11-1.c @@ -20,17 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/12-1.c index 083df51..536b385 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/12-1.c @@ -19,17 +19,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/13-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/13-1.c index 3e59828..20f98ca 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/13-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/13-1.c @@ -20,18 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { - -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/2-1.c index 685a3ce..8daa2cd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/2-1.c @@ -55,9 +55,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/3-1.c index 8f33131..4d7470e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/3-1.c @@ -47,9 +47,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/5-1.c index 39773b1..9e7f9ec 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/5-1.c @@ -45,9 +45,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_5_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/6-1.c index 65b5d47..9154f5a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/6-1.c @@ -39,9 +39,8 @@ int main() { struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; /* submit a request with a NULL buffer */ aiocb.aio_fildes = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c index 58f833f..30260c3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/7-1.c @@ -50,9 +50,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-1.c index 21c6dec..d1d9494 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-1.c @@ -42,9 +42,8 @@ int main() struct aiocb aiocb; int ret=0; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; memset(buf, 0xaa, BUF_SIZE); memset(&aiocb, 0, sizeof(struct aiocb)); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c index 571a2b4..60aa2b2 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c @@ -44,9 +44,8 @@ int main() struct aiocb aiocb; int ret=0; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_8_2_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-1.c index 19bfca7..5ea9576 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-1.c @@ -46,9 +46,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_9_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-2.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-2.c index 46c4e54..87f8980 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/9-2.c @@ -46,9 +46,8 @@ int main() int fd; struct aiocb aiocb; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + return PTS_UNSUPPORTED; snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_aio_write_9_2_%d", getpid()); hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 03:56:48
|
The branch, master, has been updated via 88cc8f1cd411cd787ccb09f5dcdca81ce6be6389 (commit) via 50e63b3434fec6e7193ed2710df2af393ba911bb (commit) via 6b6f81b02cbd9b4c7507af6b6aec6980c2eb257d (commit) via 26b17d17e4d1df59ea3b70f72d194e87dafafaa3 (commit) via 0554dd8ef784c223f74e14de513b1752a9949dae (commit) from 5a8278a619f323b252b5a816fabdc997ae688c15 (commit) - Log ----------------------------------------------------------------- commit 88cc8f1cd411cd787ccb09f5dcdca81ce6be6389 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 20:54:11 2010 -0700 Clean up headers and whitespace. Signed-off-by: Garrett Cooper <yan...@gm...> commit 50e63b3434fec6e7193ed2710df2af393ba911bb Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 20:46:15 2010 -0700 Update FreeBSD configuration documentation. Add notes about aio_* syscalls on FreeBSD, and fix the mqueue notes as the name of the kernel module wasn't a 1:1 match with the directory name under /sys/modules/... Signed-off-by: Garrett Cooper <yan...@gm...> commit 6b6f81b02cbd9b4c7507af6b6aec6980c2eb257d Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 20:43:14 2010 -0700 Check for support w/ sysconf(_SC_ASYNCHRONOUS_IO). Checking for a preprocessor define is very Linux centric (apparently), as FreeBSD states in sys/unistd.h: * Anything which is defined as zero below **must** have an * implementation for the corresponding sysconf() which is able to * determine conclusively whether or not the feature is supported. * Anything which is defined as other than -1 below **must** have * complete headers, types, and function declarations as specified by * the POSIX standard; however, if the relevant sysconf() function * returns -1, the functions may be stubbed out. This is done most likely done to ensure that runtime enabled functionality via kernel modules is properly queried. Signed-off-by: Garrett Cooper <yan...@gm...> commit 26b17d17e4d1df59ea3b70f72d194e87dafafaa3 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 18:45:23 2010 -0700 Fix alignment as per posixtest HEAD. Signed-off-by: Garrett Cooper <yan...@gm...> commit 0554dd8ef784c223f74e14de513b1752a9949dae Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 18:38:19 2010 -0700 Commit fixes from posixtest CVS HEAD. Minor formatting fixes, but basically untainted. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/BUILD | 13 ++++++++++++- .../definitions/sched_h/3-1-buildonly.c | 2 +- .../definitions/sched_h/4-1-buildonly.c | 2 +- .../definitions/sched_h/8-3-buildonly.c | 7 +++++++ .../conformance/interfaces/clock_gettime/3-1.c | 8 ++++---- .../conformance/interfaces/lio_listio/1-1.c | 5 ++--- .../conformance/interfaces/lio_listio/10-1.c | 5 ++--- .../conformance/interfaces/lio_listio/11-1.c | 7 +++---- .../conformance/interfaces/lio_listio/12-1.c | 6 ++---- .../conformance/interfaces/lio_listio/13-1.c | 5 ++--- .../conformance/interfaces/lio_listio/14-1.c | 17 +++++++++++------ .../conformance/interfaces/lio_listio/15-1.c | 5 ++--- .../conformance/interfaces/lio_listio/16-1.c | 8 ++------ .../conformance/interfaces/lio_listio/17-1.c | 6 ++---- .../conformance/interfaces/lio_listio/18-1.c | 5 ++--- .../conformance/interfaces/lio_listio/19-1.c | 8 ++------ .../conformance/interfaces/lio_listio/2-1.c | 5 ++--- .../conformance/interfaces/lio_listio/20-1.c | 12 ++++-------- .../conformance/interfaces/lio_listio/21-1.c | 12 ++++-------- .../conformance/interfaces/lio_listio/22-1.c | 12 ++++-------- .../conformance/interfaces/lio_listio/23-1.c | 12 ++++-------- .../conformance/interfaces/lio_listio/24-1.c | 12 ++++-------- .../conformance/interfaces/lio_listio/25-1.c | 12 ++++-------- .../conformance/interfaces/lio_listio/3-1.c | 5 ++--- .../conformance/interfaces/lio_listio/4-1.c | 5 ++--- .../conformance/interfaces/lio_listio/5-1.c | 19 ++++++++----------- .../conformance/interfaces/lio_listio/6-1.c | 6 +++--- .../conformance/interfaces/lio_listio/7-1.c | 5 ++--- .../conformance/interfaces/lio_listio/8-1.c | 5 ++--- .../conformance/interfaces/lio_listio/9-1.c | 5 ++--- .../interfaces/sched_setscheduler/1-1.c | 5 +++-- .../interfaces/sched_setscheduler/10-1.c | 16 +++++----------- .../interfaces/sched_setscheduler/11-1.c | 17 +++++------------ .../interfaces/sched_setscheduler/17-1.c | 4 ++-- .../interfaces/sched_setscheduler/17-2.c | 4 ++-- .../interfaces/sched_setscheduler/17-3.c | 3 ++- .../interfaces/sched_setscheduler/17-4.c | 4 ++-- .../interfaces/sched_setscheduler/19-1.c | 4 ++-- .../interfaces/sched_setscheduler/19-2.c | 3 +-- .../interfaces/sched_setscheduler/19-3.c | 5 ++--- .../interfaces/sched_setscheduler/19-4.c | 4 ++-- 41 files changed, 132 insertions(+), 173 deletions(-) diff --git a/testcases/open_posix_testsuite/BUILD b/testcases/open_posix_testsuite/BUILD index 1c31f31..c53db90 100644 --- a/testcases/open_posix_testsuite/BUILD +++ b/testcases/open_posix_testsuite/BUILD @@ -22,13 +22,24 @@ FREEBSD ======= ================ +Asynchronous I/O +================ +Realtime asynchronous I/O has been available in FreeBSD since 5.x. Please add: + +options VFS_AIO + +to your kernel conf or build, install, and load the aio module. + +================ Message Queues ================ POSIX message queues have been available in FreeBSD since 6.x. Please add: options P1003_1B_MQUEUE -to your kernel conf or build, install, and load the mqueue module. +to your kernel conf or build and install the mqueue module, and load it with: + +kldload mqueuefs ================ Realtime Support diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1-buildonly.c index 06f500a..6054eca 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sched_h/3-1-buildonly.c @@ -18,7 +18,7 @@ #include <sched.h> #include <unistd.h> -#ifdef _POSIX_SPORADIC_SERVER +#if defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1 struct sched_param s; diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1-buildonly.c index 7a5de7f..e9bb17c 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sched_h/4-1-buildonly.c @@ -18,7 +18,7 @@ #include <sched.h> #include <unistd.h> -#ifdef _POSIX_THREAD_SPORADIC_SERVER +#if defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1 struct sched_param s; diff --git a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c index 8dde471..83b06da 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/sched_h/8-3-buildonly.c @@ -14,7 +14,14 @@ */ #include <sched.h> +#include <unistd.h> + +#if (defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1) \ + || (defined(_POSIX_THREAD_SPORADIC_SERVER) && \ + POSIX_THREAD_SPORADIC_SERVER != -1) #ifndef SCHED_SPORADIC #error SCHED_SPORADIC not defined #endif + +#endif diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/3-1.c index d8b1271..73b0da1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/3-1.c @@ -20,14 +20,14 @@ int main(int argc, char *argv[]) { #ifdef CLOCK_MONOTONIC + struct timespec ts1, ts2, ts3, ts4; + /* Test that MONOTONIC CLOCK functionality really exists */ - if(sysconf(_SC_MONOTONIC_CLOCK) == -1) - { + if(sysconf(_SC_MONOTONIC_CLOCK) == -1) + { printf("CLOCK_MONOTONIC unsupported\n"); return PTS_UNSUPPORTED; } - - struct timespec ts1, ts2, ts3, ts4; if (clock_gettime(CLOCK_MONOTONIC, &ts1) != 0) { printf("clock_gettime() failed\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/1-1.c index 0fd71c7..f19fcd3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/1-1.c @@ -67,9 +67,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_1_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/10-1.c index 4b25669..ace94ab 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/10-1.c @@ -66,9 +66,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_10_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/11-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/11-1.c index ca5be00..216f3b8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/11-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/11-1.c @@ -66,9 +66,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_11_1_%d", getpid()); @@ -145,7 +144,7 @@ int main() } if (errno != EIO) { - printf(TNAME " lio_listio() sould set errno to EIO %d\n", errno); + printf(TNAME " lio_listio() should set errno to EIO %d\n", errno); for (i=0; i<NUM_AIOCBS; i++) free (aiocbs[i]); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/12-1.c index 5dfc989..4539fdc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/12-1.c @@ -29,7 +29,6 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> - #include "posixtest.h" #define TNAME "lio_listio/12-1.c" @@ -49,9 +48,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_12_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/13-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/13-1.c index c948381..a502ea9 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/13-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/13-1.c @@ -48,9 +48,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_13_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/14-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/14-1.c index 7e46612..a5e7614 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/14-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/14-1.c @@ -66,9 +66,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_14_1_%d", getpid()); @@ -95,8 +94,14 @@ int main() /* Queue up a bunch of aio writes */ for (i = 0; i < NUM_AIOCBS; i++) { - aiocbs[i] = (struct aiocb *)malloc(sizeof(struct aiocb)); - memset(aiocbs[i], 0, sizeof(struct aiocb)); + aiocbs[i] = (struct aiocb *)calloc(sizeof(struct aiocb), 1); + if (aiocbs == NULL) { + printf (TNAME " Error at malloc(): %s\n", + strerror (errno)); + free(bufs); + close (fd); + exit(PTS_UNRESOLVED); + } if (i == 2) aiocbs[i]->aio_fildes = -1; @@ -147,7 +152,7 @@ int main() while (received_all == 0) sleep (1); - if (num_received != NUM_AIOCBS-1) { + if (num_received != NUM_AIOCBS) { printf(TNAME " Error incomplete number of completed requests\n"); for (i=0; i<NUM_AIOCBS; i++) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/15-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/15-1.c index 8e0b68d..bacfeac 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/15-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/15-1.c @@ -66,9 +66,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_15_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/16-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/16-1.c index 6843b91..407c396 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/16-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/16-1.c @@ -20,17 +20,13 @@ */ #define _XOPEN_SOURCE 600 -#include <aio.h> -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "posixtest.h" int main(void) { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#else + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); exit(PTS_UNTESTED); -#endif } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/17-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/17-1.c index 57508a8..1a89500 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/17-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/17-1.c @@ -15,9 +15,7 @@ int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#else + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); exit(PTS_UNTESTED); -#endif } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/18-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/18-1.c index 869397f..26631b7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/18-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/18-1.c @@ -46,9 +46,8 @@ int main() char *bufs; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_18_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/19-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/19-1.c index 09e14d1..b1673b2 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/19-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/19-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <aio.h> -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "posixtest.h" int main(void) { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#else + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); exit(PTS_UNTESTED); -#endif } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/2-1.c index a5b5b7f..d174585 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/2-1.c @@ -65,9 +65,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_2_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/20-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/20-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/20-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/20-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/21-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/21-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/21-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/21-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/22-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/22-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/22-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/22-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/23-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/23-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/23-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/23-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/24-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/24-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/24-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/24-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/25-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/25-1.c index c079c7d..a7aa26a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/25-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/25-1.c @@ -7,17 +7,13 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> -#include <aio.h> - #include "posixtest.h" int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif - - return PTS_UNTESTED; + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); + exit(PTS_UNTESTED); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/3-1.c index cee9869..1ceb7de 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/3-1.c @@ -66,9 +66,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_3_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/4-1.c index 922830c..6745660 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/4-1.c @@ -66,9 +66,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/5-1.c index 8367e4d..3a46ced 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/5-1.c @@ -23,16 +23,15 @@ */ #define _XOPEN_SOURCE 600 -#include <stdio.h> -#include <sys/types.h> -#include <unistd.h> #include <sys/stat.h> -#include <fcntl.h> -#include <string.h> +#include <sys/types.h> +#include <aio.h> #include <errno.h> +#include <fcntl.h> +#include <stdio.h> #include <stdlib.h> -#include <aio.h> - +#include <string.h> +#include <unistd.h> #include "posixtest.h" #define NUM_AIOCBS 3 @@ -52,10 +51,8 @@ int main() int err; int i; - -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/6-1.c index d40e996..29dd804 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/6-1.c @@ -34,9 +34,9 @@ int main() { -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); #ifndef LIO_READ printf(TNAME " LIO_READ not defined\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/7-1.c index 513ffe5..f5a71f7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/7-1.c @@ -67,9 +67,8 @@ int main() int err; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_4_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/8-1.c index cad47b4..18ec827 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/8-1.c @@ -48,9 +48,8 @@ int main() int err; int ret; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_8_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/9-1.c index f477fcf..9689a6a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/9-1.c @@ -48,9 +48,8 @@ int main() int ret; int i; -#if _POSIX_ASYNCHRONOUS_IO != 200112L - exit(PTS_UNSUPPORTED); -#endif + if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L) + exit(PTS_UNSUPPORTED); snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_lio_listio_9_1_%d", getpid()); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/1-1.c index 073db70..54fa9ec 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/1-1.c @@ -15,10 +15,11 @@ * For all policy describe in the spec, the test will check the policy and the * param of the process after the call of sched_setscheduler. */ -#include <sched.h> + #include <errno.h> -#include <unistd.h> +#include <sched.h> #include <stdio.h> +#include <unistd.h> #include "posixtest.h" struct unique { diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/10-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/10-1.c index 9e86025..f4e4c85 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/10-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/10-1.c @@ -14,20 +14,14 @@ * @pt:SS */ -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> #include "posixtest.h" -#ifdef _POSIX_SPORADIC_SERVER int main() { - printf("Not yet tested.\n"); - return PTS_UNTESTED; -} - +#if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) + exit(PTS_UNSUPPORTED); #else -int main() { - printf("Does not support SS (SPORADIC SERVER)\n"); - return PTS_UNSUPPORTED; -} - + exit(PTS_UNTESTED); #endif +} diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/11-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/11-1.c index 17ffcf9..c245fab 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/11-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/11-1.c @@ -11,25 +11,18 @@ * sched_ss_init_budget members of the param argument have no effect on the * scheduling behavior if the scheduling policy of the target process is either * SCHED_FIFO or SCHED_RR. - * * @pt:SS */ -#include <stdio.h> +#include <stdlib.h> #include <unistd.h> #include "posixtest.h" -#ifdef _POSIX_SPORADIC_SERVER int main() { - printf("Not yet tested.\n"); - return PTS_UNTESTED; -} - +#if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) + exit(PTS_UNSUPPORTED); #else -int main() { - printf("Does not support SS (SPORADIC SERVER)\n"); - return PTS_UNSUPPORTED; -} - + exit(PTS_UNTESTED); #endif +} diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-1.c index 73393bd..ca0b45a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-1.c @@ -18,10 +18,11 @@ * 2. Call sched_setscheduler with invalid args. * 3. Check that the policy and priority have not changed. */ + +#include <errno.h> #include <sched.h> #include <stdio.h> #include <unistd.h> -#include <errno.h> #include "posixtest.h" struct unique { @@ -121,4 +122,3 @@ int main(){ } return result; } - diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-2.c index ae3c230..8f429a2 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-2.c @@ -19,13 +19,13 @@ * * @pt:SS */ + +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include "posixtest.h" - #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(){ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-3.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-3.c index 9198bec..4cc77a4 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-3.c @@ -19,9 +19,10 @@ * * @pt:SS */ + +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include "posixtest.h" diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-4.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-4.c index d36b05b..49ab0b7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-4.c @@ -19,13 +19,13 @@ * * @pt:SS */ + +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include "posixtest.h" - #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(){ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-1.c index 1d247a7..84075cc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-1.c @@ -13,10 +13,11 @@ * * Test is done for all policy defined in the spec into a loop. */ + +#include <errno.h> #include <sched.h> #include <stdio.h> #include <unistd.h> -#include <errno.h> #include "posixtest.h" struct unique { @@ -92,4 +93,3 @@ int main(){ } return result; } - diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-2.c index 04f5caa..674b7ae 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-2.c @@ -15,10 +15,9 @@ * @pt:SS */ - +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-3.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-3.c index 3a46ce3..f10ed89 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-3.c @@ -14,14 +14,13 @@ * * @pt:SS */ + +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include "posixtest.h" - - #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(){ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-4.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-4.c index 9f92b2c..cc6c874 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-4.c @@ -15,13 +15,13 @@ * * @pt:SS */ + +#include <errno.h> #include <sched.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include "posixtest.h" - #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(){ hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-11 01:13:17
|
The branch, master, has been updated via 5a8278a619f323b252b5a816fabdc997ae688c15 (commit) via 5e3aabb0b49e4be4fc35a33403fde96360ec396a (commit) from 17b3085ae6f936edcce93e7a61e808dc6ca2fdac (commit) - Log ----------------------------------------------------------------- commit 5a8278a619f323b252b5a816fabdc997ae688c15 Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 18:11:30 2010 -0700 Make a note about subdirectory CFLAGS, LDFLAGS, LDLIBS. Signed-off-by: Garrett Cooper <yan...@gm...> commit 5e3aabb0b49e4be4fc35a33403fde96360ec396a Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 16:42:59 2010 -0700 Update directions, get the changelog closer to posixtest HEAD. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/BUILD | 4 + testcases/open_posix_testsuite/ChangeLog | 20 +++--- .../Documentation/HOWTO_RunTests | 75 ++++++++------------ testcases/open_posix_testsuite/QUICK-START | 25 ++++--- 4 files changed, 58 insertions(+), 66 deletions(-) diff --git a/testcases/open_posix_testsuite/BUILD b/testcases/open_posix_testsuite/BUILD index 655e204..1c31f31 100644 --- a/testcases/open_posix_testsuite/BUILD +++ b/testcases/open_posix_testsuite/BUILD @@ -13,6 +13,10 @@ In general, when calling *make: set the value via CFLAGS. - If you need to pass in any libraries for linking, set the value via LDLIBS. - If you need to pass any other values to the linker, set the value via LDFLAGS. +- Each subdirectory optionally contains one of the above files to denote the + fact that it needs special linker flags, preprocessor defines, etc. This is + done in this fashion to ensure that the requirements for each subdirectory is + correctly tuned in a deterministic manner. FREEBSD ======= diff --git a/testcases/open_posix_testsuite/ChangeLog b/testcases/open_posix_testsuite/ChangeLog index 3a7b84e..b3f47cc 100644 --- a/testcases/open_posix_testsuite/ChangeLog +++ b/testcases/open_posix_testsuite/ChangeLog @@ -1,8 +1,8 @@ 10-19-2005 1.5.2 Release - - Code cleanups by Sebastien Decugis + - Code cleanups by Sebastien Dugue - Add a patch for cleaner build in cross environment from Joseph S. Myers - Add a patch to _POSIX_CPUTIME and_POSIX_THREAD_CPUTIME handling from Joseph S. Myers - - Make the aio_read/write tests concerningthe offset maximum return PTS_UNTESTED by Sebastien Decugis + - Make the aio_read/write tests concerningthe offset maximum return PTS_UNTESTED by Sebastien Dugue - A patch from Randy.Dunlap to fix shm conformance uninitialzedvariables - A patch from Randy.Dunlap to fix 2 pthread conformance problems - The patches for sem_post_5_1 and sem_post_8_1 from Yi Xu @@ -11,7 +11,7 @@ 06-03-2005 1.5.1 Release - conformance/interfaces/aio_* and conformance/interface/lio_listio: add new cases and bug - fixes by Sebastien Decugis. + fixes by Sebastien Dugue. - add execute.sh by B. Thangaraju. 01-05-2005 1.5.0 Release @@ -21,26 +21,26 @@ 07-05-2004 ad...@in... - functional/schedule/1-1.c 1-2.c: New case by Abhijeet Bisain. - stress/threads/pthread_cond_timedwait/stress1.c stress2.c: - New case by Sebastien Decugis. + New case by Sebastien Dugue. 07-01-2004 ad...@in... - pthread_attr_setschedparam/1-3.c 1-4.c: Add test cases by Abhijeet Bisain. - stress/threads/assertions.xml, - stress/threads/pthread_cond_timedwait/: New case by Sebastien Decugis + stress/threads/pthread_cond_timedwait/: New case by Sebastien Dugue 06-29-2004 ad...@in... - pthread_attr_setinheritsched/2-3.c, 2-4.c - functional/threads/condvar/, README: Add test cases by Abhijeet Bisain. 06-28-2004 ad...@in... - stress/threads/pthread_mutex_init/, pthread_mutex_lock/, - pthread_cond_init/: Add stress/scalability cases by Sebastien Decugis + pthread_cond_init/: Add stress/scalability cases by Sebastien Dugue 06-22-2004 ad...@in... - pthread_cond_destroy/speculative/4-1.c, pthread_mutex_destroy/ speculative/4-2.c, pthread_exit/3-1.c: Add new test case by Abhijeet Bisain 06-15-2004 ad...@in... - pthread_cond_init/1-2.c, 2-2.c,4-1.c 4-2.c: Add test case by - Sebastien Decugis. + Sebastien Dugue. - pthread_cancel/2-2.c, 2-3.c, 3-3.c: Add test case by Abhijeet Bisain. 06-11-2004 ad...@in... @@ -70,7 +70,7 @@ - sched_yield/1-1.c: Fix. Incorrect thread return status. - Add test case by Sebastien - Decugis(seb...@ex...) + Dugue(seb...@ex...) pthread_mutex_unlock/5-1.c, 5-2.c - pthread_mutexattr_settype/coverage.txt: Fix. - behavior/signal.h/18-1.c,19-1.c,20-1.c,21-1.c: Fix @@ -79,7 +79,7 @@ - Add case pthread_mutex_init/5-1.c, pthread_mutex_init/speculative/5-2.c, pthread_mutex_lock/3-1.c, 4-1.c, 5-1.c - by Sebastien Decugis(seb...@ex...) + by Sebastien Dugue(seb...@ex...) - sem_post/8-1.c: Fix. Will leave Zombie process if fail. 05-10-2004 ad...@in... - Apply Ulrich Drepper's patch: @@ -89,7 +89,7 @@ pthread_attr_setstacksize/2-1.c: define _GNU_SOURCE correctly. 05-09-2004 ad...@in... - Add cases pthread_mutex_init/1-2.c, 3-2.c, 5-3.c - by Sebastien Decugis(seb...@ex...) + by Sebastien Dugue(seb...@ex...) 05-01-2004 1.4.1 Release 04-30-2004 ad...@in... - sigqueue/12-1.c: Use setuid() instead of seteuid() diff --git a/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests b/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests index c9d17d6..2fc16f5 100644 --- a/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests +++ b/testcases/open_posix_testsuite/Documentation/HOWTO_RunTests @@ -1,33 +1,31 @@ - SECTIONS: 1. Overview 2. Framework Functionality 3. Building and Running the Tests - 1. Overview ------------ This document describes how to run the tests in the POSIX Test Suite. Our framework currently has the ability to build and run conformance, -functional, and stress tests. Only conformance and functional tests are -built when a user tries to "make all" as stress tests leave the system -in an indeterminate state and should generally be run manually. +functional, and stress tests. All tests are built with make all, but +certain care should be used when running the stress test suite as the +tests may leave the system in an indeterminate state. 2. Framework Functionality ---------------------------------------------------- * Conformance Tests -The build and execution process varies per conformance tests. +The build and execution process varies for conformance tests. For definitions tests, the build and execution process is the same since -the "test" is that the file compiles. A definitions test will be compiled, -not linked, by the compiler. +the pass/fail criterion is determine by whether or not the test compiles. +A definitions test will be compiled, not linked, by the toolchain. For all other tests, they will have one test for the compile, one for the -link, and one for the execution of the test. Successfull tests return -PTS_PASS, which the compiler interprets as success. All other return -values are failures. [For more info, see HOWTO_ResultCodes.] +link, and one for the execution of the test. Successful tests return +PTS_PASS, which the interprets as success. All other return values are +considered failures [For more info, see HOWTO_ResultCodes]. * Functional/Stress Tests Functional and stress tests have their own Makefile and method for running, @@ -39,60 +37,47 @@ functional area. 3. Building and Running the Tests ---------------------------------- -**See the BUILD file for info on how to set up the build for the specific -area you are testing (threads, mqs, semaphores, etc.) +** See the BUILD file for info on how to set up the build for the specific +area you are testing (threads, mqs, semaphores, etc.), as well as setup the +build specific to your environment. -To build and run the tests, you should be in the main posixtestsuite/ -directory. +To build and run the tests, you should be in the main posix test suite +directory. From there, execute: -# make + # make all -This will build and run all conformance and functional tests [See above -for why stress tests are not built.]. +This will build all of the conformance, functional, and stress tests. -If you'd like to build and run conformance tests for a specific area (threads, -timers, semaphores, message queues, signals), use the script run_tests and -run: -# ./run_tests [SIG|SEM|THR|TMR|MSG] - the argument is the 3 letter POSIX abbreviation for area +* Conformance-specific items * - * Conformance-specific items -To run conformance tests for a specific directory, first export the -POSIX_TARGET variable to the directory desired. -Ex. -# export POSIX_TARGET=conformance/definitions/time_h +To run conformance tests for a specific directory, just cd to the directory +and run make all test. - * Linking in a library -To link in a library or add any other flags at build or link time, -modify file LDFLAGS with the -L... -l... or -D... lines you would like -added. +Example: + # cd conformance/definitions/time_h ; make all test To just build conformance tests, run: -# make build-tests + # make conformance-all To just run conformance tests, run: -# make run-tests + # make conformance-test + +* Functional/Stress-specific items * - * Functional/Stress-specific items To run only functional tests, run: -# make functional-tests + # make functional-test To run only stress tests, run: -# make stress-tests + # make stress-test To make only functional tests, run: -# make functional-make + # make functional-all To make only stress tests, run: -# make stress-make - -To only run functional tests, run: -# make functional-run - -To only run stress tests, run: -# make stress-run + # make stress-all Contributors: rusty.lynch REMOVE-THIS AT intel DOT com julie.n.fleischer REMOVE-THIS AT intel DOT com rolla.n.selbak REMOVE-THIS AT intel DOT com + yanegomi REMOTE-THIS AT gmail DOT com diff --git a/testcases/open_posix_testsuite/QUICK-START b/testcases/open_posix_testsuite/QUICK-START index 6cbfac9..a4326f6 100644 --- a/testcases/open_posix_testsuite/QUICK-START +++ b/testcases/open_posix_testsuite/QUICK-START @@ -12,25 +12,28 @@ Setting up your machine * There is nothing to install, the suite is intended to be run directly. -* See the "BUILD" file for info on how to set up the Makefile and your developer machine, -depending on what specific area you are concentrating on. -(Signals, Semaphores, Threads, Timers or Message Qs). +* See the "BUILD" file for info on how to set up the Makefile and your machine, + depending on what specific area you are concentrating on. +(Signals, Semaphores, Threads, Timers or Message Queues). =================== Running the tests =================== -* Easiest way to run all the tests is to do a "make" in the top-level directory. +* Easiest way to run all the tests is to do a "make all" in the top-level + directory. -* To run tests for a specific directory, first export the POSIX_TARGET variable -to the directory you want, then perform a "make". e.g.: - # export POSIX_TARGET=conformance/interfaces/pthread_create - # make +* To run tests for a specific directory, do the following + - make generate-makefiles # only required for the first shot. + - cd <subdir> ; make all test -* An easy way to run all tests specific to your area of focus, run: + Example: - # ./run_tests [MEM|MSG|SEM|SIG|THR|TMR|TPS] - the argument is the 3 letter POSIX abbreviation for area + - make generate-makefiles + - cd conformance/interfaces/pthread_create ; make all test + +* Running tests for a specific focus is currently unavailable (but will be made + available again soon). * For additional information on how to build and run the tests in this suite, see Documentation/HOWTO_RunTests. hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 23:42:05
|
The branch, master, has been updated via 17b3085ae6f936edcce93e7a61e808dc6ca2fdac (commit) from f2255196e12df19718416b2e229039a6a4e57677 (commit) - Log ----------------------------------------------------------------- commit 17b3085ae6f936edcce93e7a61e808dc6ca2fdac Author: Garrett Cooper <yan...@gm...> Date: Sat Jul 10 16:36:35 2010 -0700 No sense in needlessly specifying the timeout twice. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index e90f5e8..1794aa3 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -14,8 +14,6 @@ CRITICAL_MAKEFILES= $(CRITICAL_CONFORMANCE_MAKEFILE) \ $(CRITICAL_FUNCTIONAL_MAKEFILE) \ $(CRITICAL_SECTION_MAKEFILE) -# The default expiration delay is 240 seconds -TIMEOUT_VAL?= 240 # The default logfile for the tests. LOGFILE?= logfile # Subdirectories to traverse down. hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 19:37:49
|
The branch, next, has been updated via c546eec4c3c21066f478e252417669a14bae3fad (commit) via f2255196e12df19718416b2e229039a6a4e57677 (commit) via 22a524f51794034a4c595db1fd38152f75900495 (commit) via 9c0f1be1629d40dc94377326a50116059550784f (commit) via dcedae8e3cbd907bd45fe9ff509847cd9e63d073 (commit) via 7e3f5ef8f8b1bbabbad3fc6eb5f2200656b3e87d (commit) via b0c59c7929624d30ab32e7ee683b9e8a1fa08146 (commit) via 91e1c951e6f5aa2b268509c57bdbcc2c4d1dcab4 (commit) via 9080a1ac2455fa5eef852385b8a62e8ad1028d25 (commit) from 7114748ce617f6731ce24aa01da43190a95be863 (commit) - Log ----------------------------------------------------------------- commit c546eec4c3c21066f478e252417669a14bae3fad Merge: 7114748ce617f6731ce24aa01da43190a95be863 f2255196e12df19718416b2e229039a6a4e57677 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 08:35:13 2010 -0700 Merge branch 'master' into next ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 5 +- testcases/kernel/fs/fs-bench/boxmuler.c | 3 + testcases/kernel/fs/fs-bench/create-files.c | 16 +++++-- .../kernel/fs/fs-bench/random-access-del-create.c | 15 ++++-- testcases/kernel/fs/fs-bench/random-access.c | 8 ++- testcases/kernel/fs/fs-bench/random-del-create.c | 8 ++- .../kernel/mem/hugetlb/hugeshmget/hugeshmget01.c | 2 +- testcases/open_posix_testsuite/BUILD | 46 +++++++++++++++---- 8 files changed, 74 insertions(+), 29 deletions(-) diff --git a/testcases/Makefile b/testcases/Makefile index 2ebb325..a0abbe8 100644 --- a/testcases/Makefile +++ b/testcases/Makefile @@ -30,13 +30,14 @@ include $(top_srcdir)/include/mk/env_pre.mk # WILL crash the build host (the tests need to be fixed to just build, not run). # 3. mce-test doesn't fit cleanly in the build, yet. # 4. pounder21 is just broken. -FILTER_OUT_DIRS := ballista kdump mce-test pounder21 +FILTER_OUT_DIRS := ballista kdump mce-test open% pounder21 # XXX (garrcoop): Not sure why realtime is still in this list; this was the # original list of disabled items... # XXX (garrcoop): kdump was in this list. +# XXX (garrcoop): open_hpi_testsuite was in this list. ifneq ($(UCLINUX),1) -FILTER_OUT_DIRS += audit-test DOTS open_hpi_testsuite realtime +FILTER_OUT_DIRS += audit-test DOTS realtime endif include $(top_srcdir)/include/mk/generic_trunk_target.mk diff --git a/testcases/kernel/fs/fs-bench/boxmuler.c b/testcases/kernel/fs/fs-bench/boxmuler.c index 89ee941..0609335 100644 --- a/testcases/kernel/fs/fs-bench/boxmuler.c +++ b/testcases/kernel/fs/fs-bench/boxmuler.c @@ -1,5 +1,8 @@ #include <math.h> +#include <stdlib.h> + #define M_2PI (M_PI*2) + int box_muler(int min, int max) { double u1,u2,z; diff --git a/testcases/kernel/fs/fs-bench/create-files.c b/testcases/kernel/fs/fs-bench/create-files.c index 88ea202..ec54bb8 100644 --- a/testcases/kernel/fs/fs-bench/create-files.c +++ b/testcases/kernel/fs/fs-bench/create-files.c @@ -15,11 +15,14 @@ char wbuf[MAXFSIZE]; static int filecount=0; +void makedir(char *dir1); +void changedir(char *dir); +void create_file(char *filename); extern int box_muler(int, int); int startc=0; -main(int ac,char *av[]) +int main(int ac,char *av[]) { int i=0; int j=0; @@ -71,18 +74,21 @@ main(int ac,char *av[]) end: fprintf(stderr,"\nTotal create files: %d\n",filecount); printf("Done\n"); + return 0; } int showchar[]={124,47,45,92,124,47,45,92}; -static int mkdir_counter=0; -makedir(char *dir1) + +void makedir(char *dir1) { if (mkdir(dir1, S_IRWXU) < 0) { perror(dir1); exit(1); } } -changedir(char *dir) { + +void changedir(char *dir) +{ if ( chdir(dir) < 0 ) { perror(dir); exit(1); @@ -90,7 +96,7 @@ changedir(char *dir) { } -create_file(char *filename) +void create_file(char *filename) { int fd; int randomsize; diff --git a/testcases/kernel/fs/fs-bench/random-access-del-create.c b/testcases/kernel/fs/fs-bench/random-access-del-create.c index 3322d92..fdfc71f 100644 --- a/testcases/kernel/fs/fs-bench/random-access-del-create.c +++ b/testcases/kernel/fs/fs-bench/random-access-del-create.c @@ -20,12 +20,14 @@ int openlog[2]={0,0}; extern int box_muler(int, int); extern void create_or_delete(char *); +int delete_file(char *filename); +int create_file(char *filename); + int cfilecount=0; int dfilecount=0; int errorcount=0; -int -main(int ac, char **av) +int main(int ac, char **av) { int r; char fname[1024]; @@ -73,7 +75,6 @@ static int disk_space_pool=0; void create_or_delete(char *fname) { int r; - int fsize; r = (random() & 1); if ( r && disk_space_pool > POOLDISKSPACE) { @@ -92,7 +93,7 @@ void create_or_delete(char *fname) } } -create_file(char *filename) +int create_file(char *filename) { int fd; int randomsize; @@ -112,12 +113,14 @@ create_file(char *filename) cfilecount++; disk_space_pool -= randomsize; close(fd); + + return 0; } #include <sys/stat.h> #include <unistd.h> -delete_file(char *filename) +int delete_file(char *filename) { struct stat buf; int st; @@ -132,4 +135,6 @@ delete_file(char *filename) return(-1); } dfilecount++; + + return 0; } diff --git a/testcases/kernel/fs/fs-bench/random-access.c b/testcases/kernel/fs/fs-bench/random-access.c index e2f8536..f5eb6a2 100644 --- a/testcases/kernel/fs/fs-bench/random-access.c +++ b/testcases/kernel/fs/fs-bench/random-access.c @@ -15,10 +15,12 @@ int openlog[2]={0,0}; #define MAXNUM 0x100000 +void open_read_close(char *fname); + int nullfd; -main(int ac, char **av) + +int main(int ac, char **av) { - int fd; int r; char fname[1024]; time_t t; @@ -62,7 +64,7 @@ main(int ac, char **av) } #define BUFS 8192 -open_read_close(char *fname) +void open_read_close(char *fname) { int fd; char buf[BUFS]; diff --git a/testcases/kernel/fs/fs-bench/random-del-create.c b/testcases/kernel/fs/fs-bench/random-del-create.c index a1fc8b8..70ddf32 100644 --- a/testcases/kernel/fs/fs-bench/random-del-create.c +++ b/testcases/kernel/fs/fs-bench/random-del-create.c @@ -24,7 +24,7 @@ int cfilecount=0; int dfilecount=0; int errorcount=0; -main(int ac, char **av) +int main(int ac, char **av) { int r; char fname[1024]; @@ -91,7 +91,7 @@ void create_or_delete(char *fname) } } -create_file(char *filename) +int create_file(char *filename) { int fd; int randomsize; @@ -111,12 +111,13 @@ create_file(char *filename) cfilecount++; disk_space_pool -= randomsize; close(fd); + return 0; } #include <sys/stat.h> #include <unistd.h> -delete_file(char *filename) +int delete_file(char *filename) { struct stat buf; int st; @@ -131,4 +132,5 @@ delete_file(char *filename) return(-1); } dfilecount++; + return 0; } diff --git a/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c b/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c index 76b95de..bd00c90 100644 --- a/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c +++ b/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c @@ -80,7 +80,7 @@ int main(int ac, char **av) /* The following loop checks looping state if -i option given */ if ( get_no_of_hugepages() <= 0 || hugepages_size() <= 0 ) - tst_brkm(TCONF, cleanup, "Not enough available Hugepages"); + tst_brkm(TCONF, tst_exit, "Not enough available Hugepages"); else huge_pages_shm_to_be_allocated = ( get_no_of_hugepages() * hugepages_size() * 1024) / 2 ; diff --git a/testcases/open_posix_testsuite/BUILD b/testcases/open_posix_testsuite/BUILD index 55df344..655e204 100644 --- a/testcases/open_posix_testsuite/BUILD +++ b/testcases/open_posix_testsuite/BUILD @@ -1,6 +1,6 @@ Build Notes for POSIX Test Suite ================================ -Last update : 2004-04-04 updated for posixtestsuite-1.4.0 +Last update : 2010-07-10 updated for LTP-head (based off of posixtestsuite 1.40) The POSIX Test Suite should be able to be run independently of any given OS, so the OS-specific steps for configuring the POSIX Test Suite to run @@ -9,8 +9,40 @@ are currently manual. IN GENERAL ========== In general, when calling *make: -- If you need pass in any libraries for linking, set the value via LDLIBS. -- If you need pass any other values to the linker, set the value via LDFLAGS. +- If you need to pass in any header locations, preprocessor definitions, etc, + set the value via CFLAGS. +- If you need to pass in any libraries for linking, set the value via LDLIBS. +- If you need to pass any other values to the linker, set the value via LDFLAGS. + +FREEBSD +======= + +================ +Message Queues +================ +POSIX message queues have been available in FreeBSD since 6.x. Please add: + +options P1003_1B_MQUEUE + +to your kernel conf or build, install, and load the mqueue module. + +================ +Realtime Support +================ +Realtime support has been available for a long time (I think 3.x). Please add: + +options _KPOSIX_PRIORITY_SCHEDULING + +to your kernel conf. There isn't a corresponding module for this feature. + +================ +Semaphores +================ +POSIX semaphores have been available in FreeBSD since 5.x. Please add: + +options P1003_1B_SEMAPHORES + +to your kernel conf or build, install, and load the sem module. LINUX ===== @@ -25,12 +57,6 @@ library information. Notes for each test section are here. It is targeted for general linux kernel 2.6 and glibc-2.3.3. -============= -Clocks/Timers -============= -Both Linux kernel 2.6 and Glibc support Clocks/Timers now. -Add '-lrt' to LDLIBS. - ======= Threads ======= @@ -140,4 +166,4 @@ Maintainers: Julie Fleischer Adam Li Contributors: Jerome Marchand Ulrich Drepper - + Garrett Cooper hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 19:36:51
|
The branch, master, has been updated via f2255196e12df19718416b2e229039a6a4e57677 (commit) from 22a524f51794034a4c595db1fd38152f75900495 (commit) - Log ----------------------------------------------------------------- commit f2255196e12df19718416b2e229039a6a4e57677 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 08:34:05 2010 -0700 Add a note about open_hpi_testsuite in the UCLINUX block. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/testcases/Makefile b/testcases/Makefile index c3b6ce1..a0abbe8 100644 --- a/testcases/Makefile +++ b/testcases/Makefile @@ -35,6 +35,7 @@ FILTER_OUT_DIRS := ballista kdump mce-test open% pounder21 # XXX (garrcoop): Not sure why realtime is still in this list; this was the # original list of disabled items... # XXX (garrcoop): kdump was in this list. +# XXX (garrcoop): open_hpi_testsuite was in this list. ifneq ($(UCLINUX),1) FILTER_OUT_DIRS += audit-test DOTS realtime endif hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 19:35:22
|
The branch, master, has been updated via 22a524f51794034a4c595db1fd38152f75900495 (commit) from 9c0f1be1629d40dc94377326a50116059550784f (commit) - Log ----------------------------------------------------------------- commit 22a524f51794034a4c595db1fd38152f75900495 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 08:31:55 2010 -0700 Disable open* by default in the build. I might have been overambitious in my previous commit, so let's first test the scenarios to ensure that there aren't any regressions. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/Makefile b/testcases/Makefile index 2ebb325..c3b6ce1 100644 --- a/testcases/Makefile +++ b/testcases/Makefile @@ -30,13 +30,13 @@ include $(top_srcdir)/include/mk/env_pre.mk # WILL crash the build host (the tests need to be fixed to just build, not run). # 3. mce-test doesn't fit cleanly in the build, yet. # 4. pounder21 is just broken. -FILTER_OUT_DIRS := ballista kdump mce-test pounder21 +FILTER_OUT_DIRS := ballista kdump mce-test open% pounder21 # XXX (garrcoop): Not sure why realtime is still in this list; this was the # original list of disabled items... # XXX (garrcoop): kdump was in this list. ifneq ($(UCLINUX),1) -FILTER_OUT_DIRS += audit-test DOTS open_hpi_testsuite realtime +FILTER_OUT_DIRS += audit-test DOTS realtime endif include $(top_srcdir)/include/mk/generic_trunk_target.mk hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 19:33:19
|
The branch, master, has been updated via 9c0f1be1629d40dc94377326a50116059550784f (commit) from dcedae8e3cbd907bd45fe9ff509847cd9e63d073 (commit) - Log ----------------------------------------------------------------- commit 9c0f1be1629d40dc94377326a50116059550784f Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 08:30:43 2010 -0700 Remove dummy file now that it's served its purpose. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: 0 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 testcases/open_posix_testsuite/dummy diff --git a/testcases/open_posix_testsuite/dummy b/testcases/open_posix_testsuite/dummy deleted file mode 100644 index e69de29..0000000 hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 19:32:35
|
The branch, master, has been updated via dcedae8e3cbd907bd45fe9ff509847cd9e63d073 (commit) via 7e3f5ef8f8b1bbabbad3fc6eb5f2200656b3e87d (commit) from b0c59c7929624d30ab32e7ee683b9e8a1fa08146 (commit) - Log ----------------------------------------------------------------- commit dcedae8e3cbd907bd45fe9ff509847cd9e63d073 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 08:29:28 2010 -0700 Update directions a bit. Add a note about CFLAGS, and FreeBSD directions. Signed-off-by: Garrett Cooper <yan...@gm...> commit 7e3f5ef8f8b1bbabbad3fc6eb5f2200656b3e87d Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 07:58:57 2010 -0700 Dummy commit to note major changes done to the open_posix_testsuite: 1. Rewrite the Makefiles to not be dependent on gmake, but instead POSIX compatible make variants. This includes pmake on FreeBSD, NetBSD, and OpenBSD. 2. Remove bash-isms in runtime scripts. 3. Merge all runtime scripts into generated scripts, which depend on one infrastructure script -- run-test.sh. 4. Better identify build-only tests vs runtime tests. 5. Fix compiles for many tests so that they're actually POSIX compliant as per the opengroup manpages (and thus properly compile on FreeBSD, NetBSD, and OpenBSD, at the very least). 6. Fix -lrt issue (apparently linux doesn't require -lrt like FreeBSD does at least, despite the fact that many libcalls and syscalls defined by opengroup are under the REALTIME section). 7. Fix setpgrp(3) code, as setpgrp isn't actually a POSIX extension (it's an XSI extension). 8. Make it possible for folks to type in make test and have it actually run the test. 9. Make an effort towards enabling cross-compilation (or cross-build as they call it in BSD-land), out-of-build-tree. 10. Block off all detected Glibcisms and Linuxisms, so that they will be eventually pruned from the tree. 11. Fix the compilation state on some tests (where _POSIX_SPORADIC_SERVER wasn't properly specified, and where it was set with == -1), so that the test is properly resolved (with a compilation error, and PTS_UNSUPPORTED, as per the POSIX features page examples). 12. Remove some cruft in locate-test. 13. Move around some files to make more logical sense. Other changes done in the pu -> master merge: 1. Fix a bashism in numa_tests.sh. 2. Enable more testcase components in LTP in the build, other than just the kernel component. We've reached steady state, so it's time to add some flux in adding more features to the build... Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/BUILD | 46 +++++++++++++++---- .../errorLog => open_posix_testsuite/dummy} | 0 2 files changed, 36 insertions(+), 10 deletions(-) copy testcases/{ballista/ballista/compile/errorLog => open_posix_testsuite/dummy} (100%) diff --git a/testcases/open_posix_testsuite/BUILD b/testcases/open_posix_testsuite/BUILD index 55df344..655e204 100644 --- a/testcases/open_posix_testsuite/BUILD +++ b/testcases/open_posix_testsuite/BUILD @@ -1,6 +1,6 @@ Build Notes for POSIX Test Suite ================================ -Last update : 2004-04-04 updated for posixtestsuite-1.4.0 +Last update : 2010-07-10 updated for LTP-head (based off of posixtestsuite 1.40) The POSIX Test Suite should be able to be run independently of any given OS, so the OS-specific steps for configuring the POSIX Test Suite to run @@ -9,8 +9,40 @@ are currently manual. IN GENERAL ========== In general, when calling *make: -- If you need pass in any libraries for linking, set the value via LDLIBS. -- If you need pass any other values to the linker, set the value via LDFLAGS. +- If you need to pass in any header locations, preprocessor definitions, etc, + set the value via CFLAGS. +- If you need to pass in any libraries for linking, set the value via LDLIBS. +- If you need to pass any other values to the linker, set the value via LDFLAGS. + +FREEBSD +======= + +================ +Message Queues +================ +POSIX message queues have been available in FreeBSD since 6.x. Please add: + +options P1003_1B_MQUEUE + +to your kernel conf or build, install, and load the mqueue module. + +================ +Realtime Support +================ +Realtime support has been available for a long time (I think 3.x). Please add: + +options _KPOSIX_PRIORITY_SCHEDULING + +to your kernel conf. There isn't a corresponding module for this feature. + +================ +Semaphores +================ +POSIX semaphores have been available in FreeBSD since 5.x. Please add: + +options P1003_1B_SEMAPHORES + +to your kernel conf or build, install, and load the sem module. LINUX ===== @@ -25,12 +57,6 @@ library information. Notes for each test section are here. It is targeted for general linux kernel 2.6 and glibc-2.3.3. -============= -Clocks/Timers -============= -Both Linux kernel 2.6 and Glibc support Clocks/Timers now. -Add '-lrt' to LDLIBS. - ======= Threads ======= @@ -140,4 +166,4 @@ Maintainers: Julie Fleischer Adam Li Contributors: Jerome Marchand Ulrich Drepper - + Garrett Cooper diff --git a/testcases/ballista/ballista/compile/errorLog b/testcases/open_posix_testsuite/dummy similarity index 100% copy from testcases/ballista/ballista/compile/errorLog copy to testcases/open_posix_testsuite/dummy hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 18:57:56
|
The branch, next, has been updated via 7114748ce617f6731ce24aa01da43190a95be863 (commit) via b5087af1979de36d2bec9385d03ac41086dcb735 (commit) via 848f37617b3aee594408d399253d8e196095ca01 (commit) via e3bc3758d3e4d17a0e04009ef873df53819b9ec6 (commit) via 9e365e8e209904086b18420438b4792851c219b8 (commit) via 65f7070cb3f67eba009e68413187727f508623e1 (commit) via 785ef40630157d66067b1577a238184e0170e383 (commit) via bd2dce17303a69463e926bb5a6a955e7890f65f3 (commit) via a9e2238be689fd8e4d25bc7eefca1cb11535ce7a (commit) via 5305c4a10cf26799c81e6f0362750988457d3002 (commit) via a21dab25b7ef183d049b31b0d3fed1d48c16dc2b (commit) via b4f57c7d26b58f3d80b46340f10a397d21957866 (commit) via 76a720a381f351b33eb203c7c519e6f44bbe7219 (commit) via 13adcb0c4496e75bdcdbc02410b46b9fbc6120a8 (commit) via 5ef445ba30891e32bdd5c032bb36e1b8e7ceaf8b (commit) via 5f103ec789dbe243401d1f3ce688a4fae4f99095 (commit) via b236795c0122ceb96f69a37569dc63b405c4ff96 (commit) via 6a905a25a1bfe020612f7e607a9309a5e7c737d3 (commit) via 6fefad532e57ea50f0853e8f17df7a1eb278ce89 (commit) via d10869fcc17936c97060d46609dee57d577fcab0 (commit) via 9a0582ebe6c9671842ad8589c23066c517bc42c7 (commit) via 81ecf3a86fdfa6ec4010c8150337a29a17a91bb1 (commit) via f6955771fdd1abbb2cd75abc226906022ae05ea4 (commit) via 28e174e9db3a1f4b767e8c734c7208b4de99d599 (commit) via a29a396150d38c443a2b2f377c3dfc72d33eabb5 (commit) via 5511b273ffb05cf36ed7bcc26eafe15cb4339359 (commit) via 1b92c89200342ab0badab39ca0547c1b739de85d (commit) via bec80d891acbc13269143d90085410579e1d836e (commit) via d4a84ce80c001b3a128d754da13754704b1a4af4 (commit) via ef12476f5d8f23a0292d8c16d2a227aa4336256d (commit) via 7abc390cda1cccd78183578964c4d9a3ba629ba2 (commit) via 3b6aeead1a65de3729c147ca41e66683b74ae54c (commit) via d680c877f41da1ccc5731c069b8fae81a0a189f2 (commit) via 515be5888ee07d87c4194afbf6ca69826cf2adfa (commit) via 2aec45df627cad013f17b7ab2fcad00dd069a4e5 (commit) via f8e6d24ced9584afeaee458e7872ff50aab6769b (commit) via 8ddfef16230888ae507540c9137a6b396dacba18 (commit) via 59cfa75ca85b14396bb524d6a586b03aa45d4c09 (commit) via 7da13d4fc396f5c2e0afa4cd37ab2a9236607c12 (commit) via f993a1dcedee2b60bdb1731507b5c063af060490 (commit) via a6a5dba5a420896edf184669d871971e1cf52c56 (commit) via dd845c2f6209f370c89b28d34ff6d204fa32c0c7 (commit) via 84e052d5087dd3bc469f6a02de3b7abd774c4df5 (commit) via d8dd9700830563280c60dcabe5b9c13bc11763b0 (commit) via e7160e77fc728e7defab7574f60713d9e33a0d49 (commit) via 3b808b433b22516d2eecd95aa2ba67dbf057e975 (commit) via 0cc96ccac4c9ea57f7c64934af42c8cd43ad6da4 (commit) via a3acfa7e5751f5c93aff5685fb1c0997bd3d7311 (commit) via 070138c410944469346ff6823fc3df58a5e2da6f (commit) via d212516229b8a41d4302620da4a3511b333ed2e5 (commit) via 096c450506ad0f50352a3c8b43de9c1538295d82 (commit) via 85d7f26c7eb5994d4dabdb05998c90d86d7baa46 (commit) via 0414c8fbabd00c4e1df589aa13d995c91c8736ec (commit) via 0894865a51d30399e62a20349061112deaa4b4f6 (commit) via 446cd01c811977e2866006259423f7c7fff0d863 (commit) via 8d295e3c1f7e48ec1793ea6bc59ccf07d39bd55d (commit) via d8140e2c68a3eb77db15e74f6621af6441e19527 (commit) via 8b376ab38ab090763bf0552580374b864e1afea6 (commit) via 393822aa72d8652550d8c88c17240ed19b86593c (commit) via 1510cbb78e7eb882d885b5253fbfd92b6fd38ac0 (commit) via 01680d51328b33cd26d71a689c0552ccca7e5015 (commit) via 8d78db8ede38c10e677ce5c227f194d378a099dc (commit) via 0b83e63a3164bf3119f85da0131b7a74c0833812 (commit) via 6da95a6582aa88341173994a2546d8695e450e9a (commit) via d98cc91cb29ede62323c94d70887d5c31c03d24b (commit) via ca761d624c016aa10385579b668774b65eea13de (commit) via 10a39e805f31992220034bfdc44af38324d29f1e (commit) via 617f4f5c35549bf644d1ad727b129234bc714d8e (commit) via 885f781a9ae9fa0273374312b0e172a2137d1d47 (commit) via da5651247bdf23c20a971b48614849ac942d7f20 (commit) via d309fa0607bf70af04be750e57e9346c6790fbc3 (commit) via 8f1b81c4da104171651fa9fe59c66c398b2fbfcd (commit) via 094d369f06607e37d76d697844f75272755cf969 (commit) via 0df8df0011e170d2644b4cdfef6216030dcb8c50 (commit) via 65d6a03b5ce17b934d1fd5a72e8c7519d637965b (commit) via e8d8303f301eb8fd6477346373b8ffe21aed4d09 (commit) via b82db5f13e89331813fd93023adcc48efe27c9bf (commit) via 377d976666335e15fed7cac8d7f48b8a762e25fa (commit) via 20d72c7d3cd67461380cbfb484471c3b39262ebe (commit) via a0f8e08d23a5c34b8045c241f8d258fe67e6729b (commit) via d5ff323a3bc912f877ab31a78046c9388e4235f1 (commit) via 1fb9097d3adfa0bed182344464a773bc53c6061c (commit) via f9508213fbc076538bc650bdb354905674b20ceb (commit) via 5059f459789238c1378da036c16f7eb6dcbc5318 (commit) via 468d4b45c092c8a4d9c46cf45a78f6a772620cb1 (commit) via 17dc34f217c5617baae6abc8d4cbef0ec9caadc2 (commit) via 9b6bb8b07b89314c0d2cc373e668a10525f018e0 (commit) via 0ffe3041ce48b93465c85b67ee8f4fd73ac7fbd8 (commit) via bbe8f67cdb710dbbbd48e0ab7339ad3c95b811be (commit) via 1183a9fa5092975c28c8a6d070b82d477c4e509e (commit) via 3e99bc7c7782f57f75903b76a38bf73d93c8f832 (commit) via c14cf2c626d5960badede4b96da87226232b7ba6 (commit) via ef399220509ea9889609cb58749dae97d5dbc00b (commit) via 69a66f173dc5e1cee6ff512947a1dbc4521245ce (commit) via 99602c3e4b4d6de4c85c7ffaff206116c59480ce (commit) via 70c91766d2a044c1bb78584238e5224da33381f9 (commit) via 91f8b2ffe2984e032bb60ce39bb8b0405e19fcb9 (commit) via f7049d007a5595187c8b523ba2831232abbfeddd (commit) via 038138be7d47a1b38cf44baa7d30e8ed0c700d3e (commit) via bb34ec782689243aeba8dca930c3a783cdf89bcf (commit) via 2d87d5da9dfcda98b5c5cd41d45b924910aad1bd (commit) via a9b7de80f7d46e6091864c892cc6b385d435f3ca (commit) via 721ef9d8af62f8327a1075bc9de20c8a4cd88810 (commit) via 8c93e42ea3cf589bb663aa9dc78492f9d44f736b (commit) via 9be14150793e82064c4f9d791be322370573f314 (commit) via 7666e5a7215ea9c1f8934cb568b138553e14a80e (commit) via 04b500a71b8a410adf5b92978c9d93d659912c20 (commit) via 0591a5dcc4c5d8b1cb282e4afd163f70b62350ce (commit) via 66c15baaa8be08c5baae5a0c819df3b6a8c834dd (commit) via 4239a299c0d5cfd8058c3676fee30a6a787acdfe (commit) via 2f429f3d096bf565eee21c28c54cfab28286eea6 (commit) via ab091057879e20f1be19425c10959ba6fcf7ada9 (commit) via c09e1448798a849f17e5201caa05dcf170effa5e (commit) via 2e38f1438de49a9ce4bfcb1d46f417b77797f55c (commit) via ad3d8f9e50f7073a33ab7d2cd13eae5870f5da30 (commit) via 0b97f0be1d838a253a158076f98820c2cee9cbba (commit) via fb968b9e2ed3bc81f27b16e070c45caf03971126 (commit) via 3dd341e0a9108e85b5cdc58d7faa8c91f3dd76cd (commit) via e1d8307f7752a918f0d194dd391cbc39625ce907 (commit) via 02eacfaa66c823d10cb20d6e65d828ce64b5b506 (commit) via 1c5be56415cd753479a72cd89cbbd1fd445ddb1a (commit) via 67841e67385fdae4e0cdecbcf1867d2d3b82e989 (commit) via 0bf0d385d0cdbcb6407a547118112126e28b0175 (commit) via 9cda97cee9dafc96c17806141c795dbf41d9e804 (commit) via 246625cedf2827f4c810bead096cce3be1b6fc8d (commit) via 9efd7b43362cc1647a1f297014ee86a2d5dc2775 (commit) via 4aaa81f17ce66894139a1e27eccba85dae34ea54 (commit) via 37f653f5c41b6a347ab382ee75c15acf3a82978b (commit) via 1c385e70b81f9580841f12eaa3106a5f2ace9534 (commit) via b62095f93c4c4e34edc948cbd4d9f39f92a4d290 (commit) via 38bbac335cc10b0db007e871393c216d4bba7143 (commit) via 1e1a3fd3eec33ea81d8a912c569eb57a41b9faab (commit) via 246c55b6ff11862d61341f13ffa19a59c8ec64d6 (commit) via 6f2d70d4a671cdf121c8301db093b86a0e080ea6 (commit) via 4065c2f47676a1b3590ad569feb07e6993167533 (commit) via 6f5eda9e882257afd6ddded59fa8a293e6c11c0e (commit) via c580fbc0a607da39a438af4d78a85f64171af6bf (commit) via 200d76535a50ffd4d06f54933479a8696267d303 (commit) via b8139e0b5a8f20cbd9bbc97528679dc2fcd430a0 (commit) via a147804a653f2e528ce508a4e251c69e7a57c473 (commit) via e6933b95841581fdb6eb3f06e29b592716a95cb8 (commit) via c54cefe1191a6d959eace2812d27e406e176b122 (commit) via 1b8bcedd85f2c99d2850b4eb23ba8a83e5b4f16a (commit) via 3cc6f028b8eeda2e20f308dc8a81020332d8c524 (commit) via b4fcfce584f11cca39fba11d17fef6637ed41a9e (commit) via 5e6a5f8ad3be208d14826f77111d512c8758bc04 (commit) via 1caa7da8563958edbc538c22caffad1baf34855e (commit) via 8ef4bbfddc7922d8978d53f972c50024e6a10729 (commit) via 796175696e5a0bdef6a0a0de6dd4ffd3208c9d23 (commit) via 866fc6a28d590ad871c50a0afb05c6d1ace6b260 (commit) via e79cac0c77edf6ad9361abfe53302fe88b6338b7 (commit) via 7489873d46f8428f71a413629e427f39ff8c4db8 (commit) via 91325b11bbfeb29a4a9dd28f46dd7de0b5e24177 (commit) via 8d785b4e9eda424552e5bd87883826c615c10f8d (commit) via d49548d6749359c86d4ac2a5a22a3f5fad383ba5 (commit) via cfa4725eebab047fed5abe607404eb21a1a30619 (commit) via b90b372e4a1e06c7a1e08ca0e2f291b543592faf (commit) via 336190574a34bd7327c67635725f09b2457b32d0 (commit) via f73e148e8146a7492aded2908f1a4a1a4a860d5b (commit) via 524c6e9c784f6863ff24784eae72a9f3056e69fc (commit) via 2cc595d69a445915d5dc4bf576d2eb92c673cc6d (commit) via fa985a9be4bdbb8c239ee2bcdb45b73f555f477b (commit) via 8188c9580a36b974ff944efa5e081932825a877d (commit) via 9aac6e50973d30ad30fb1473b44af7f166f848e8 (commit) via 80886b520423c015b63cff03082e274147042243 (commit) via 19e651c5f005cf41dd389c355e0b07026a83b109 (commit) via 2688873039bfd1dfc3be6e4e31825f2cb2138dab (commit) via 43a55491eba9e454cd92d68483940d79c5a06085 (commit) via 4e033cabfa09864892d94cbe14a670778544fb41 (commit) via 99d7ea515b14badb9d5f9c9abdd3103925589440 (commit) via 13df35ed04f6d7b1fa9fb00697899143bffada9f (commit) via c5c1f1f1007dc7c31c5abd134ae11e16989f0a96 (commit) via 6617a67f10a8d068b96fdcf771026fc2aec05eed (commit) via 627ae2deaa27171508b292f62c7436931a731b4d (commit) via 77475d61707503672062bac3ecbc22c80753f2d1 (commit) via b914cb45c1dac557b89618e93719a9f217cfcb1c (commit) via 08e703bbc89cf75fa7a610cf68013bf30df203b4 (commit) via 2d87716cc05b592a1be877828e21364562478c52 (commit) via 5966adba3b50184d0d55a21fbe8def0279aaaf68 (commit) via 3a6a31acc110ee39395b7ddb28cb325682cfbe1e (commit) via 95e8b61433efcefb83699aaf859e92ad2b576373 (commit) via 73c785ff2eb296091d06d3b7184bddf9bec8ec7e (commit) via 82d3ded3632c79c62e231f3f8d7a632ce3da4e40 (commit) via a9ff0b53d9e45e89ea4ec794fc87bbf67620e2c4 (commit) via f2e36d93c856782c4292ad0c21729c35776c1e31 (commit) via 7f20a3add6c7f2166dbab5a712713ae8b5943448 (commit) via 76ec975d298e3890a4ab2f9471940e164de0c643 (commit) via 91f337f9ee05b028af8506c7e83dc1b8c23a3b32 (commit) via 6a19cb6ea8f0b160438288f87a96f57d8e63aad2 (commit) via 4e94765d753c0ea91b4745ffac30df427a4d9202 (commit) via 82f8e8fdfe892266d7346792b71783ac23bfa1a2 (commit) via e1c39ef4f1d61c05f176d063d1afa6f704bc6740 (commit) via c81df6233bca8b3ad601a3a7dd6c02319a32a76b (commit) via 4aafc2802f0c2c05e4891cea1f721f414b41ac67 (commit) via e75668f99ade62e18e34891b2c522c8d97ee982b (commit) via 6e9c735833c19ad5031a4116b2e74ee77ff53424 (commit) via ca758b73afff8200df5e1a24e9abe8a6468c9e06 (commit) via 440fa0f6d857d4a15802b5ecdfdf6057e59975bf (commit) via bd9d440be1da8020c93ac92e497e3a16e66e9fa3 (commit) via 0ce709315c3f2493d8ff97d574641cb91f1b1fa6 (commit) via 3aabc944423945e4857372fe726584f7889cbb8e (commit) via c98956ba8f40b4c9004ff5767db2b2d87ab46e41 (commit) via f0be8b0c4489defeb6eaf6715576524a48b8998a (commit) via 3e113a2101b36d6799ec1d41317bfa16d197c9a2 (commit) via 303a69af83bd2dd9bf358e50a11ef6b5b78e5041 (commit) via b4bd3c001ec8d74bb5c85754b8c94f8f0b2770b8 (commit) from ab17ee7ea998edacc72c4c6a27161def5dc12f5d (commit) - Log ----------------------------------------------------------------- commit 7114748ce617f6731ce24aa01da43190a95be863 Merge: ab17ee7ea998edacc72c4c6a27161def5dc12f5d b5087af1979de36d2bec9385d03ac41086dcb735 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 07:53:53 2010 -0700 Merge branch 'master' into next ----------------------------------------------------------------------- Summary of changes: ChangeLog | 1055 ++++++++++++++++++++ include/test.h | 5 + lib/get_path.c | 100 ++ runltp | 38 +- runtest/fs | 49 +- runtest/fs_perms_simple | 26 + runtest/hugetlb | 16 +- testcases/Makefile | 13 +- testcases/commands/mail/mail_tests.sh | 19 +- testcases/kernel/containers/netns/child_1.sh | 1 + testcases/kernel/containers/netns/childns.sh | 4 +- testcases/kernel/containers/netns/common.c | 3 +- testcases/kernel/containers/netns/par_ftp.sh | 3 + testcases/kernel/containers/netns/parent_1.sh | 2 +- testcases/kernel/containers/netns/parent_2.sh | 2 +- .../ext4-subdir-limit/ext4_subdir_limit_test.sh | 3 +- testcases/kernel/fs/fs_perms/Makefile | 3 - testcases/kernel/fs/fs_perms/fs_perms.c | 235 +++-- .../kernel/fs/fs_perms/fs_perms_simpletest.sh | 35 - testcases/kernel/fs/fs_perms/testx.c | 4 - testcases/kernel/fs/proc/proc01.c | 1 + testcases/kernel/io/direct_io/diotest2.c | 1 + testcases/kernel/io/direct_io/diotest3.c | 1 + testcases/kernel/io/direct_io/diotest5.c | 1 + testcases/kernel/io/direct_io/diotest6.c | 1 + .../kernel/mem/hugetlb/hugeshmget/hugeshmget01.c | 4 +- testcases/kernel/mem/mmapstress/mmapstress01.c | 7 +- testcases/kernel/mem/mmapstress/mmapstress02.c | 4 + testcases/kernel/mem/mmapstress/mmapstress05.c | 9 + testcases/kernel/mem/mmapstress/mmapstress10.c | 122 ++- testcases/kernel/numa/test.sh | 2 +- testcases/kernel/security/filecaps/filecapstest.sh | 10 +- testcases/kernel/security/filecaps/print_caps.c | 5 +- .../kernel/security/filecaps/verify_caps_exec.c | 51 +- testcases/kernel/security/tomoyo/README | 23 +- testcases/kernel/security/tomoyo/include.h | 326 +++++-- testcases/kernel/security/tomoyo/newns.c | 2 +- testcases/kernel/security/tomoyo/testall.sh | 19 +- .../kernel/security/tomoyo/tomoyo_accept_test.c | 145 +++ .../kernel/security/tomoyo/tomoyo_file_test.c | 970 ++---------------- .../security/tomoyo/tomoyo_filesystem_test.c | 632 ++++++++++++ .../kernel/security/tomoyo/tomoyo_new_file_test.c | 631 ++++++++++++ testcases/kernel/security/tomoyo/tomoyo_new_test.c | 682 +++++++++++++ .../kernel/security/tomoyo/tomoyo_policy_io_test.c | 195 ++++ .../security/tomoyo/tomoyo_policy_memory_test.c | 358 +++++++ .../kernel/security/tomoyo/tomoyo_rewrite_test.c | 169 ++++ testcases/kernel/syscalls/eventfd/eventfd01.c | 2 +- testcases/kernel/syscalls/ftruncate/ftruncate04.c | 12 +- testcases/kernel/syscalls/io_cancel/Makefile | 2 +- testcases/kernel/syscalls/io_destroy/Makefile | 2 +- testcases/kernel/syscalls/io_getevents/Makefile | 2 +- testcases/kernel/syscalls/io_setup/Makefile | 2 +- testcases/kernel/syscalls/io_submit/Makefile | 2 +- testcases/kernel/syscalls/ipc/semctl/semctl01.c | 4 + testcases/kernel/syscalls/ipc/shmctl/shmctl01.c | 5 +- .../syscalls/mq_timedreceive/mq_timedreceive01.c | 2 +- testcases/kernel/syscalls/open/open07.c | 98 ++- testcases/kernel/syscalls/open/open10.c | 5 + testcases/kernel/syscalls/ppoll/ppoll01.c | 4 +- testcases/kernel/syscalls/splice/splice02.c | 1 + .../syscalls/timer_getoverrun/timer_getoverrun01.c | 7 +- .../syscalls/timer_gettime/timer_gettime01.c | 7 +- .../kernel/syscalls/utimensat/utimensat_tests.sh | 51 +- testcases/kernel/syscalls/utimes/utimes01.c | 2 + testcases/kernel/timers/include/common_timers.h | 10 +- .../kernel/timers/timer_create/timer_create02.c | 4 +- .../kernel/timers/timer_create/timer_create03.c | 2 +- .../kernel/timers/timer_create/timer_create04.c | 6 +- .../kernel/timers/timer_delete/timer_delete02.c | 2 +- .../kernel/timers/timer_delete/timer_delete03.c | 2 +- .../kernel/timers/timer_settime/timer_settime02.c | 2 +- .../kernel/timers/timer_settime/timer_settime03.c | 4 +- testcases/misc/math/float/main.c | 4 +- testcases/network/tcp_cmds/echo/echoes.c | 1 + testcases/open_posix_testsuite/BUILD | 40 +- testcases/open_posix_testsuite/CFLAGS | 1 + testcases/open_posix_testsuite/COPYING | 35 + testcases/open_posix_testsuite/LDFLAGS | 16 - .../errorLog => open_posix_testsuite/LDLIBS} | 0 testcases/open_posix_testsuite/Makefile | 300 ++---- testcases/open_posix_testsuite/QUICK-START | 4 - testcases/open_posix_testsuite/bin/Makefile | 22 + testcases/open_posix_testsuite/bin/run-tests.sh | 116 +++ .../open_posix_testsuite/conformance/Makefile | 10 + .../conformance/behavior/Makefile | 13 + .../conformance/behavior/timers/LDLIBS | 1 + .../conformance/definitions/Makefile | 13 + .../definitions/aio_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/aio_h/{1-2.c => 1-2-buildonly.c} | 0 .../definitions/aio_h/{3-1.c => 3-1-buildonly.c} | 0 .../conformance/definitions/aio_h/LDLIBS | 1 + .../definitions/errno_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/errno_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/errno_h/3-1-buildonly.c | 98 ++ .../conformance/definitions/errno_h/3-1.c | 86 -- .../conformance/definitions/errno_h/3-2.c | 12 +- .../conformance/definitions/errno_h/4-1.c | 12 +- .../conformance/definitions/errno_h/assertions.xml | 4 + .../pthread_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/pthread_h/{10.c => 10-buildonly.c} | 0 .../pthread_h/{11-1.c => 11-1-buildonly.c} | 0 .../pthread_h/{12-1.c => 12-1-buildonly.c} | 0 .../pthread_h/{13-1.c => 13-1-buildonly.c} | 0 .../pthread_h/{14-1.c => 14-1-buildonly.c} | 0 .../pthread_h/{15-1.c => 15-1-buildonly.c} | 0 .../pthread_h/{16-1.c => 16-1-buildonly.c} | 0 .../pthread_h/{17-1.c => 17-1-buildonly.c} | 0 .../pthread_h/{18-1.c => 18-1-buildonly.c} | 0 .../pthread_h/{19-1.c => 19-1-buildonly.c} | 0 .../pthread_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/pthread_h/2-2-buildonly.c | 49 + .../conformance/definitions/pthread_h/2-2.c | 72 -- .../pthread_h/{20-1.c => 20-1-buildonly.c} | 0 .../pthread_h/{3-1.c => 3-1-buildonly.c} | 0 .../pthread_h/{3-10.c => 3-10-buildonly.c} | 0 .../pthread_h/{3-11.c => 3-11-buildonly.c} | 0 .../pthread_h/{3-12.c => 3-12-buildonly.c} | 0 .../pthread_h/{3-13.c => 3-13-buildonly.c} | 0 .../pthread_h/{3-2.c => 3-2-buildonly.c} | 0 .../pthread_h/{3-3.c => 3-3-buildonly.c} | 0 .../pthread_h/{3-4.c => 3-4-buildonly.c} | 0 .../pthread_h/{3-5.c => 3-5-buildonly.c} | 0 .../pthread_h/{3-6.c => 3-6-buildonly.c} | 0 .../pthread_h/{3-7.c => 3-7-buildonly.c} | 0 .../pthread_h/{3-8.c => 3-8-buildonly.c} | 0 .../pthread_h/{3-9.c => 3-9-buildonly.c} | 0 .../pthread_h/{4-1.c => 4-1-buildonly.c} | 0 .../pthread_h/{5-1.c => 5-1-buildonly.c} | 0 .../pthread_h/{6-1.c => 6-1-buildonly.c} | 0 .../pthread_h/{7-1.c => 7-1-buildonly.c} | 0 .../pthread_h/{8-1.c => 8-1-buildonly.c} | 0 .../pthread_h/{9-1.c => 9-1-buildonly.c} | 0 .../definitions/sched_h/{1-1.c => 1-1-buildonly.c} | 0 .../conformance/definitions/sched_h/10-1.c | 2 +- .../sched_h/{11-1.c => 11-1-buildonly.c} | 0 .../sched_h/{12-1.c => 12-1-buildonly.c} | 0 .../sched_h/{13-1.c => 13-1-buildonly.c} | 0 .../sched_h/{14-1.c => 14-1-buildonly.c} | 0 .../sched_h/{15-1.c => 15-1-buildonly.c} | 0 .../sched_h/{16-1.c => 16-1-buildonly.c} | 0 .../sched_h/{17-1.c => 17-1-buildonly.c} | 0 .../sched_h/{18-1.c => 18-1-buildonly.c} | 0 .../sched_h/{19-1.c => 19-1-buildonly.c} | 0 .../definitions/sched_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/sched_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/sched_h/{4-1.c => 4-1-buildonly.c} | 0 .../definitions/sched_h/{8-1.c => 8-1-buildonly.c} | 0 .../definitions/sched_h/{8-2.c => 8-2-buildonly.c} | 0 .../definitions/sched_h/{8-3.c => 8-3-buildonly.c} | 0 .../definitions/sched_h/{8-4.c => 8-4-buildonly.c} | 0 .../signal_h/{1-1.c => 1-1-buildonly.c} | 0 .../signal_h/{14-1.c => 14-1-buildonly.c} | 0 .../signal_h/{15-1.c => 15-1-buildonly.c} | 0 .../signal_h/{16-1.c => 16-1-buildonly.c} | 0 .../signal_h/{17-1.c => 17-1-buildonly.c} | 0 .../signal_h/{18-1.c => 18-1-buildonly.c} | 0 .../conformance/definitions/signal_h/19-1.c | 3 +- .../signal_h/{2-1.c => 2-1-buildonly.c} | 0 .../signal_h/{2-2.c => 2-2-buildonly.c} | 0 .../signal_h/{2-3.c => 2-3-buildonly.c} | 0 .../signal_h/{2-4.c => 2-4-buildonly.c} | 0 .../signal_h/{20-1.c => 20-1-buildonly.c} | 0 .../signal_h/{21-1.c => 21-1-buildonly.c} | 0 .../signal_h/{22-1.c => 22-1-buildonly.c} | 0 .../signal_h/{22-10.c => 22-10-buildonly.c} | 0 .../signal_h/{22-11.c => 22-11-buildonly.c} | 0 .../signal_h/{22-12.c => 22-12-buildonly.c} | 0 .../signal_h/{22-13.c => 22-13-buildonly.c} | 0 .../signal_h/{22-14.c => 22-14-buildonly.c} | 0 .../signal_h/{22-15.c => 22-15-buildonly.c} | 0 .../signal_h/{22-16.c => 22-16-buildonly.c} | 0 .../signal_h/{22-17.c => 22-17-buildonly.c} | 0 .../signal_h/{22-18.c => 22-18-buildonly.c} | 0 .../signal_h/{22-19.c => 22-19-buildonly.c} | 0 .../signal_h/{22-2.c => 22-2-buildonly.c} | 0 .../signal_h/{22-20.c => 22-20-buildonly.c} | 0 .../signal_h/{22-21.c => 22-21-buildonly.c} | 0 .../signal_h/{22-22.c => 22-22-buildonly.c} | 0 .../signal_h/{22-23.c => 22-23-buildonly.c} | 0 .../signal_h/{22-24.c => 22-24-buildonly.c} | 0 .../signal_h/{22-25.c => 22-25-buildonly.c} | 0 .../signal_h/{22-26.c => 22-26-buildonly.c} | 0 .../signal_h/{22-27.c => 22-27-buildonly.c} | 0 .../signal_h/{22-28.c => 22-28-buildonly.c} | 0 .../signal_h/{22-29.c => 22-29-buildonly.c} | 0 .../signal_h/{22-3.c => 22-3-buildonly.c} | 0 .../signal_h/{22-30.c => 22-30-buildonly.c} | 0 .../signal_h/{22-31.c => 22-31-buildonly.c} | 0 .../signal_h/{22-32.c => 22-32-buildonly.c} | 0 .../signal_h/{22-33.c => 22-33-buildonly.c} | 0 .../signal_h/{22-34.c => 22-34-buildonly.c} | 0 .../signal_h/{22-35.c => 22-35-buildonly.c} | 0 .../signal_h/{22-36.c => 22-36-buildonly.c} | 0 .../signal_h/{22-37.c => 22-37-buildonly.c} | 0 .../signal_h/{22-38.c => 22-38-buildonly.c} | 0 .../signal_h/{22-39.c => 22-39-buildonly.c} | 0 .../signal_h/{22-4.c => 22-4-buildonly.c} | 0 .../signal_h/{22-40.c => 22-40-buildonly.c} | 0 .../signal_h/{22-5.c => 22-5-buildonly.c} | 0 .../signal_h/{22-6.c => 22-6-buildonly.c} | 0 .../signal_h/{22-7.c => 22-7-buildonly.c} | 0 .../signal_h/{22-8.c => 22-8-buildonly.c} | 0 .../signal_h/{22-9.c => 22-9-buildonly.c} | 0 .../conformance/definitions/signal_h/23-1.c | 2 +- .../signal_h/{24-1.c => 24-1-buildonly.c} | 0 .../signal_h/{25-1.c => 25-1-buildonly.c} | 0 .../conformance/definitions/signal_h/26-1.c | 3 +- .../signal_h/{27-1.c => 27-1-buildonly.c} | 0 .../signal_h/{28-1.c => 28-1-buildonly.c} | 0 .../signal_h/{29-1.c => 29-1-buildonly.c} | 0 .../signal_h/{3-1.c => 3-1-buildonly.c} | 0 .../signal_h/{30-1.c => 30-1-buildonly.c} | 0 .../signal_h/{31-1.c => 31-1-buildonly.c} | 0 .../signal_h/{32-1.c => 32-1-buildonly.c} | 0 .../signal_h/{33-1.c => 33-1-buildonly.c} | 0 .../signal_h/{34-1.c => 34-1-buildonly.c} | 0 .../signal_h/{35-1.c => 35-1-buildonly.c} | 0 .../signal_h/{36-1.c => 36-1-buildonly.c} | 0 .../signal_h/{37-1.c => 37-1-buildonly.c} | 0 .../signal_h/{38-1.c => 38-1-buildonly.c} | 0 .../signal_h/{39-1.c => 39-1-buildonly.c} | 0 .../signal_h/{4-1.c => 4-1-buildonly.c} | 0 .../signal_h/{40-1.c => 40-1-buildonly.c} | 0 .../signal_h/{41-1.c => 41-1-buildonly.c} | 0 .../signal_h/{42-1.c => 42-1-buildonly.c} | 0 .../signal_h/{43-1.c => 43-1-buildonly.c} | 0 .../signal_h/{44-1.c => 44-1-buildonly.c} | 0 .../signal_h/{45-1.c => 45-1-buildonly.c} | 0 .../signal_h/{46-1.c => 46-1-buildonly.c} | 0 .../signal_h/{47-1.c => 47-1-buildonly.c} | 0 .../signal_h/{48-1.c => 48-1-buildonly.c} | 0 .../signal_h/{49-1.c => 49-1-buildonly.c} | 0 .../signal_h/{5-1.c => 5-1-buildonly.c} | 0 .../signal_h/{50-1.c => 50-1-buildonly.c} | 0 .../sys/mman_h/{1-1.c => 1-1-buildonly.c} | 0 .../sys/mman_h/{10-1.c => 10-1-buildonly.c} | 0 .../sys/mman_h/{11-1.c => 11-1-buildonly.c} | 0 .../sys/mman_h/{12-1.c => 12-1-buildonly.c} | 0 .../sys/mman_h/{13-1.c => 13-1-buildonly.c} | 0 .../sys/mman_h/{14-1.c => 14-1-buildonly.c} | 0 .../sys/mman_h/{15-1.c => 15-1-buildonly.c} | 0 .../sys/mman_h/{16-1.c => 16-1-buildonly.c} | 0 .../sys/mman_h/{17-1.c => 17-1-buildonly.c} | 0 .../sys/mman_h/{18-1.c => 18-1-buildonly.c} | 0 .../sys/mman_h/{19-1.c => 19-1-buildonly.c} | 0 .../sys/mman_h/{2-1.c => 2-1-buildonly.c} | 0 .../sys/mman_h/{2-2.c => 2-2-buildonly.c} | 0 .../sys/mman_h/{2-3.c => 2-3-buildonly.c} | 0 .../sys/mman_h/{2-4.c => 2-4-buildonly.c} | 0 .../sys/mman_h/{20-1.c => 20-1-buildonly.c} | 0 .../sys/mman_h/{21-1.c => 21-1-buildonly.c} | 0 .../sys/mman_h/{22-1.c => 22-1-buildonly.c} | 0 .../sys/mman_h/{23-1.c => 23-1-buildonly.c} | 0 .../sys/mman_h/{24-1.c => 24-1-buildonly.c} | 0 .../sys/mman_h/{3-1.c => 3-1-buildonly.c} | 0 .../sys/mman_h/{3-2.c => 3-2-buildonly.c} | 0 .../sys/mman_h/{3-3.c => 3-3-buildonly.c} | 0 .../sys/mman_h/{4-1.c => 4-1-buildonly.c} | 0 .../sys/mman_h/{4-2.c => 4-2-buildonly.c} | 0 .../sys/mman_h/{4-3.c => 4-3-buildonly.c} | 0 .../sys/mman_h/{5-1.c => 5-1-buildonly.c} | 0 .../sys/mman_h/{5-2.c => 5-2-buildonly.c} | 0 .../sys/mman_h/{6-1.c => 6-1-buildonly.c} | 0 .../sys/mman_h/{7-1.c => 7-1-buildonly.c} | 0 .../sys/mman_h/{7-2.c => 7-2-buildonly.c} | 0 .../sys/mman_h/{7-3.c => 7-3-buildonly.c} | 0 .../sys/mman_h/{7-4.c => 7-4-buildonly.c} | 0 .../sys/mman_h/{7-5.c => 7-5-buildonly.c} | 0 .../sys/mman_h/{8-1.c => 8-1-buildonly.c} | 0 .../sys/mman_h/{8-2.c => 8-2-buildonly.c} | 0 .../sys/mman_h/{8-3.c => 8-3-buildonly.c} | 0 .../sys/mman_h/{9-1.c => 9-1-buildonly.c} | 0 .../sys/mman_h/{9-2.c => 9-2-buildonly.c} | 0 .../sys/mman_h/{9-3.c => 9-3-buildonly.c} | 0 .../sys/shm_h/{1-1.c => 1-1-buildonly.c} | 0 .../sys/shm_h/{10-1.c => 10-1-buildonly.c} | 0 .../sys/shm_h/{11-1.c => 11-1-buildonly.c} | 0 .../sys/shm_h/{12-1.c => 12-1-buildonly.c} | 0 .../sys/shm_h/{12-2.c => 12-2-buildonly.c} | 0 .../sys/shm_h/{12-3.c => 12-3-buildonly.c} | 0 .../sys/shm_h/{2-1.c => 2-1-buildonly.c} | 0 .../sys/shm_h/{2-2.c => 2-2-buildonly.c} | 0 .../sys/shm_h/{3-1.c => 3-1-buildonly.c} | 0 .../sys/shm_h/{4-1.c => 4-1-buildonly.c} | 0 .../sys/shm_h/{5-1.c => 5-1-buildonly.c} | 0 .../sys/shm_h/{6-1.c => 6-1-buildonly.c} | 0 .../sys/shm_h/{7-1.c => 7-1-buildonly.c} | 0 .../sys/shm_h/{7-2.c => 7-2-buildonly.c} | 0 .../sys/shm_h/{7-3.c => 7-3-buildonly.c} | 0 .../sys/shm_h/{7-4.c => 7-4-buildonly.c} | 0 .../sys/shm_h/{8-1.c => 8-1-buildonly.c} | 0 .../sys/shm_h/{9-1.c => 9-1-buildonly.c} | 0 .../definitions/time_h/{1-1.c => 1-1-buildonly.c} | 0 .../time_h/{10-1.c => 10-1-buildonly.c} | 0 .../time_h/{11-1.c => 11-1-buildonly.c} | 0 .../time_h/{12-1.c => 12-1-buildonly.c} | 0 .../time_h/{13-1.c => 13-1-buildonly.c} | 0 .../time_h/{14-1.c => 14-1-buildonly.c} | 0 .../time_h/{15-1.c => 15-1-buildonly.c} | 0 .../time_h/{16-1.c => 16-1-buildonly.c} | 0 .../time_h/{17-1.c => 17-1-buildonly.c} | 0 .../time_h/{18-1.c => 18-1-buildonly.c} | 0 .../time_h/{19-1.c => 19-1-buildonly.c} | 0 .../definitions/time_h/{2-1.c => 2-1-buildonly.c} | 0 .../time_h/{20-1.c => 20-1-buildonly.c} | 0 .../time_h/{21-1.c => 21-1-buildonly.c} | 0 .../time_h/{22-1.c => 22-1-buildonly.c} | 0 .../time_h/{23-1.c => 23-1-buildonly.c} | 0 .../time_h/{24-1.c => 24-1-buildonly.c} | 0 .../time_h/{25-1.c => 25-1-buildonly.c} | 0 .../time_h/{26-1.c => 26-1-buildonly.c} | 0 .../time_h/{27-1.c => 27-1-buildonly.c} | 0 .../time_h/{28-1.c => 28-1-buildonly.c} | 0 .../time_h/{29-1.c => 29-1-buildonly.c} | 0 .../definitions/time_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/time_h/{3-2.c => 3-2-buildonly.c} | 0 .../definitions/time_h/{3-3.c => 3-3-buildonly.c} | 0 .../definitions/time_h/{3-4.c => 3-4-buildonly.c} | 0 .../time_h/{30-1.c => 30-1-buildonly.c} | 0 .../time_h/{31-1.c => 31-1-buildonly.c} | 0 .../time_h/{32-1.c => 32-1-buildonly.c} | 0 .../time_h/{33-1.c => 33-1-buildonly.c} | 0 .../time_h/{34-1.c => 34-1-buildonly.c} | 0 .../time_h/{35-1.c => 35-1-buildonly.c} | 0 .../time_h/{35-2.c => 35-2-buildonly.c} | 0 .../time_h/{35-3.c => 35-3-buildonly.c} | 0 .../definitions/time_h/{4-1.c => 4-1-buildonly.c} | 0 .../definitions/time_h/{5-1.c => 5-1-buildonly.c} | 0 .../definitions/time_h/{6-1.c => 6-1-buildonly.c} | 0 .../definitions/time_h/{6-2.c => 6-2-buildonly.c} | 0 .../definitions/time_h/{6-3.c => 6-3-buildonly.c} | 0 .../definitions/time_h/{7-1.c => 7-1-buildonly.c} | 0 .../definitions/time_h/{7-2.c => 7-2-buildonly.c} | 0 .../definitions/time_h/{7-3.c => 7-3-buildonly.c} | 0 .../definitions/time_h/{7-4.c => 7-4-buildonly.c} | 0 .../definitions/time_h/{7-5.c => 7-5-buildonly.c} | 0 .../definitions/time_h/{8-1.c => 8-1-buildonly.c} | 0 .../definitions/time_h/{9-1.c => 9-1-buildonly.c} | 0 .../unistd_h/{1-1.c => 1-1-buildonly.c} | 0 .../unistd_h/{2-1.c => 2-1-buildonly.c} | 0 .../conformance/interfaces/Makefile | 13 + .../conformance/interfaces/aio_cancel/LDLIBS | 1 + .../conformance/interfaces/aio_fsync/2-1.c | 15 +- .../conformance/interfaces/aio_read/1-1.c | 10 +- .../conformance/interfaces/aio_read/15-1.c | 5 +- .../conformance/interfaces/aio_read/9-1.c | 11 +- .../conformance/interfaces/aio_return/2-1.c | 11 +- .../conformance/interfaces/aio_return/4-1.c | 11 +- .../conformance/interfaces/aio_suspend/1-1.c | 11 +- .../conformance/interfaces/aio_suspend/4-1.c | 11 +- .../conformance/interfaces/aio_suspend/6-1.c | 11 +- .../conformance/interfaces/aio_suspend/7-1.c | 11 +- .../conformance/interfaces/aio_suspend/8-1.c | 11 +- .../conformance/interfaces/aio_suspend/9-1.c | 11 +- .../conformance/interfaces/aio_write/7-1.c | 11 +- .../interfaces/clock_getcpuclockid/LDLIBS | 1 + .../conformance/interfaces/clock_getres/LDLIBS | 1 + .../conformance/interfaces/clock_gettime/LDLIBS | 1 + .../conformance/interfaces/clock_nanosleep/LDLIBS | 1 + .../conformance/interfaces/clock_settime/LDLIBS | 1 + .../conformance/interfaces/fork/19-1.c | 19 +- .../conformance/interfaces/fork/22-1.c | 4 - .../conformance/interfaces/fork/LDLIBS | 1 + .../conformance/interfaces/getpid/1-1.c | 10 - .../conformance/interfaces/getpid/LDLIBS | 1 + .../conformance/interfaces/killpg/1-2.c | 10 + .../conformance/interfaces/lio_listio/1-1.c | 12 +- .../conformance/interfaces/lio_listio/10-1.c | 12 +- .../conformance/interfaces/lio_listio/11-1.c | 12 +- .../conformance/interfaces/lio_listio/12-1.c | 10 +- .../conformance/interfaces/lio_listio/13-1.c | 11 +- .../conformance/interfaces/lio_listio/14-1.c | 12 +- .../conformance/interfaces/lio_listio/15-1.c | 12 +- .../conformance/interfaces/lio_listio/16-1.c | 10 +- .../conformance/interfaces/lio_listio/17-1.c | 8 +- .../conformance/interfaces/lio_listio/18-1.c | 11 +- .../conformance/interfaces/lio_listio/19-1.c | 10 +- .../conformance/interfaces/lio_listio/2-1.c | 12 +- .../conformance/interfaces/lio_listio/3-1.c | 12 +- .../conformance/interfaces/lio_listio/4-1.c | 12 +- .../conformance/interfaces/lio_listio/7-1.c | 14 +- .../conformance/interfaces/lio_listio/9-1.c | 13 +- .../conformance/interfaces/mlockall/LDLIBS | 1 + .../conformance/interfaces/mmap/11-2.c | 11 +- .../conformance/interfaces/mmap/11-3.c | 12 +- .../conformance/interfaces/mmap/6-1.c | 13 +- .../conformance/interfaces/mmap/6-2.c | 13 +- .../conformance/interfaces/mmap/6-3.c | 13 +- .../conformance/interfaces/mmap/6-5.c | 2 +- .../conformance/interfaces/mmap/6-6.c | 2 +- .../conformance/interfaces/mmap/LDLIBS | 1 + .../conformance/interfaces/mq_close/LDLIBS | 1 + .../conformance/interfaces/mq_getattr/LDLIBS | 1 + .../conformance/interfaces/mq_notify/2-1.c | 7 +- .../conformance/interfaces/mq_notify/3-1.c | 7 +- .../conformance/interfaces/mq_notify/5-1.c | 7 +- .../conformance/interfaces/mq_notify/9-1.c | 9 +- .../conformance/interfaces/mq_notify/LDLIBS | 1 + .../conformance/interfaces/mq_open/16-1.c | 11 +- .../conformance/interfaces/mq_open/2-1.c | 11 +- .../conformance/interfaces/mq_open/7-2.c | 11 +- .../conformance/interfaces/mq_open/8-2.c | 11 +- .../conformance/interfaces/mq_open/9-2.c | 11 +- .../conformance/interfaces/mq_open/LDLIBS | 1 + .../conformance/interfaces/mq_receive/11-1.c | 12 +- .../conformance/interfaces/mq_receive/13-1.c | 15 +- .../conformance/interfaces/mq_receive/LDLIBS | 1 + .../conformance/interfaces/mq_send/LDLIBS | 1 + .../conformance/interfaces/mq_setattr/LDLIBS | 1 + .../conformance/interfaces/mq_timedreceive/18-1.c | 11 +- .../conformance/interfaces/mq_timedreceive/18-2.c | 13 +- .../conformance/interfaces/mq_timedreceive/5-2.c | 11 +- .../conformance/interfaces/mq_timedreceive/5-3.c | 13 +- .../conformance/interfaces/mq_timedreceive/8-1.c | 11 +- .../conformance/interfaces/mq_timedreceive/LDLIBS | 1 + .../conformance/interfaces/mq_timedsend/LDLIBS | 1 + .../conformance/interfaces/mq_unlink/LDLIBS | 1 + .../conformance/interfaces/munmap/1-1.c | 11 +- .../conformance/interfaces/munmap/1-2.c | 11 +- .../conformance/interfaces/nanosleep/LDLIBS | 1 + .../conformance/interfaces/pthread_atfork/LDLIBS | 1 + .../interfaces/pthread_attr_destroy/LDLIBS | 1 + .../interfaces/pthread_attr_getdetachstate/LDLIBS | 1 + .../interfaces/pthread_attr_getinheritsched/LDLIBS | 1 + .../interfaces/pthread_attr_getschedparam/LDLIBS | 1 + .../interfaces/pthread_attr_getschedpolicy/LDLIBS | 1 + .../interfaces/pthread_attr_getscope/LDLIBS | 1 + .../interfaces/pthread_attr_getstack/LDLIBS | 1 + .../interfaces/pthread_attr_getstacksize/LDLIBS | 1 + .../interfaces/pthread_attr_init/LDLIBS | 1 + .../interfaces/pthread_attr_setdetachstate/LDLIBS | 1 + .../interfaces/pthread_attr_setinheritsched/LDLIBS | 1 + .../interfaces/pthread_attr_setschedparam/LDLIBS | 1 + .../interfaces/pthread_attr_setschedpolicy/LDLIBS | 1 + .../interfaces/pthread_attr_setscope/LDLIBS | 1 + .../interfaces/pthread_attr_setstack/LDLIBS | 1 + .../interfaces/pthread_attr_setstacksize/LDLIBS | 1 + .../interfaces/pthread_barrier_destroy/LDLIBS | 1 + .../interfaces/pthread_barrier_init/LDLIBS | 1 + .../interfaces/pthread_barrier_wait/LDLIBS | 1 + .../interfaces/pthread_barrierattr_destroy/LDLIBS | 1 + .../pthread_barrierattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_barrierattr_init/LDLIBS | 1 + .../pthread_barrierattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_cancel/LDLIBS | 1 + .../interfaces/pthread_cleanup_pop/LDLIBS | 1 + .../interfaces/pthread_cleanup_push/LDLIBS | 1 + .../interfaces/pthread_cond_broadcast/LDLIBS | 1 + .../interfaces/pthread_cond_broadcast/testfrmw.c | 2 +- .../interfaces/pthread_cond_destroy/LDLIBS | 1 + .../interfaces/pthread_cond_destroy/testfrmw.c | 2 +- .../interfaces/pthread_cond_init/LDLIBS | 1 + .../interfaces/pthread_cond_signal/LDLIBS | 1 + .../interfaces/pthread_cond_timedwait/LDLIBS | 1 + .../interfaces/pthread_cond_wait/LDLIBS | 1 + .../interfaces/pthread_condattr_destroy/LDLIBS | 1 + .../interfaces/pthread_condattr_getclock/LDLIBS | 1 + .../interfaces/pthread_condattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_condattr_init/LDLIBS | 1 + .../interfaces/pthread_condattr_setclock/LDLIBS | 1 + .../interfaces/pthread_condattr_setpshared/LDLIBS | 1 + .../pthread_create/{15-1.c => 15-1-buildonly.c} | 0 .../conformance/interfaces/pthread_create/LDLIBS | 1 + .../interfaces/pthread_create/testfrmw.c | 6 +- .../conformance/interfaces/pthread_detach/LDLIBS | 1 + .../conformance/interfaces/pthread_equal/LDLIBS | 1 + .../conformance/interfaces/pthread_exit/LDLIBS | 1 + .../interfaces/pthread_getcpuclockid/LDLIBS | 1 + .../interfaces/pthread_getschedparam/1-3.c | 3 - .../interfaces/pthread_getschedparam/LDLIBS | 1 + .../interfaces/pthread_getspecific/LDLIBS | 1 + .../conformance/interfaces/pthread_join/LDLIBS | 1 + .../conformance/interfaces/pthread_join/testfrmw.c | 2 +- .../interfaces/pthread_key_create/LDLIBS | 1 + .../pthread_key_create/speculative/5-1.c | 9 +- .../interfaces/pthread_key_delete/LDLIBS | 1 + .../conformance/interfaces/pthread_kill/LDLIBS | 1 + .../interfaces/pthread_mutex_destroy/LDLIBS | 1 + .../interfaces/pthread_mutex_getprioceiling/LDLIBS | 1 + .../interfaces/pthread_mutex_init/LDLIBS | 1 + .../interfaces/pthread_mutex_lock/LDLIBS | 1 + .../interfaces/pthread_mutex_timedlock/LDLIBS | 1 + .../interfaces/pthread_mutex_trylock/LDLIBS | 1 + .../interfaces/pthread_mutex_unlock/LDLIBS | 1 + .../interfaces/pthread_mutexattr_destroy/LDLIBS | 1 + .../pthread_mutexattr_getprioceiling/LDLIBS | 1 + .../pthread_mutexattr_getprotocol/LDLIBS | 1 + .../interfaces/pthread_mutexattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_mutexattr_gettype/LDLIBS | 1 + .../interfaces/pthread_mutexattr_init/LDLIBS | 1 + .../pthread_mutexattr_setprioceiling/LDLIBS | 1 + .../pthread_mutexattr_setprotocol/LDLIBS | 1 + .../interfaces/pthread_mutexattr_setpshared/LDLIBS | 1 + .../interfaces/pthread_mutexattr_settype/LDLIBS | 1 + .../conformance/interfaces/pthread_once/3-1.c | 7 +- .../pthread_once/{4-1.c => 4-1-buildonly.c} | 0 .../conformance/interfaces/pthread_once/6-1.c | 148 ++-- .../conformance/interfaces/pthread_once/LDLIBS | 1 + .../interfaces/pthread_rwlock_destroy/LDLIBS | 1 + .../interfaces/pthread_rwlock_init/LDLIBS | 1 + .../interfaces/pthread_rwlock_rdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_timedrdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_timedwrlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_tryrdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_trywrlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_unlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_wrlock/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_destroy/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_getpshared/2-1.c | 9 +- .../pthread_rwlockattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_init/LDLIBS | 1 + .../pthread_rwlockattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_self/LDLIBS | 1 + .../interfaces/pthread_setcancelstate/LDLIBS | 1 + .../interfaces/pthread_setcanceltype/LDLIBS | 1 + .../interfaces/pthread_setschedparam/LDLIBS | 1 + .../interfaces/pthread_setschedprio/LDLIBS | 1 + .../interfaces/pthread_setspecific/LDLIBS | 1 + .../conformance/interfaces/pthread_sigmask/LDLIBS | 1 + .../interfaces/pthread_spin_destroy/LDLIBS | 1 + .../conformance/interfaces/pthread_spin_init/2-1.c | 10 +- .../conformance/interfaces/pthread_spin_init/2-2.c | 11 +- .../interfaces/pthread_spin_init/LDLIBS | 1 + .../interfaces/pthread_spin_lock/LDLIBS | 1 + .../interfaces/pthread_spin_trylock/LDLIBS | 1 + .../interfaces/pthread_spin_unlock/LDLIBS | 1 + .../interfaces/pthread_testcancel/LDLIBS | 1 + .../conformance/interfaces/sched_setparam/25-2.c | 9 +- .../conformance/interfaces/sched_setparam/25-3.c | 14 +- .../conformance/interfaces/sched_setparam/25-4.c | 9 + .../conformance/interfaces/sched_setparam/LDLIBS | 1 + .../interfaces/sched_setscheduler/LDLIBS | 1 + .../conformance/interfaces/sched_yield/1-1.c | 44 +- .../conformance/interfaces/sched_yield/LDLIBS | 1 + .../conformance/interfaces/sem_close/LDLIBS | 1 + .../conformance/interfaces/sem_destroy/LDLIBS | 1 + .../conformance/interfaces/sem_getvalue/2-2.c | 4 - .../conformance/interfaces/sem_getvalue/LDLIBS | 1 + .../sem_getvalue/{coverage.c => coverage.txt} | 0 .../conformance/interfaces/sem_init/LDLIBS | 1 + .../conformance/interfaces/sem_init/testfrmw.c | 2 +- .../conformance/interfaces/sem_open/LDLIBS | 1 + .../conformance/interfaces/sem_post/LDLIBS | 1 + .../conformance/interfaces/sem_timedwait/3-1.c | 10 +- .../conformance/interfaces/sem_timedwait/7-1.c | 12 +- .../conformance/interfaces/sem_timedwait/LDLIBS | 1 + .../conformance/interfaces/sem_unlink/7-1.c | 3 - .../conformance/interfaces/sem_unlink/9-1.c | 3 - .../conformance/interfaces/sem_unlink/LDLIBS | 1 + .../conformance/interfaces/sem_wait/LDLIBS | 1 + .../conformance/interfaces/shm_open/LDLIBS | 1 + .../conformance/interfaces/shm_unlink/LDLIBS | 1 + .../conformance/interfaces/sigaction/16-19.c | 7 - .../conformance/interfaces/sigaction/18-19.c | 4 - .../conformance/interfaces/sigaction/19-19.c | 4 - .../conformance/interfaces/sigaction/23-19.c | 3 - .../conformance/interfaces/sigaction/28-19.c | 4 - .../conformance/interfaces/sigaction/LDLIBS | 1 + .../sigaddset/{1-core-buildonly.c => 1-core.c} | 0 .../conformance/interfaces/sigaddset/4-1.sh | 2 +- .../conformance/interfaces/sigaddset/4-2.sh | 2 +- .../conformance/interfaces/sigaddset/4-3.sh | 2 +- .../conformance/interfaces/sigaddset/4-4.sh | 2 +- .../interfaces/sigaddset/4-core-buildonly.c | 77 -- .../conformance/interfaces/sigaddset/4-core.c | 77 ++ .../interfaces/sigaltstack/{9-buildonly.c => 9.c} | 0 .../sigdelset/{1-core-buildonly.c => 1-core.c} | 0 .../sigdelset/{4-core-buildonly.c => 4-core.c} | 0 .../sighold/{3-core-buildonly.c => 3-core.c} | 0 .../sigignore/{5-core-buildonly.c => 5-core.c} | 0 .../sigismember/{5-core-buildonly.c => 5-core.c} | 0 .../conformance/interfaces/sigpause/LDLIBS | 1 + .../sigprocmask/{17-core-buildonly.c => 17-core.c} | 0 .../conformance/interfaces/sigrelse/3-1.sh | 2 +- .../conformance/interfaces/sigrelse/3-2.sh | 2 +- .../conformance/interfaces/sigrelse/3-3.sh | 2 +- .../conformance/interfaces/sigrelse/3-4.sh | 2 +- .../sigrelse/{3-core-buildonly.c => 3-core.c} | 0 .../conformance/interfaces/sigtimedwait/4-1.c | 3 +- .../conformance/interfaces/sigwait/LDLIBS | 1 + .../conformance/interfaces/timer_create/LDLIBS | 1 + .../conformance/interfaces/timer_delete/LDLIBS | 1 + .../conformance/interfaces/timer_getoverrun/4-1.sh | 2 +- .../conformance/interfaces/timer_getoverrun/5-1.sh | 2 +- .../conformance/interfaces/timer_getoverrun/LDLIBS | 1 + .../interfaces/timer_getoverrun/speculative/6-2.c | 7 +- .../interfaces/timer_getoverrun/speculative/6-3.c | 5 +- .../conformance/interfaces/timer_gettime/LDLIBS | 1 + .../conformance/interfaces/timer_settime/4-1.sh | 2 +- .../conformance/interfaces/timer_settime/LDLIBS | 1 + .../interfaces/timer_settime/speculative/12-2.c | 5 +- testcases/open_posix_testsuite/exec-func.sh | 8 - testcases/open_posix_testsuite/execute.sh | 308 ------ testcases/open_posix_testsuite/functional/Makefile | 13 + .../open_posix_testsuite/functional/mqueues/LDLIBS | 1 + .../functional/mqueues/Makefile | 13 - .../open_posix_testsuite/functional/mqueues/run.sh | 50 - .../functional/mqueues/send_rev_1.c | 78 +- .../functional/semaphores/LDLIBS | 1 + .../functional/semaphores/Makefile | 15 - .../functional/semaphores/run.sh | 50 - .../functional/semaphores/sem_conpro.c | 1 - .../functional/semaphores/sem_lock.c | 40 +- .../functional/semaphores/sem_philosopher.c | 1 - .../functional/semaphores/sem_readerwriter.c | 1 - .../functional/threads/Makefile | 21 +- .../functional/threads/Makefile.inc | 8 - .../functional/threads/condvar/LDLIBS | 1 + .../functional/threads/condvar/Makefile | 17 - .../functional/threads/pi_test/CFLAGS | 1 + .../functional/threads/pi_test/LDLIBS | 1 + .../functional/threads/pi_test/Makefile | 10 - .../functional/threads/pi_test/pitest-1.c | 20 +- .../functional/threads/pi_test/pitest-2.c | 17 +- .../functional/threads/pi_test/pitest-3.c | 9 +- .../functional/threads/pi_test/pitest-4.c | 15 +- .../functional/threads/pi_test/pitest-5.c | 21 +- .../functional/threads/pi_test/pitest-6.c | 19 +- .../functional/threads/pi_test/run.sh | 46 - .../functional/threads/robust_test/CFLAGS | 1 + .../functional/threads/robust_test/LDLIBS | 1 + .../functional/threads/robust_test/Makefile | 10 - .../functional/threads/robust_test/robust1-mode2.c | 17 +- .../functional/threads/robust_test/robust1-sun.c | 18 +- .../functional/threads/robust_test/robust2-mode2.c | 17 +- .../functional/threads/robust_test/robust2-sun.c | 18 +- .../functional/threads/robust_test/robust3-mode2.c | 19 +- .../functional/threads/robust_test/run.sh | 31 - .../open_posix_testsuite/functional/threads/run.sh | 15 - .../functional/threads/schedule/LDLIBS | 1 + .../functional/threads/schedule/Makefile | 15 - .../functional/timers/Makefile | 14 - .../functional/timers/clocks/Makefile | 23 - .../open_posix_testsuite/functional/timers/run.sh | 56 - .../functional/timers/timers/Makefile | 22 - testcases/open_posix_testsuite/include/posixtest.h | 7 + testcases/open_posix_testsuite/locate-test | 121 --- .../scripts/generate-makefiles.sh | 271 +++++ testcases/open_posix_testsuite/scripts/locate-test | 101 ++ .../open_posix_testsuite/scripts/print-prefix.sh | 10 + testcases/open_posix_testsuite/stress/Makefile | 13 + .../open_posix_testsuite/stress/mqueues/LDLIBS | 1 + .../open_posix_testsuite/stress/mqueues/Makefile | 13 - .../open_posix_testsuite/stress/mqueues/run.sh | 50 - .../open_posix_testsuite/stress/semaphores/LDLIBS | 1 + .../stress/semaphores/Makefile | 12 - .../open_posix_testsuite/stress/semaphores/run.sh | 48 - .../open_posix_testsuite/stress/threads/LDLIBS | 1 + .../stress/threads/fork/Makefile | 15 - .../stress/threads/fork/s-c1.c | 1 - .../stress/threads/pthread_cancel/Makefile | 15 - .../stress/threads/pthread_cond_init/Makefile | 15 - .../stress/threads/pthread_cond_timedwait/Makefile | 27 - .../stress/threads/pthread_create/Makefile | 15 - .../stress/threads/pthread_exit/Makefile | 15 - .../stress/threads/pthread_getschedparam/Makefile | 15 - .../stress/threads/pthread_kill/Makefile | 15 - .../stress/threads/pthread_mutex_init/Makefile | 15 - .../stress/threads/pthread_mutex_lock/Makefile | 15 - .../stress/threads/pthread_mutex_trylock/Makefile | 15 - .../stress/threads/pthread_once/Makefile | 15 - .../stress/threads/pthread_self/Makefile | 15 - .../stress/threads/sem_getvalue/Makefile | 15 - .../stress/threads/sem_init/Makefile | 15 - .../stress/threads/sem_open/Makefile | 15 - testcases/open_posix_testsuite/t0.c | 97 -- testcases/open_posix_testsuite/tools/Makefile | 20 + testcases/open_posix_testsuite/tools/t0.c | 87 ++ testcases/realtime/func/matrix_mult/matrix_mult.c | 2 + testcases/realtime/func/pi-tests/testpi-0.c | 67 +- testcases/realtime/func/pi-tests/testpi-1.c | 318 +++---- testcases/realtime/func/pi-tests/testpi-2.c | 318 +++---- testcases/realtime/func/pi-tests/testpi-4.c | 329 +++---- testcases/realtime/func/pi-tests/testpi-5.c | 80 +- testcases/realtime/func/pi-tests/testpi-6.c | 76 +- testcases/realtime/lib/librttest.c | 2 +- tools/create_dmesg_entries_for_each_test.pl | 74 ++ 677 files changed, 7601 insertions(+), 4296 deletions(-) create mode 100644 lib/get_path.c create mode 100644 runtest/fs_perms_simple delete mode 100755 testcases/kernel/fs/fs_perms/fs_perms_simpletest.sh delete mode 100644 testcases/kernel/fs/fs_perms/testx.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_accept_test.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_new_file_test.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_new_test.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_policy_io_test.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_policy_memory_test.c create mode 100644 testcases/kernel/security/tomoyo/tomoyo_rewrite_test.c create mode 100644 testcases/open_posix_testsuite/CFLAGS copy testcases/{ballista/ballista/compile/errorLog => open_posix_testsuite/LDLIBS} (100%) create mode 100644 testcases/open_posix_testsuite/bin/Makefile create mode 100755 testcases/open_posix_testsuite/bin/run-tests.sh create mode 100644 testcases/open_posix_testsuite/conformance/Makefile create mode 100644 testcases/open_posix_testsuite/conformance/behavior/Makefile create mode 100644 testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/definitions/Makefile rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{1-2.c => 1-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{3-1.c => 3-1-buildonly.c} (100%) create mode 100644 testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{2-1.c => 2-1-buildonly.c} (100%) create mode 100644 testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c delete mode 100644 testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1.c rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{10.c => 10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{2-1.c => 2-1-buildonly.c} (100%) create mode 100644 testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c delete mode 100644 testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2.c rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-10.c => 3-10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-11.c => 3-11-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-12.c => 3-12-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-13.c => 3-13-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-2.c => 3-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-3.c => 3-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-4.c => 3-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-5.c => 3-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-6.c => 3-6-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-7.c => 3-7-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-8.c => 3-8-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-9.c => 3-9-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{6-1.c => 6-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{7-1.c => 7-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{9-1.c => 9-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{14-... [truncated message content] |
From: Subrata <ris...@li...> - 2010-07-10 18:54:44
|
The branch, master, has been updated via b0c59c7929624d30ab32e7ee683b9e8a1fa08146 (commit) via 91e1c951e6f5aa2b268509c57bdbcc2c4d1dcab4 (commit) via 9080a1ac2455fa5eef852385b8a62e8ad1028d25 (commit) from b5087af1979de36d2bec9385d03ac41086dcb735 (commit) - Log ----------------------------------------------------------------- commit b0c59c7929624d30ab32e7ee683b9e8a1fa08146 Merge: 91e1c951e6f5aa2b268509c57bdbcc2c4d1dcab4 b5087af1979de36d2bec9385d03ac41086dcb735 Author: Subrata Modak <sub...@su...> Date: Sun Jul 11 00:24:13 2010 +0530 Merge branch 'master' of ssh://sub...@lt.../gitroot/ltp/ltp-dev commit 91e1c951e6f5aa2b268509c57bdbcc2c4d1dcab4 Author: Subrata Modak <sub...@su...> Date: Sun Jul 11 00:19:53 2010 +0530 Fix hugeshmget01. Sorry!! I mistook to make following patch for hugetlb tests: http://www.mail-archive.com/ltp...@li.../msg10249.html, After the patch was applied, hugeshmget01 test will FAIL under the condition that hugepages isn't effective. In this patch, I moved the timing of "setup()" calling after the judgment of hugepages. ------------ if ((msg = parse_opts(ac, av, (option_t *)NULL, NULL)) != (char *)NULL){ tst_brkm(TBROK, cleanup, "OPTION PARSING ERROR - %s", msg); } /* The following loop checks looping state if -i option given */ if ( get_no_of_hugepages() <= 0 || hugepages_size() <= 0 ) tst_brkm(TCONF, cleanup, "Not enough available Hugepages"); else huge_pages_shm_to_be_allocated = ( get_no_of_hugepages() * hugepages_size() * 1024) / 2 ; setup(); /* global setup */ ------------ At first, the "cleanup()" function was called in exit handling when hugepages was not effective. But I didn't change "cleanup" into "tst_exit". Therefore, in "cleanup()", exit handling fails to delete a non-existing temporary directory. I maked patch for the latest git. I tested it in both conditions that hugepages is effective/ineffective. Signed-off-by: Tomonori Mitani <mi...@ry...>. commit 9080a1ac2455fa5eef852385b8a62e8ad1028d25 Author: Subrata Modak <sub...@su...> Date: Sun Jul 11 00:17:43 2010 +0530 add types for functions in fs-bench. Attached patch adds types for functions in sources for fs-bench just because when function doesn't have return type it defaults to int and this causes problems (for example when doing return from such function without value). Signed-off-by: Cyril Hrubis ch...@su.... Side note: he code quality for fs-bench is very poor, there is no documentation and the scripts are broken (mostly wrongly hardcoded paths). IMHO these tests are not worth fixing and candidate for removal. Please provide a build log. Garrett Cooper <yan...@gm...>. Okay apparently I've missed some "unused variable" and "implicit function declaration" warnings. Attached patch fixes all compilation issues (has previous two merged) but still at least the test scripts are broken. Signed-off-by: Cyril Hrubis ch...@su.... ----------------------------------------------------------------------- Summary of changes: testcases/kernel/fs/fs-bench/boxmuler.c | 3 +++ testcases/kernel/fs/fs-bench/create-files.c | 16 +++++++++++----- .../kernel/fs/fs-bench/random-access-del-create.c | 15 ++++++++++----- testcases/kernel/fs/fs-bench/random-access.c | 8 +++++--- testcases/kernel/fs/fs-bench/random-del-create.c | 8 +++++--- .../kernel/mem/hugetlb/hugeshmget/hugeshmget01.c | 2 +- 6 files changed, 35 insertions(+), 17 deletions(-) diff --git a/testcases/kernel/fs/fs-bench/boxmuler.c b/testcases/kernel/fs/fs-bench/boxmuler.c index 89ee941..0609335 100644 --- a/testcases/kernel/fs/fs-bench/boxmuler.c +++ b/testcases/kernel/fs/fs-bench/boxmuler.c @@ -1,5 +1,8 @@ #include <math.h> +#include <stdlib.h> + #define M_2PI (M_PI*2) + int box_muler(int min, int max) { double u1,u2,z; diff --git a/testcases/kernel/fs/fs-bench/create-files.c b/testcases/kernel/fs/fs-bench/create-files.c index 88ea202..ec54bb8 100644 --- a/testcases/kernel/fs/fs-bench/create-files.c +++ b/testcases/kernel/fs/fs-bench/create-files.c @@ -15,11 +15,14 @@ char wbuf[MAXFSIZE]; static int filecount=0; +void makedir(char *dir1); +void changedir(char *dir); +void create_file(char *filename); extern int box_muler(int, int); int startc=0; -main(int ac,char *av[]) +int main(int ac,char *av[]) { int i=0; int j=0; @@ -71,18 +74,21 @@ main(int ac,char *av[]) end: fprintf(stderr,"\nTotal create files: %d\n",filecount); printf("Done\n"); + return 0; } int showchar[]={124,47,45,92,124,47,45,92}; -static int mkdir_counter=0; -makedir(char *dir1) + +void makedir(char *dir1) { if (mkdir(dir1, S_IRWXU) < 0) { perror(dir1); exit(1); } } -changedir(char *dir) { + +void changedir(char *dir) +{ if ( chdir(dir) < 0 ) { perror(dir); exit(1); @@ -90,7 +96,7 @@ changedir(char *dir) { } -create_file(char *filename) +void create_file(char *filename) { int fd; int randomsize; diff --git a/testcases/kernel/fs/fs-bench/random-access-del-create.c b/testcases/kernel/fs/fs-bench/random-access-del-create.c index 3322d92..fdfc71f 100644 --- a/testcases/kernel/fs/fs-bench/random-access-del-create.c +++ b/testcases/kernel/fs/fs-bench/random-access-del-create.c @@ -20,12 +20,14 @@ int openlog[2]={0,0}; extern int box_muler(int, int); extern void create_or_delete(char *); +int delete_file(char *filename); +int create_file(char *filename); + int cfilecount=0; int dfilecount=0; int errorcount=0; -int -main(int ac, char **av) +int main(int ac, char **av) { int r; char fname[1024]; @@ -73,7 +75,6 @@ static int disk_space_pool=0; void create_or_delete(char *fname) { int r; - int fsize; r = (random() & 1); if ( r && disk_space_pool > POOLDISKSPACE) { @@ -92,7 +93,7 @@ void create_or_delete(char *fname) } } -create_file(char *filename) +int create_file(char *filename) { int fd; int randomsize; @@ -112,12 +113,14 @@ create_file(char *filename) cfilecount++; disk_space_pool -= randomsize; close(fd); + + return 0; } #include <sys/stat.h> #include <unistd.h> -delete_file(char *filename) +int delete_file(char *filename) { struct stat buf; int st; @@ -132,4 +135,6 @@ delete_file(char *filename) return(-1); } dfilecount++; + + return 0; } diff --git a/testcases/kernel/fs/fs-bench/random-access.c b/testcases/kernel/fs/fs-bench/random-access.c index e2f8536..f5eb6a2 100644 --- a/testcases/kernel/fs/fs-bench/random-access.c +++ b/testcases/kernel/fs/fs-bench/random-access.c @@ -15,10 +15,12 @@ int openlog[2]={0,0}; #define MAXNUM 0x100000 +void open_read_close(char *fname); + int nullfd; -main(int ac, char **av) + +int main(int ac, char **av) { - int fd; int r; char fname[1024]; time_t t; @@ -62,7 +64,7 @@ main(int ac, char **av) } #define BUFS 8192 -open_read_close(char *fname) +void open_read_close(char *fname) { int fd; char buf[BUFS]; diff --git a/testcases/kernel/fs/fs-bench/random-del-create.c b/testcases/kernel/fs/fs-bench/random-del-create.c index a1fc8b8..70ddf32 100644 --- a/testcases/kernel/fs/fs-bench/random-del-create.c +++ b/testcases/kernel/fs/fs-bench/random-del-create.c @@ -24,7 +24,7 @@ int cfilecount=0; int dfilecount=0; int errorcount=0; -main(int ac, char **av) +int main(int ac, char **av) { int r; char fname[1024]; @@ -91,7 +91,7 @@ void create_or_delete(char *fname) } } -create_file(char *filename) +int create_file(char *filename) { int fd; int randomsize; @@ -111,12 +111,13 @@ create_file(char *filename) cfilecount++; disk_space_pool -= randomsize; close(fd); + return 0; } #include <sys/stat.h> #include <unistd.h> -delete_file(char *filename) +int delete_file(char *filename) { struct stat buf; int st; @@ -131,4 +132,5 @@ delete_file(char *filename) return(-1); } dfilecount++; + return 0; } diff --git a/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c b/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c index 76b95de..bd00c90 100644 --- a/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c +++ b/testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c @@ -80,7 +80,7 @@ int main(int ac, char **av) /* The following loop checks looping state if -i option given */ if ( get_no_of_hugepages() <= 0 || hugepages_size() <= 0 ) - tst_brkm(TCONF, cleanup, "Not enough available Hugepages"); + tst_brkm(TCONF, tst_exit, "Not enough available Hugepages"); else huge_pages_shm_to_be_allocated = ( get_no_of_hugepages() * hugepages_size() * 1024) / 2 ; hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 18:49:31
|
The branch, master, has been updated via b5087af1979de36d2bec9385d03ac41086dcb735 (commit) via 5ef445ba30891e32bdd5c032bb36e1b8e7ceaf8b (commit) via 5f103ec789dbe243401d1f3ce688a4fae4f99095 (commit) via b236795c0122ceb96f69a37569dc63b405c4ff96 (commit) via 6a905a25a1bfe020612f7e607a9309a5e7c737d3 (commit) via 6fefad532e57ea50f0853e8f17df7a1eb278ce89 (commit) via d10869fcc17936c97060d46609dee57d577fcab0 (commit) via 9a0582ebe6c9671842ad8589c23066c517bc42c7 (commit) via 81ecf3a86fdfa6ec4010c8150337a29a17a91bb1 (commit) via f6955771fdd1abbb2cd75abc226906022ae05ea4 (commit) via 28e174e9db3a1f4b767e8c734c7208b4de99d599 (commit) via a29a396150d38c443a2b2f377c3dfc72d33eabb5 (commit) via 5511b273ffb05cf36ed7bcc26eafe15cb4339359 (commit) via 1b92c89200342ab0badab39ca0547c1b739de85d (commit) via bec80d891acbc13269143d90085410579e1d836e (commit) via d4a84ce80c001b3a128d754da13754704b1a4af4 (commit) via ef12476f5d8f23a0292d8c16d2a227aa4336256d (commit) via 7abc390cda1cccd78183578964c4d9a3ba629ba2 (commit) via 3b6aeead1a65de3729c147ca41e66683b74ae54c (commit) via d680c877f41da1ccc5731c069b8fae81a0a189f2 (commit) via 515be5888ee07d87c4194afbf6ca69826cf2adfa (commit) via 2aec45df627cad013f17b7ab2fcad00dd069a4e5 (commit) via f8e6d24ced9584afeaee458e7872ff50aab6769b (commit) via 8ddfef16230888ae507540c9137a6b396dacba18 (commit) via 59cfa75ca85b14396bb524d6a586b03aa45d4c09 (commit) via 7da13d4fc396f5c2e0afa4cd37ab2a9236607c12 (commit) via f993a1dcedee2b60bdb1731507b5c063af060490 (commit) via a6a5dba5a420896edf184669d871971e1cf52c56 (commit) via dd845c2f6209f370c89b28d34ff6d204fa32c0c7 (commit) via 84e052d5087dd3bc469f6a02de3b7abd774c4df5 (commit) via d8dd9700830563280c60dcabe5b9c13bc11763b0 (commit) via e7160e77fc728e7defab7574f60713d9e33a0d49 (commit) via 3b808b433b22516d2eecd95aa2ba67dbf057e975 (commit) via 0cc96ccac4c9ea57f7c64934af42c8cd43ad6da4 (commit) via a3acfa7e5751f5c93aff5685fb1c0997bd3d7311 (commit) via 070138c410944469346ff6823fc3df58a5e2da6f (commit) via d212516229b8a41d4302620da4a3511b333ed2e5 (commit) via 096c450506ad0f50352a3c8b43de9c1538295d82 (commit) via 85d7f26c7eb5994d4dabdb05998c90d86d7baa46 (commit) via 0414c8fbabd00c4e1df589aa13d995c91c8736ec (commit) via 0894865a51d30399e62a20349061112deaa4b4f6 (commit) via 446cd01c811977e2866006259423f7c7fff0d863 (commit) via 8d295e3c1f7e48ec1793ea6bc59ccf07d39bd55d (commit) via d8140e2c68a3eb77db15e74f6621af6441e19527 (commit) via 8b376ab38ab090763bf0552580374b864e1afea6 (commit) via 393822aa72d8652550d8c88c17240ed19b86593c (commit) via 1510cbb78e7eb882d885b5253fbfd92b6fd38ac0 (commit) via 01680d51328b33cd26d71a689c0552ccca7e5015 (commit) via 8d78db8ede38c10e677ce5c227f194d378a099dc (commit) via 0b83e63a3164bf3119f85da0131b7a74c0833812 (commit) via 6da95a6582aa88341173994a2546d8695e450e9a (commit) via d98cc91cb29ede62323c94d70887d5c31c03d24b (commit) via ca761d624c016aa10385579b668774b65eea13de (commit) via 10a39e805f31992220034bfdc44af38324d29f1e (commit) via 617f4f5c35549bf644d1ad727b129234bc714d8e (commit) via 885f781a9ae9fa0273374312b0e172a2137d1d47 (commit) via da5651247bdf23c20a971b48614849ac942d7f20 (commit) via d309fa0607bf70af04be750e57e9346c6790fbc3 (commit) via 8f1b81c4da104171651fa9fe59c66c398b2fbfcd (commit) via 094d369f06607e37d76d697844f75272755cf969 (commit) via 0df8df0011e170d2644b4cdfef6216030dcb8c50 (commit) via 65d6a03b5ce17b934d1fd5a72e8c7519d637965b (commit) via e8d8303f301eb8fd6477346373b8ffe21aed4d09 (commit) via b82db5f13e89331813fd93023adcc48efe27c9bf (commit) via 377d976666335e15fed7cac8d7f48b8a762e25fa (commit) via 20d72c7d3cd67461380cbfb484471c3b39262ebe (commit) via a0f8e08d23a5c34b8045c241f8d258fe67e6729b (commit) via d5ff323a3bc912f877ab31a78046c9388e4235f1 (commit) via 1fb9097d3adfa0bed182344464a773bc53c6061c (commit) via f9508213fbc076538bc650bdb354905674b20ceb (commit) via 5059f459789238c1378da036c16f7eb6dcbc5318 (commit) via 468d4b45c092c8a4d9c46cf45a78f6a772620cb1 (commit) via 17dc34f217c5617baae6abc8d4cbef0ec9caadc2 (commit) via 9b6bb8b07b89314c0d2cc373e668a10525f018e0 (commit) via 0ffe3041ce48b93465c85b67ee8f4fd73ac7fbd8 (commit) via bbe8f67cdb710dbbbd48e0ab7339ad3c95b811be (commit) via 1183a9fa5092975c28c8a6d070b82d477c4e509e (commit) via 3e99bc7c7782f57f75903b76a38bf73d93c8f832 (commit) via c14cf2c626d5960badede4b96da87226232b7ba6 (commit) via ef399220509ea9889609cb58749dae97d5dbc00b (commit) via 69a66f173dc5e1cee6ff512947a1dbc4521245ce (commit) via 99602c3e4b4d6de4c85c7ffaff206116c59480ce (commit) via 70c91766d2a044c1bb78584238e5224da33381f9 (commit) via 91f8b2ffe2984e032bb60ce39bb8b0405e19fcb9 (commit) via f7049d007a5595187c8b523ba2831232abbfeddd (commit) via 038138be7d47a1b38cf44baa7d30e8ed0c700d3e (commit) via bb34ec782689243aeba8dca930c3a783cdf89bcf (commit) via 2d87d5da9dfcda98b5c5cd41d45b924910aad1bd (commit) via a9b7de80f7d46e6091864c892cc6b385d435f3ca (commit) via 721ef9d8af62f8327a1075bc9de20c8a4cd88810 (commit) via 8c93e42ea3cf589bb663aa9dc78492f9d44f736b (commit) via 9be14150793e82064c4f9d791be322370573f314 (commit) via 7666e5a7215ea9c1f8934cb568b138553e14a80e (commit) via 4239a299c0d5cfd8058c3676fee30a6a787acdfe (commit) via 2f429f3d096bf565eee21c28c54cfab28286eea6 (commit) via ab091057879e20f1be19425c10959ba6fcf7ada9 (commit) via c09e1448798a849f17e5201caa05dcf170effa5e (commit) via 2e38f1438de49a9ce4bfcb1d46f417b77797f55c (commit) via ad3d8f9e50f7073a33ab7d2cd13eae5870f5da30 (commit) via 0b97f0be1d838a253a158076f98820c2cee9cbba (commit) via fb968b9e2ed3bc81f27b16e070c45caf03971126 (commit) via 3dd341e0a9108e85b5cdc58d7faa8c91f3dd76cd (commit) via e1d8307f7752a918f0d194dd391cbc39625ce907 (commit) via 02eacfaa66c823d10cb20d6e65d828ce64b5b506 (commit) via 1c5be56415cd753479a72cd89cbbd1fd445ddb1a (commit) via 67841e67385fdae4e0cdecbcf1867d2d3b82e989 (commit) via 0bf0d385d0cdbcb6407a547118112126e28b0175 (commit) via 9cda97cee9dafc96c17806141c795dbf41d9e804 (commit) via 246625cedf2827f4c810bead096cce3be1b6fc8d (commit) via 9efd7b43362cc1647a1f297014ee86a2d5dc2775 (commit) via 4aaa81f17ce66894139a1e27eccba85dae34ea54 (commit) via 37f653f5c41b6a347ab382ee75c15acf3a82978b (commit) via 1c385e70b81f9580841f12eaa3106a5f2ace9534 (commit) via b62095f93c4c4e34edc948cbd4d9f39f92a4d290 (commit) via 38bbac335cc10b0db007e871393c216d4bba7143 (commit) via 1e1a3fd3eec33ea81d8a912c569eb57a41b9faab (commit) via 246c55b6ff11862d61341f13ffa19a59c8ec64d6 (commit) via 6f2d70d4a671cdf121c8301db093b86a0e080ea6 (commit) via 4065c2f47676a1b3590ad569feb07e6993167533 (commit) via 6f5eda9e882257afd6ddded59fa8a293e6c11c0e (commit) via c580fbc0a607da39a438af4d78a85f64171af6bf (commit) via 200d76535a50ffd4d06f54933479a8696267d303 (commit) via b8139e0b5a8f20cbd9bbc97528679dc2fcd430a0 (commit) via a147804a653f2e528ce508a4e251c69e7a57c473 (commit) via e6933b95841581fdb6eb3f06e29b592716a95cb8 (commit) via c54cefe1191a6d959eace2812d27e406e176b122 (commit) via 1b8bcedd85f2c99d2850b4eb23ba8a83e5b4f16a (commit) via 3cc6f028b8eeda2e20f308dc8a81020332d8c524 (commit) via b4fcfce584f11cca39fba11d17fef6637ed41a9e (commit) via 5e6a5f8ad3be208d14826f77111d512c8758bc04 (commit) via 1caa7da8563958edbc538c22caffad1baf34855e (commit) via 8ef4bbfddc7922d8978d53f972c50024e6a10729 (commit) via 796175696e5a0bdef6a0a0de6dd4ffd3208c9d23 (commit) via 866fc6a28d590ad871c50a0afb05c6d1ace6b260 (commit) via e79cac0c77edf6ad9361abfe53302fe88b6338b7 (commit) via 7489873d46f8428f71a413629e427f39ff8c4db8 (commit) via 91325b11bbfeb29a4a9dd28f46dd7de0b5e24177 (commit) via 8d785b4e9eda424552e5bd87883826c615c10f8d (commit) via d49548d6749359c86d4ac2a5a22a3f5fad383ba5 (commit) via cfa4725eebab047fed5abe607404eb21a1a30619 (commit) via b90b372e4a1e06c7a1e08ca0e2f291b543592faf (commit) via 336190574a34bd7327c67635725f09b2457b32d0 (commit) via f73e148e8146a7492aded2908f1a4a1a4a860d5b (commit) via 524c6e9c784f6863ff24784eae72a9f3056e69fc (commit) via 2cc595d69a445915d5dc4bf576d2eb92c673cc6d (commit) via fa985a9be4bdbb8c239ee2bcdb45b73f555f477b (commit) via 8188c9580a36b974ff944efa5e081932825a877d (commit) via 9aac6e50973d30ad30fb1473b44af7f166f848e8 (commit) via 80886b520423c015b63cff03082e274147042243 (commit) via 19e651c5f005cf41dd389c355e0b07026a83b109 (commit) via 2688873039bfd1dfc3be6e4e31825f2cb2138dab (commit) via 43a55491eba9e454cd92d68483940d79c5a06085 (commit) via 4e033cabfa09864892d94cbe14a670778544fb41 (commit) via 99d7ea515b14badb9d5f9c9abdd3103925589440 (commit) via 13df35ed04f6d7b1fa9fb00697899143bffada9f (commit) via c5c1f1f1007dc7c31c5abd134ae11e16989f0a96 (commit) via 6617a67f10a8d068b96fdcf771026fc2aec05eed (commit) via 627ae2deaa27171508b292f62c7436931a731b4d (commit) via 77475d61707503672062bac3ecbc22c80753f2d1 (commit) via b914cb45c1dac557b89618e93719a9f217cfcb1c (commit) via 08e703bbc89cf75fa7a610cf68013bf30df203b4 (commit) via 2d87716cc05b592a1be877828e21364562478c52 (commit) via 5966adba3b50184d0d55a21fbe8def0279aaaf68 (commit) via 3a6a31acc110ee39395b7ddb28cb325682cfbe1e (commit) via 303a69af83bd2dd9bf358e50a11ef6b5b78e5041 (commit) via b4bd3c001ec8d74bb5c85754b8c94f8f0b2770b8 (commit) from 848f37617b3aee594408d399253d8e196095ca01 (commit) - Log ----------------------------------------------------------------- commit b5087af1979de36d2bec9385d03ac41086dcb735 Merge: 848f37617b3aee594408d399253d8e196095ca01 5ef445ba30891e32bdd5c032bb36e1b8e7ceaf8b Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 07:45:34 2010 -0700 Merge branch 'pu' Conflicts: testcases/kernel/mem/hugetlb/hugeshmget/hugeshmget01.c Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 13 +- testcases/kernel/numa/test.sh | 2 +- testcases/open_posix_testsuite/BUILD | 40 ++-- testcases/open_posix_testsuite/CFLAGS | 1 + testcases/open_posix_testsuite/COPYING | 35 +++ testcases/open_posix_testsuite/LDFLAGS | 16 - .../errorLog => open_posix_testsuite/LDLIBS} | 0 testcases/open_posix_testsuite/Makefile | 300 +++++++------------- testcases/open_posix_testsuite/QUICK-START | 4 - testcases/open_posix_testsuite/bin/Makefile | 22 ++ testcases/open_posix_testsuite/bin/run-tests.sh | 116 ++++++++ .../open_posix_testsuite/conformance/Makefile | 10 + .../conformance/behavior/Makefile | 13 + .../conformance/behavior/timers/LDLIBS | 1 + .../conformance/definitions/Makefile | 13 + .../definitions/aio_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/aio_h/{1-2.c => 1-2-buildonly.c} | 0 .../definitions/aio_h/{3-1.c => 3-1-buildonly.c} | 0 .../conformance/definitions/aio_h/LDLIBS | 1 + .../definitions/errno_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/errno_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/errno_h/3-1-buildonly.c | 98 +++++++ .../conformance/definitions/errno_h/3-1.c | 86 ------ .../conformance/definitions/errno_h/3-2.c | 12 +- .../conformance/definitions/errno_h/4-1.c | 12 +- .../conformance/definitions/errno_h/assertions.xml | 4 + .../pthread_h/{1-1.c => 1-1-buildonly.c} | 0 .../definitions/pthread_h/{10.c => 10-buildonly.c} | 0 .../pthread_h/{11-1.c => 11-1-buildonly.c} | 0 .../pthread_h/{12-1.c => 12-1-buildonly.c} | 0 .../pthread_h/{13-1.c => 13-1-buildonly.c} | 0 .../pthread_h/{14-1.c => 14-1-buildonly.c} | 0 .../pthread_h/{15-1.c => 15-1-buildonly.c} | 0 .../pthread_h/{16-1.c => 16-1-buildonly.c} | 0 .../pthread_h/{17-1.c => 17-1-buildonly.c} | 0 .../pthread_h/{18-1.c => 18-1-buildonly.c} | 0 .../pthread_h/{19-1.c => 19-1-buildonly.c} | 0 .../pthread_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/pthread_h/2-2-buildonly.c | 49 +++ .../conformance/definitions/pthread_h/2-2.c | 72 ----- .../pthread_h/{20-1.c => 20-1-buildonly.c} | 0 .../pthread_h/{3-1.c => 3-1-buildonly.c} | 0 .../pthread_h/{3-10.c => 3-10-buildonly.c} | 0 .../pthread_h/{3-11.c => 3-11-buildonly.c} | 0 .../pthread_h/{3-12.c => 3-12-buildonly.c} | 0 .../pthread_h/{3-13.c => 3-13-buildonly.c} | 0 .../pthread_h/{3-2.c => 3-2-buildonly.c} | 0 .../pthread_h/{3-3.c => 3-3-buildonly.c} | 0 .../pthread_h/{3-4.c => 3-4-buildonly.c} | 0 .../pthread_h/{3-5.c => 3-5-buildonly.c} | 0 .../pthread_h/{3-6.c => 3-6-buildonly.c} | 0 .../pthread_h/{3-7.c => 3-7-buildonly.c} | 0 .../pthread_h/{3-8.c => 3-8-buildonly.c} | 0 .../pthread_h/{3-9.c => 3-9-buildonly.c} | 0 .../pthread_h/{4-1.c => 4-1-buildonly.c} | 0 .../pthread_h/{5-1.c => 5-1-buildonly.c} | 0 .../pthread_h/{6-1.c => 6-1-buildonly.c} | 0 .../pthread_h/{7-1.c => 7-1-buildonly.c} | 0 .../pthread_h/{8-1.c => 8-1-buildonly.c} | 0 .../pthread_h/{9-1.c => 9-1-buildonly.c} | 0 .../definitions/sched_h/{1-1.c => 1-1-buildonly.c} | 0 .../conformance/definitions/sched_h/10-1.c | 2 +- .../sched_h/{11-1.c => 11-1-buildonly.c} | 0 .../sched_h/{12-1.c => 12-1-buildonly.c} | 0 .../sched_h/{13-1.c => 13-1-buildonly.c} | 0 .../sched_h/{14-1.c => 14-1-buildonly.c} | 0 .../sched_h/{15-1.c => 15-1-buildonly.c} | 0 .../sched_h/{16-1.c => 16-1-buildonly.c} | 0 .../sched_h/{17-1.c => 17-1-buildonly.c} | 0 .../sched_h/{18-1.c => 18-1-buildonly.c} | 0 .../sched_h/{19-1.c => 19-1-buildonly.c} | 0 .../definitions/sched_h/{2-1.c => 2-1-buildonly.c} | 0 .../definitions/sched_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/sched_h/{4-1.c => 4-1-buildonly.c} | 0 .../definitions/sched_h/{8-1.c => 8-1-buildonly.c} | 0 .../definitions/sched_h/{8-2.c => 8-2-buildonly.c} | 0 .../definitions/sched_h/{8-3.c => 8-3-buildonly.c} | 0 .../definitions/sched_h/{8-4.c => 8-4-buildonly.c} | 0 .../signal_h/{1-1.c => 1-1-buildonly.c} | 0 .../signal_h/{14-1.c => 14-1-buildonly.c} | 0 .../signal_h/{15-1.c => 15-1-buildonly.c} | 0 .../signal_h/{16-1.c => 16-1-buildonly.c} | 0 .../signal_h/{17-1.c => 17-1-buildonly.c} | 0 .../signal_h/{18-1.c => 18-1-buildonly.c} | 0 .../conformance/definitions/signal_h/19-1.c | 3 +- .../signal_h/{2-1.c => 2-1-buildonly.c} | 0 .../signal_h/{2-2.c => 2-2-buildonly.c} | 0 .../signal_h/{2-3.c => 2-3-buildonly.c} | 0 .../signal_h/{2-4.c => 2-4-buildonly.c} | 0 .../signal_h/{20-1.c => 20-1-buildonly.c} | 0 .../signal_h/{21-1.c => 21-1-buildonly.c} | 0 .../signal_h/{22-1.c => 22-1-buildonly.c} | 0 .../signal_h/{22-10.c => 22-10-buildonly.c} | 0 .../signal_h/{22-11.c => 22-11-buildonly.c} | 0 .../signal_h/{22-12.c => 22-12-buildonly.c} | 0 .../signal_h/{22-13.c => 22-13-buildonly.c} | 0 .../signal_h/{22-14.c => 22-14-buildonly.c} | 0 .../signal_h/{22-15.c => 22-15-buildonly.c} | 0 .../signal_h/{22-16.c => 22-16-buildonly.c} | 0 .../signal_h/{22-17.c => 22-17-buildonly.c} | 0 .../signal_h/{22-18.c => 22-18-buildonly.c} | 0 .../signal_h/{22-19.c => 22-19-buildonly.c} | 0 .../signal_h/{22-2.c => 22-2-buildonly.c} | 0 .../signal_h/{22-20.c => 22-20-buildonly.c} | 0 .../signal_h/{22-21.c => 22-21-buildonly.c} | 0 .../signal_h/{22-22.c => 22-22-buildonly.c} | 0 .../signal_h/{22-23.c => 22-23-buildonly.c} | 0 .../signal_h/{22-24.c => 22-24-buildonly.c} | 0 .../signal_h/{22-25.c => 22-25-buildonly.c} | 0 .../signal_h/{22-26.c => 22-26-buildonly.c} | 0 .../signal_h/{22-27.c => 22-27-buildonly.c} | 0 .../signal_h/{22-28.c => 22-28-buildonly.c} | 0 .../signal_h/{22-29.c => 22-29-buildonly.c} | 0 .../signal_h/{22-3.c => 22-3-buildonly.c} | 0 .../signal_h/{22-30.c => 22-30-buildonly.c} | 0 .../signal_h/{22-31.c => 22-31-buildonly.c} | 0 .../signal_h/{22-32.c => 22-32-buildonly.c} | 0 .../signal_h/{22-33.c => 22-33-buildonly.c} | 0 .../signal_h/{22-34.c => 22-34-buildonly.c} | 0 .../signal_h/{22-35.c => 22-35-buildonly.c} | 0 .../signal_h/{22-36.c => 22-36-buildonly.c} | 0 .../signal_h/{22-37.c => 22-37-buildonly.c} | 0 .../signal_h/{22-38.c => 22-38-buildonly.c} | 0 .../signal_h/{22-39.c => 22-39-buildonly.c} | 0 .../signal_h/{22-4.c => 22-4-buildonly.c} | 0 .../signal_h/{22-40.c => 22-40-buildonly.c} | 0 .../signal_h/{22-5.c => 22-5-buildonly.c} | 0 .../signal_h/{22-6.c => 22-6-buildonly.c} | 0 .../signal_h/{22-7.c => 22-7-buildonly.c} | 0 .../signal_h/{22-8.c => 22-8-buildonly.c} | 0 .../signal_h/{22-9.c => 22-9-buildonly.c} | 0 .../conformance/definitions/signal_h/23-1.c | 2 +- .../signal_h/{24-1.c => 24-1-buildonly.c} | 0 .../signal_h/{25-1.c => 25-1-buildonly.c} | 0 .../conformance/definitions/signal_h/26-1.c | 3 +- .../signal_h/{27-1.c => 27-1-buildonly.c} | 0 .../signal_h/{28-1.c => 28-1-buildonly.c} | 0 .../signal_h/{29-1.c => 29-1-buildonly.c} | 0 .../signal_h/{3-1.c => 3-1-buildonly.c} | 0 .../signal_h/{30-1.c => 30-1-buildonly.c} | 0 .../signal_h/{31-1.c => 31-1-buildonly.c} | 0 .../signal_h/{32-1.c => 32-1-buildonly.c} | 0 .../signal_h/{33-1.c => 33-1-buildonly.c} | 0 .../signal_h/{34-1.c => 34-1-buildonly.c} | 0 .../signal_h/{35-1.c => 35-1-buildonly.c} | 0 .../signal_h/{36-1.c => 36-1-buildonly.c} | 0 .../signal_h/{37-1.c => 37-1-buildonly.c} | 0 .../signal_h/{38-1.c => 38-1-buildonly.c} | 0 .../signal_h/{39-1.c => 39-1-buildonly.c} | 0 .../signal_h/{4-1.c => 4-1-buildonly.c} | 0 .../signal_h/{40-1.c => 40-1-buildonly.c} | 0 .../signal_h/{41-1.c => 41-1-buildonly.c} | 0 .../signal_h/{42-1.c => 42-1-buildonly.c} | 0 .../signal_h/{43-1.c => 43-1-buildonly.c} | 0 .../signal_h/{44-1.c => 44-1-buildonly.c} | 0 .../signal_h/{45-1.c => 45-1-buildonly.c} | 0 .../signal_h/{46-1.c => 46-1-buildonly.c} | 0 .../signal_h/{47-1.c => 47-1-buildonly.c} | 0 .../signal_h/{48-1.c => 48-1-buildonly.c} | 0 .../signal_h/{49-1.c => 49-1-buildonly.c} | 0 .../signal_h/{5-1.c => 5-1-buildonly.c} | 0 .../signal_h/{50-1.c => 50-1-buildonly.c} | 0 .../sys/mman_h/{1-1.c => 1-1-buildonly.c} | 0 .../sys/mman_h/{10-1.c => 10-1-buildonly.c} | 0 .../sys/mman_h/{11-1.c => 11-1-buildonly.c} | 0 .../sys/mman_h/{12-1.c => 12-1-buildonly.c} | 0 .../sys/mman_h/{13-1.c => 13-1-buildonly.c} | 0 .../sys/mman_h/{14-1.c => 14-1-buildonly.c} | 0 .../sys/mman_h/{15-1.c => 15-1-buildonly.c} | 0 .../sys/mman_h/{16-1.c => 16-1-buildonly.c} | 0 .../sys/mman_h/{17-1.c => 17-1-buildonly.c} | 0 .../sys/mman_h/{18-1.c => 18-1-buildonly.c} | 0 .../sys/mman_h/{19-1.c => 19-1-buildonly.c} | 0 .../sys/mman_h/{2-1.c => 2-1-buildonly.c} | 0 .../sys/mman_h/{2-2.c => 2-2-buildonly.c} | 0 .../sys/mman_h/{2-3.c => 2-3-buildonly.c} | 0 .../sys/mman_h/{2-4.c => 2-4-buildonly.c} | 0 .../sys/mman_h/{20-1.c => 20-1-buildonly.c} | 0 .../sys/mman_h/{21-1.c => 21-1-buildonly.c} | 0 .../sys/mman_h/{22-1.c => 22-1-buildonly.c} | 0 .../sys/mman_h/{23-1.c => 23-1-buildonly.c} | 0 .../sys/mman_h/{24-1.c => 24-1-buildonly.c} | 0 .../sys/mman_h/{3-1.c => 3-1-buildonly.c} | 0 .../sys/mman_h/{3-2.c => 3-2-buildonly.c} | 0 .../sys/mman_h/{3-3.c => 3-3-buildonly.c} | 0 .../sys/mman_h/{4-1.c => 4-1-buildonly.c} | 0 .../sys/mman_h/{4-2.c => 4-2-buildonly.c} | 0 .../sys/mman_h/{4-3.c => 4-3-buildonly.c} | 0 .../sys/mman_h/{5-1.c => 5-1-buildonly.c} | 0 .../sys/mman_h/{5-2.c => 5-2-buildonly.c} | 0 .../sys/mman_h/{6-1.c => 6-1-buildonly.c} | 0 .../sys/mman_h/{7-1.c => 7-1-buildonly.c} | 0 .../sys/mman_h/{7-2.c => 7-2-buildonly.c} | 0 .../sys/mman_h/{7-3.c => 7-3-buildonly.c} | 0 .../sys/mman_h/{7-4.c => 7-4-buildonly.c} | 0 .../sys/mman_h/{7-5.c => 7-5-buildonly.c} | 0 .../sys/mman_h/{8-1.c => 8-1-buildonly.c} | 0 .../sys/mman_h/{8-2.c => 8-2-buildonly.c} | 0 .../sys/mman_h/{8-3.c => 8-3-buildonly.c} | 0 .../sys/mman_h/{9-1.c => 9-1-buildonly.c} | 0 .../sys/mman_h/{9-2.c => 9-2-buildonly.c} | 0 .../sys/mman_h/{9-3.c => 9-3-buildonly.c} | 0 .../sys/shm_h/{1-1.c => 1-1-buildonly.c} | 0 .../sys/shm_h/{10-1.c => 10-1-buildonly.c} | 0 .../sys/shm_h/{11-1.c => 11-1-buildonly.c} | 0 .../sys/shm_h/{12-1.c => 12-1-buildonly.c} | 0 .../sys/shm_h/{12-2.c => 12-2-buildonly.c} | 0 .../sys/shm_h/{12-3.c => 12-3-buildonly.c} | 0 .../sys/shm_h/{2-1.c => 2-1-buildonly.c} | 0 .../sys/shm_h/{2-2.c => 2-2-buildonly.c} | 0 .../sys/shm_h/{3-1.c => 3-1-buildonly.c} | 0 .../sys/shm_h/{4-1.c => 4-1-buildonly.c} | 0 .../sys/shm_h/{5-1.c => 5-1-buildonly.c} | 0 .../sys/shm_h/{6-1.c => 6-1-buildonly.c} | 0 .../sys/shm_h/{7-1.c => 7-1-buildonly.c} | 0 .../sys/shm_h/{7-2.c => 7-2-buildonly.c} | 0 .../sys/shm_h/{7-3.c => 7-3-buildonly.c} | 0 .../sys/shm_h/{7-4.c => 7-4-buildonly.c} | 0 .../sys/shm_h/{8-1.c => 8-1-buildonly.c} | 0 .../sys/shm_h/{9-1.c => 9-1-buildonly.c} | 0 .../definitions/time_h/{1-1.c => 1-1-buildonly.c} | 0 .../time_h/{10-1.c => 10-1-buildonly.c} | 0 .../time_h/{11-1.c => 11-1-buildonly.c} | 0 .../time_h/{12-1.c => 12-1-buildonly.c} | 0 .../time_h/{13-1.c => 13-1-buildonly.c} | 0 .../time_h/{14-1.c => 14-1-buildonly.c} | 0 .../time_h/{15-1.c => 15-1-buildonly.c} | 0 .../time_h/{16-1.c => 16-1-buildonly.c} | 0 .../time_h/{17-1.c => 17-1-buildonly.c} | 0 .../time_h/{18-1.c => 18-1-buildonly.c} | 0 .../time_h/{19-1.c => 19-1-buildonly.c} | 0 .../definitions/time_h/{2-1.c => 2-1-buildonly.c} | 0 .../time_h/{20-1.c => 20-1-buildonly.c} | 0 .../time_h/{21-1.c => 21-1-buildonly.c} | 0 .../time_h/{22-1.c => 22-1-buildonly.c} | 0 .../time_h/{23-1.c => 23-1-buildonly.c} | 0 .../time_h/{24-1.c => 24-1-buildonly.c} | 0 .../time_h/{25-1.c => 25-1-buildonly.c} | 0 .../time_h/{26-1.c => 26-1-buildonly.c} | 0 .../time_h/{27-1.c => 27-1-buildonly.c} | 0 .../time_h/{28-1.c => 28-1-buildonly.c} | 0 .../time_h/{29-1.c => 29-1-buildonly.c} | 0 .../definitions/time_h/{3-1.c => 3-1-buildonly.c} | 0 .../definitions/time_h/{3-2.c => 3-2-buildonly.c} | 0 .../definitions/time_h/{3-3.c => 3-3-buildonly.c} | 0 .../definitions/time_h/{3-4.c => 3-4-buildonly.c} | 0 .../time_h/{30-1.c => 30-1-buildonly.c} | 0 .../time_h/{31-1.c => 31-1-buildonly.c} | 0 .../time_h/{32-1.c => 32-1-buildonly.c} | 0 .../time_h/{33-1.c => 33-1-buildonly.c} | 0 .../time_h/{34-1.c => 34-1-buildonly.c} | 0 .../time_h/{35-1.c => 35-1-buildonly.c} | 0 .../time_h/{35-2.c => 35-2-buildonly.c} | 0 .../time_h/{35-3.c => 35-3-buildonly.c} | 0 .../definitions/time_h/{4-1.c => 4-1-buildonly.c} | 0 .../definitions/time_h/{5-1.c => 5-1-buildonly.c} | 0 .../definitions/time_h/{6-1.c => 6-1-buildonly.c} | 0 .../definitions/time_h/{6-2.c => 6-2-buildonly.c} | 0 .../definitions/time_h/{6-3.c => 6-3-buildonly.c} | 0 .../definitions/time_h/{7-1.c => 7-1-buildonly.c} | 0 .../definitions/time_h/{7-2.c => 7-2-buildonly.c} | 0 .../definitions/time_h/{7-3.c => 7-3-buildonly.c} | 0 .../definitions/time_h/{7-4.c => 7-4-buildonly.c} | 0 .../definitions/time_h/{7-5.c => 7-5-buildonly.c} | 0 .../definitions/time_h/{8-1.c => 8-1-buildonly.c} | 0 .../definitions/time_h/{9-1.c => 9-1-buildonly.c} | 0 .../unistd_h/{1-1.c => 1-1-buildonly.c} | 0 .../unistd_h/{2-1.c => 2-1-buildonly.c} | 0 .../conformance/interfaces/Makefile | 13 + .../conformance/interfaces/aio_cancel/LDLIBS | 1 + .../conformance/interfaces/aio_fsync/2-1.c | 15 +- .../conformance/interfaces/aio_read/1-1.c | 10 +- .../conformance/interfaces/aio_read/15-1.c | 5 +- .../conformance/interfaces/aio_read/9-1.c | 11 +- .../conformance/interfaces/aio_return/2-1.c | 11 +- .../conformance/interfaces/aio_return/4-1.c | 11 +- .../conformance/interfaces/aio_suspend/1-1.c | 11 +- .../conformance/interfaces/aio_suspend/4-1.c | 11 +- .../conformance/interfaces/aio_suspend/6-1.c | 11 +- .../conformance/interfaces/aio_suspend/7-1.c | 11 +- .../conformance/interfaces/aio_suspend/8-1.c | 11 +- .../conformance/interfaces/aio_suspend/9-1.c | 11 +- .../conformance/interfaces/aio_write/7-1.c | 11 +- .../interfaces/clock_getcpuclockid/LDLIBS | 1 + .../conformance/interfaces/clock_getres/LDLIBS | 1 + .../conformance/interfaces/clock_gettime/LDLIBS | 1 + .../conformance/interfaces/clock_nanosleep/LDLIBS | 1 + .../conformance/interfaces/clock_settime/LDLIBS | 1 + .../conformance/interfaces/fork/19-1.c | 19 +- .../conformance/interfaces/fork/22-1.c | 4 - .../conformance/interfaces/fork/LDLIBS | 1 + .../conformance/interfaces/getpid/1-1.c | 10 - .../conformance/interfaces/getpid/LDLIBS | 1 + .../conformance/interfaces/killpg/1-2.c | 10 + .../conformance/interfaces/lio_listio/1-1.c | 12 +- .../conformance/interfaces/lio_listio/10-1.c | 12 +- .../conformance/interfaces/lio_listio/11-1.c | 12 +- .../conformance/interfaces/lio_listio/12-1.c | 10 +- .../conformance/interfaces/lio_listio/13-1.c | 11 +- .../conformance/interfaces/lio_listio/14-1.c | 12 +- .../conformance/interfaces/lio_listio/15-1.c | 12 +- .../conformance/interfaces/lio_listio/16-1.c | 10 +- .../conformance/interfaces/lio_listio/17-1.c | 8 +- .../conformance/interfaces/lio_listio/18-1.c | 11 +- .../conformance/interfaces/lio_listio/19-1.c | 10 +- .../conformance/interfaces/lio_listio/2-1.c | 12 +- .../conformance/interfaces/lio_listio/3-1.c | 12 +- .../conformance/interfaces/lio_listio/4-1.c | 12 +- .../conformance/interfaces/lio_listio/7-1.c | 14 +- .../conformance/interfaces/lio_listio/9-1.c | 13 +- .../conformance/interfaces/mlockall/LDLIBS | 1 + .../conformance/interfaces/mmap/11-2.c | 11 +- .../conformance/interfaces/mmap/11-3.c | 12 +- .../conformance/interfaces/mmap/6-1.c | 13 +- .../conformance/interfaces/mmap/6-2.c | 13 +- .../conformance/interfaces/mmap/6-3.c | 13 +- .../conformance/interfaces/mmap/6-5.c | 2 +- .../conformance/interfaces/mmap/6-6.c | 2 +- .../conformance/interfaces/mmap/LDLIBS | 1 + .../conformance/interfaces/mq_close/LDLIBS | 1 + .../conformance/interfaces/mq_getattr/LDLIBS | 1 + .../conformance/interfaces/mq_notify/2-1.c | 7 +- .../conformance/interfaces/mq_notify/3-1.c | 7 +- .../conformance/interfaces/mq_notify/5-1.c | 7 +- .../conformance/interfaces/mq_notify/9-1.c | 9 +- .../conformance/interfaces/mq_notify/LDLIBS | 1 + .../conformance/interfaces/mq_open/16-1.c | 11 +- .../conformance/interfaces/mq_open/2-1.c | 11 +- .../conformance/interfaces/mq_open/7-2.c | 11 +- .../conformance/interfaces/mq_open/8-2.c | 11 +- .../conformance/interfaces/mq_open/9-2.c | 11 +- .../conformance/interfaces/mq_open/LDLIBS | 1 + .../conformance/interfaces/mq_receive/11-1.c | 12 +- .../conformance/interfaces/mq_receive/13-1.c | 15 +- .../conformance/interfaces/mq_receive/LDLIBS | 1 + .../conformance/interfaces/mq_send/LDLIBS | 1 + .../conformance/interfaces/mq_setattr/LDLIBS | 1 + .../conformance/interfaces/mq_timedreceive/18-1.c | 11 +- .../conformance/interfaces/mq_timedreceive/18-2.c | 13 +- .../conformance/interfaces/mq_timedreceive/5-2.c | 11 +- .../conformance/interfaces/mq_timedreceive/5-3.c | 13 +- .../conformance/interfaces/mq_timedreceive/8-1.c | 11 +- .../conformance/interfaces/mq_timedreceive/LDLIBS | 1 + .../conformance/interfaces/mq_timedsend/LDLIBS | 1 + .../conformance/interfaces/mq_unlink/LDLIBS | 1 + .../conformance/interfaces/munmap/1-1.c | 11 +- .../conformance/interfaces/munmap/1-2.c | 11 +- .../conformance/interfaces/nanosleep/LDLIBS | 1 + .../conformance/interfaces/pthread_atfork/LDLIBS | 1 + .../interfaces/pthread_attr_destroy/LDLIBS | 1 + .../interfaces/pthread_attr_getdetachstate/LDLIBS | 1 + .../interfaces/pthread_attr_getinheritsched/LDLIBS | 1 + .../interfaces/pthread_attr_getschedparam/LDLIBS | 1 + .../interfaces/pthread_attr_getschedpolicy/LDLIBS | 1 + .../interfaces/pthread_attr_getscope/LDLIBS | 1 + .../interfaces/pthread_attr_getstack/LDLIBS | 1 + .../interfaces/pthread_attr_getstacksize/LDLIBS | 1 + .../interfaces/pthread_attr_init/LDLIBS | 1 + .../interfaces/pthread_attr_setdetachstate/LDLIBS | 1 + .../interfaces/pthread_attr_setinheritsched/LDLIBS | 1 + .../interfaces/pthread_attr_setschedparam/LDLIBS | 1 + .../interfaces/pthread_attr_setschedpolicy/LDLIBS | 1 + .../interfaces/pthread_attr_setscope/LDLIBS | 1 + .../interfaces/pthread_attr_setstack/LDLIBS | 1 + .../interfaces/pthread_attr_setstacksize/LDLIBS | 1 + .../interfaces/pthread_barrier_destroy/LDLIBS | 1 + .../interfaces/pthread_barrier_init/LDLIBS | 1 + .../interfaces/pthread_barrier_wait/LDLIBS | 1 + .../interfaces/pthread_barrierattr_destroy/LDLIBS | 1 + .../pthread_barrierattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_barrierattr_init/LDLIBS | 1 + .../pthread_barrierattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_cancel/LDLIBS | 1 + .../interfaces/pthread_cleanup_pop/LDLIBS | 1 + .../interfaces/pthread_cleanup_push/LDLIBS | 1 + .../interfaces/pthread_cond_broadcast/LDLIBS | 1 + .../interfaces/pthread_cond_broadcast/testfrmw.c | 2 +- .../interfaces/pthread_cond_destroy/LDLIBS | 1 + .../interfaces/pthread_cond_destroy/testfrmw.c | 2 +- .../interfaces/pthread_cond_init/LDLIBS | 1 + .../interfaces/pthread_cond_signal/LDLIBS | 1 + .../interfaces/pthread_cond_timedwait/LDLIBS | 1 + .../interfaces/pthread_cond_wait/LDLIBS | 1 + .../interfaces/pthread_condattr_destroy/LDLIBS | 1 + .../interfaces/pthread_condattr_getclock/LDLIBS | 1 + .../interfaces/pthread_condattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_condattr_init/LDLIBS | 1 + .../interfaces/pthread_condattr_setclock/LDLIBS | 1 + .../interfaces/pthread_condattr_setpshared/LDLIBS | 1 + .../pthread_create/{15-1.c => 15-1-buildonly.c} | 0 .../conformance/interfaces/pthread_create/LDLIBS | 1 + .../interfaces/pthread_create/testfrmw.c | 6 +- .../conformance/interfaces/pthread_detach/LDLIBS | 1 + .../conformance/interfaces/pthread_equal/LDLIBS | 1 + .../conformance/interfaces/pthread_exit/LDLIBS | 1 + .../interfaces/pthread_getcpuclockid/LDLIBS | 1 + .../interfaces/pthread_getschedparam/1-3.c | 3 - .../interfaces/pthread_getschedparam/LDLIBS | 1 + .../interfaces/pthread_getspecific/LDLIBS | 1 + .../conformance/interfaces/pthread_join/LDLIBS | 1 + .../conformance/interfaces/pthread_join/testfrmw.c | 2 +- .../interfaces/pthread_key_create/LDLIBS | 1 + .../pthread_key_create/speculative/5-1.c | 9 +- .../interfaces/pthread_key_delete/LDLIBS | 1 + .../conformance/interfaces/pthread_kill/LDLIBS | 1 + .../interfaces/pthread_mutex_destroy/LDLIBS | 1 + .../interfaces/pthread_mutex_getprioceiling/LDLIBS | 1 + .../interfaces/pthread_mutex_init/LDLIBS | 1 + .../interfaces/pthread_mutex_lock/LDLIBS | 1 + .../interfaces/pthread_mutex_timedlock/LDLIBS | 1 + .../interfaces/pthread_mutex_trylock/LDLIBS | 1 + .../interfaces/pthread_mutex_unlock/LDLIBS | 1 + .../interfaces/pthread_mutexattr_destroy/LDLIBS | 1 + .../pthread_mutexattr_getprioceiling/LDLIBS | 1 + .../pthread_mutexattr_getprotocol/LDLIBS | 1 + .../interfaces/pthread_mutexattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_mutexattr_gettype/LDLIBS | 1 + .../interfaces/pthread_mutexattr_init/LDLIBS | 1 + .../pthread_mutexattr_setprioceiling/LDLIBS | 1 + .../pthread_mutexattr_setprotocol/LDLIBS | 1 + .../interfaces/pthread_mutexattr_setpshared/LDLIBS | 1 + .../interfaces/pthread_mutexattr_settype/LDLIBS | 1 + .../conformance/interfaces/pthread_once/3-1.c | 7 +- .../pthread_once/{4-1.c => 4-1-buildonly.c} | 0 .../conformance/interfaces/pthread_once/6-1.c | 148 +++++----- .../conformance/interfaces/pthread_once/LDLIBS | 1 + .../interfaces/pthread_rwlock_destroy/LDLIBS | 1 + .../interfaces/pthread_rwlock_init/LDLIBS | 1 + .../interfaces/pthread_rwlock_rdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_timedrdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_timedwrlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_tryrdlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_trywrlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_unlock/LDLIBS | 1 + .../interfaces/pthread_rwlock_wrlock/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_destroy/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_getpshared/2-1.c | 9 +- .../pthread_rwlockattr_getpshared/LDLIBS | 1 + .../interfaces/pthread_rwlockattr_init/LDLIBS | 1 + .../pthread_rwlockattr_setpshared/LDLIBS | 1 + .../conformance/interfaces/pthread_self/LDLIBS | 1 + .../interfaces/pthread_setcancelstate/LDLIBS | 1 + .../interfaces/pthread_setcanceltype/LDLIBS | 1 + .../interfaces/pthread_setschedparam/LDLIBS | 1 + .../interfaces/pthread_setschedprio/LDLIBS | 1 + .../interfaces/pthread_setspecific/LDLIBS | 1 + .../conformance/interfaces/pthread_sigmask/LDLIBS | 1 + .../interfaces/pthread_spin_destroy/LDLIBS | 1 + .../conformance/interfaces/pthread_spin_init/2-1.c | 10 +- .../conformance/interfaces/pthread_spin_init/2-2.c | 11 +- .../interfaces/pthread_spin_init/LDLIBS | 1 + .../interfaces/pthread_spin_lock/LDLIBS | 1 + .../interfaces/pthread_spin_trylock/LDLIBS | 1 + .../interfaces/pthread_spin_unlock/LDLIBS | 1 + .../interfaces/pthread_testcancel/LDLIBS | 1 + .../conformance/interfaces/sched_setparam/25-2.c | 9 +- .../conformance/interfaces/sched_setparam/25-3.c | 14 +- .../conformance/interfaces/sched_setparam/25-4.c | 9 + .../conformance/interfaces/sched_setparam/LDLIBS | 1 + .../interfaces/sched_setscheduler/LDLIBS | 1 + .../conformance/interfaces/sched_yield/1-1.c | 44 +--- .../conformance/interfaces/sched_yield/LDLIBS | 1 + .../conformance/interfaces/sem_close/LDLIBS | 1 + .../conformance/interfaces/sem_destroy/LDLIBS | 1 + .../conformance/interfaces/sem_getvalue/2-2.c | 4 - .../conformance/interfaces/sem_getvalue/LDLIBS | 1 + .../sem_getvalue/{coverage.c => coverage.txt} | 0 .../conformance/interfaces/sem_init/LDLIBS | 1 + .../conformance/interfaces/sem_init/testfrmw.c | 2 +- .../conformance/interfaces/sem_open/LDLIBS | 1 + .../conformance/interfaces/sem_post/LDLIBS | 1 + .../conformance/interfaces/sem_timedwait/3-1.c | 10 +- .../conformance/interfaces/sem_timedwait/7-1.c | 12 +- .../conformance/interfaces/sem_timedwait/LDLIBS | 1 + .../conformance/interfaces/sem_unlink/7-1.c | 3 - .../conformance/interfaces/sem_unlink/9-1.c | 3 - .../conformance/interfaces/sem_unlink/LDLIBS | 1 + .../conformance/interfaces/sem_wait/LDLIBS | 1 + .../conformance/interfaces/shm_open/LDLIBS | 1 + .../conformance/interfaces/shm_unlink/LDLIBS | 1 + .../conformance/interfaces/sigaction/16-19.c | 7 - .../conformance/interfaces/sigaction/18-19.c | 4 - .../conformance/interfaces/sigaction/19-19.c | 4 - .../conformance/interfaces/sigaction/23-19.c | 3 - .../conformance/interfaces/sigaction/28-19.c | 4 - .../conformance/interfaces/sigaction/LDLIBS | 1 + .../sigaddset/{1-core-buildonly.c => 1-core.c} | 0 .../conformance/interfaces/sigaddset/4-1.sh | 2 +- .../conformance/interfaces/sigaddset/4-2.sh | 2 +- .../conformance/interfaces/sigaddset/4-3.sh | 2 +- .../conformance/interfaces/sigaddset/4-4.sh | 2 +- .../interfaces/sigaddset/4-core-buildonly.c | 77 ----- .../conformance/interfaces/sigaddset/4-core.c | 77 +++++ .../interfaces/sigaltstack/{9-buildonly.c => 9.c} | 0 .../sigdelset/{1-core-buildonly.c => 1-core.c} | 0 .../sigdelset/{4-core-buildonly.c => 4-core.c} | 0 .../sighold/{3-core-buildonly.c => 3-core.c} | 0 .../sigignore/{5-core-buildonly.c => 5-core.c} | 0 .../sigismember/{5-core-buildonly.c => 5-core.c} | 0 .../conformance/interfaces/sigpause/LDLIBS | 1 + .../sigprocmask/{17-core-buildonly.c => 17-core.c} | 0 .../conformance/interfaces/sigrelse/3-1.sh | 2 +- .../conformance/interfaces/sigrelse/3-2.sh | 2 +- .../conformance/interfaces/sigrelse/3-3.sh | 2 +- .../conformance/interfaces/sigrelse/3-4.sh | 2 +- .../sigrelse/{3-core-buildonly.c => 3-core.c} | 0 .../conformance/interfaces/sigtimedwait/4-1.c | 3 +- .../conformance/interfaces/sigwait/LDLIBS | 1 + .../conformance/interfaces/timer_create/LDLIBS | 1 + .../conformance/interfaces/timer_delete/LDLIBS | 1 + .../conformance/interfaces/timer_getoverrun/4-1.sh | 2 +- .../conformance/interfaces/timer_getoverrun/5-1.sh | 2 +- .../conformance/interfaces/timer_getoverrun/LDLIBS | 1 + .../interfaces/timer_getoverrun/speculative/6-2.c | 7 +- .../interfaces/timer_getoverrun/speculative/6-3.c | 5 +- .../conformance/interfaces/timer_gettime/LDLIBS | 1 + .../conformance/interfaces/timer_settime/4-1.sh | 2 +- .../conformance/interfaces/timer_settime/LDLIBS | 1 + .../interfaces/timer_settime/speculative/12-2.c | 5 +- testcases/open_posix_testsuite/exec-func.sh | 8 - testcases/open_posix_testsuite/execute.sh | 308 -------------------- testcases/open_posix_testsuite/functional/Makefile | 13 + .../open_posix_testsuite/functional/mqueues/LDLIBS | 1 + .../functional/mqueues/Makefile | 13 - .../open_posix_testsuite/functional/mqueues/run.sh | 50 ---- .../functional/mqueues/send_rev_1.c | 78 +++--- .../functional/semaphores/LDLIBS | 1 + .../functional/semaphores/Makefile | 15 - .../functional/semaphores/run.sh | 50 ---- .../functional/semaphores/sem_conpro.c | 1 - .../functional/semaphores/sem_lock.c | 40 ++- .../functional/semaphores/sem_philosopher.c | 1 - .../functional/semaphores/sem_readerwriter.c | 1 - .../functional/threads/Makefile | 21 +- .../functional/threads/Makefile.inc | 8 - .../functional/threads/condvar/LDLIBS | 1 + .../functional/threads/condvar/Makefile | 17 - .../functional/threads/pi_test/CFLAGS | 1 + .../functional/threads/pi_test/LDLIBS | 1 + .../functional/threads/pi_test/Makefile | 10 - .../functional/threads/pi_test/pitest-1.c | 20 +- .../functional/threads/pi_test/pitest-2.c | 17 +- .../functional/threads/pi_test/pitest-3.c | 9 +- .../functional/threads/pi_test/pitest-4.c | 15 +- .../functional/threads/pi_test/pitest-5.c | 21 +- .../functional/threads/pi_test/pitest-6.c | 19 +- .../functional/threads/pi_test/run.sh | 46 --- .../functional/threads/robust_test/CFLAGS | 1 + .../functional/threads/robust_test/LDLIBS | 1 + .../functional/threads/robust_test/Makefile | 10 - .../functional/threads/robust_test/robust1-mode2.c | 17 +- .../functional/threads/robust_test/robust1-sun.c | 18 +- .../functional/threads/robust_test/robust2-mode2.c | 17 +- .../functional/threads/robust_test/robust2-sun.c | 18 +- .../functional/threads/robust_test/robust3-mode2.c | 19 +- .../functional/threads/robust_test/run.sh | 31 -- .../open_posix_testsuite/functional/threads/run.sh | 15 - .../functional/threads/schedule/LDLIBS | 1 + .../functional/threads/schedule/Makefile | 15 - .../functional/timers/Makefile | 14 - .../functional/timers/clocks/Makefile | 23 -- .../open_posix_testsuite/functional/timers/run.sh | 56 ---- .../functional/timers/timers/Makefile | 22 -- testcases/open_posix_testsuite/include/posixtest.h | 7 + testcases/open_posix_testsuite/locate-test | 121 -------- .../scripts/generate-makefiles.sh | 271 +++++++++++++++++ testcases/open_posix_testsuite/scripts/locate-test | 101 +++++++ .../open_posix_testsuite/scripts/print-prefix.sh | 10 + testcases/open_posix_testsuite/stress/Makefile | 13 + .../open_posix_testsuite/stress/mqueues/LDLIBS | 1 + .../open_posix_testsuite/stress/mqueues/Makefile | 13 - .../open_posix_testsuite/stress/mqueues/run.sh | 50 ---- .../open_posix_testsuite/stress/semaphores/LDLIBS | 1 + .../stress/semaphores/Makefile | 12 - .../open_posix_testsuite/stress/semaphores/run.sh | 48 --- .../open_posix_testsuite/stress/threads/LDLIBS | 1 + .../stress/threads/fork/Makefile | 15 - .../stress/threads/fork/s-c1.c | 1 - .../stress/threads/pthread_cancel/Makefile | 15 - .../stress/threads/pthread_cond_init/Makefile | 15 - .../stress/threads/pthread_cond_timedwait/Makefile | 27 -- .../stress/threads/pthread_create/Makefile | 15 - .../stress/threads/pthread_exit/Makefile | 15 - .../stress/threads/pthread_getschedparam/Makefile | 15 - .../stress/threads/pthread_kill/Makefile | 15 - .../stress/threads/pthread_mutex_init/Makefile | 15 - .../stress/threads/pthread_mutex_lock/Makefile | 15 - .../stress/threads/pthread_mutex_trylock/Makefile | 15 - .../stress/threads/pthread_once/Makefile | 15 - .../stress/threads/pthread_self/Makefile | 15 - .../stress/threads/sem_getvalue/Makefile | 15 - .../stress/threads/sem_init/Makefile | 15 - .../stress/threads/sem_open/Makefile | 15 - testcases/open_posix_testsuite/t0.c | 97 ------ testcases/open_posix_testsuite/tools/Makefile | 20 ++ testcases/open_posix_testsuite/tools/t0.c | 87 ++++++ 596 files changed, 2018 insertions(+), 2394 deletions(-) create mode 100644 testcases/open_posix_testsuite/CFLAGS copy testcases/{ballista/ballista/compile/errorLog => open_posix_testsuite/LDLIBS} (100%) create mode 100644 testcases/open_posix_testsuite/bin/Makefile create mode 100755 testcases/open_posix_testsuite/bin/run-tests.sh create mode 100644 testcases/open_posix_testsuite/conformance/Makefile create mode 100644 testcases/open_posix_testsuite/conformance/behavior/Makefile create mode 100644 testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS create mode 100644 testcases/open_posix_testsuite/conformance/definitions/Makefile rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{1-2.c => 1-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/aio_h/{3-1.c => 3-1-buildonly.c} (100%) create mode 100644 testcases/open_posix_testsuite/conformance/definitions/aio_h/LDLIBS rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/errno_h/{2-1.c => 2-1-buildonly.c} (100%) create mode 100644 testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1-buildonly.c delete mode 100644 testcases/open_posix_testsuite/conformance/definitions/errno_h/3-1.c rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{10.c => 10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{2-1.c => 2-1-buildonly.c} (100%) create mode 100644 testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2-buildonly.c delete mode 100644 testcases/open_posix_testsuite/conformance/definitions/pthread_h/2-2.c rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-10.c => 3-10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-11.c => 3-11-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-12.c => 3-12-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-13.c => 3-13-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-2.c => 3-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-3.c => 3-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-4.c => 3-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-5.c => 3-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-6.c => 3-6-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-7.c => 3-7-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-8.c => 3-8-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{3-9.c => 3-9-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{5-1.c => 5-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{6-1.c => 6-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{7-1.c => 7-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/pthread_h/{9-1.c => 9-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{11-1.c => 11-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{12-1.c => 12-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{13-1.c => 13-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{19-1.c => 19-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{4-1.c => 4-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-1.c => 8-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-2.c => 8-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-3.c => 8-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/sched_h/{8-4.c => 8-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{1-1.c => 1-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{14-1.c => 14-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{15-1.c => 15-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{16-1.c => 16-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{17-1.c => 17-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{18-1.c => 18-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-1.c => 2-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-2.c => 2-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-3.c => 2-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{2-4.c => 2-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{20-1.c => 20-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{21-1.c => 21-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-1.c => 22-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-10.c => 22-10-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-11.c => 22-11-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-12.c => 22-12-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-13.c => 22-13-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-14.c => 22-14-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-15.c => 22-15-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-16.c => 22-16-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-17.c => 22-17-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-18.c => 22-18-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-19.c => 22-19-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-2.c => 22-2-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-20.c => 22-20-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-21.c => 22-21-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-22.c => 22-22-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-23.c => 22-23-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-24.c => 22-24-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-25.c => 22-25-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-26.c => 22-26-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-27.c => 22-27-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-28.c => 22-28-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-29.c => 22-29-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-3.c => 22-3-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-30.c => 22-30-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-31.c => 22-31-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-32.c => 22-32-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-33.c => 22-33-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-34.c => 22-34-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-35.c => 22-35-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-36.c => 22-36-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-37.c => 22-37-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-38.c => 22-38-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-39.c => 22-39-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-4.c => 22-4-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-40.c => 22-40-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-5.c => 22-5-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-6.c => 22-6-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-7.c => 22-7-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-8.c => 22-8-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{22-9.c => 22-9-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{24-1.c => 24-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{25-1.c => 25-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{27-1.c => 27-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{28-1.c => 28-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{29-1.c => 29-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{3-1.c => 3-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{30-1.c => 30-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{31-1.c => 31-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{32-1.c => 32-1-buildonly.c} (100%) rename testcases/open_posix_testsuite/conformance/definitions/signal_h/{33-1.c => 33-1-buildonly.c} (100%) rename testcases/open_p... [truncated message content] |
From: Garrett C. <ris...@li...> - 2010-07-10 17:55:47
|
The branch, pu, has been updated via 5ef445ba30891e32bdd5c032bb36e1b8e7ceaf8b (commit) from 5f103ec789dbe243401d1f3ce688a4fae4f99095 (commit) - Log ----------------------------------------------------------------- commit 5ef445ba30891e32bdd5c032bb36e1b8e7ceaf8b Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 06:52:48 2010 -0700 Align the summary output stats. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/bin/run-tests.sh | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/testcases/open_posix_testsuite/bin/run-tests.sh b/testcases/open_posix_testsuite/bin/run-tests.sh index 3b044d4..6d98b08 100755 --- a/testcases/open_posix_testsuite/bin/run-tests.sh +++ b/testcases/open_posix_testsuite/bin/run-tests.sh @@ -28,14 +28,14 @@ run_test_loop() { done cat <<EOF -***************** +******************* SUMMARY -***************** -PASS $NUM_PASS -FAIL $NUM_FAIL -***************** -TOTAL $NUM_TESTS -***************** +******************* +`printf "PASS\t\t%3d" $NUM_PASS` +`printf "FAIL\t\t%3d" $NUM_FAIL` +******************* +`printf "TOTAL\t\t%3d" $NUM_TESTS` +******************* EOF } hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 17:43:15
|
The branch, pu, has been updated via 5f103ec789dbe243401d1f3ce688a4fae4f99095 (commit) from b236795c0122ceb96f69a37569dc63b405c4ff96 (commit) - Log ----------------------------------------------------------------- commit 5f103ec789dbe243401d1f3ce688a4fae4f99095 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 06:37:31 2010 -0700 Be quiet when setting up and exec'ing run.sh though. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../scripts/generate-makefiles.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index bcef2a0..41bb387 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -142,8 +142,8 @@ install: \$(INSTALL_DIR) run.sh done test: run.sh - chmod +x run.sh - ./run.sh + @chmod +x run.sh + @./run.sh \$(INSTALL_DIR): mkdir -p \$@ hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-10 17:34:21
|
The branch, pu, has been updated via b236795c0122ceb96f69a37569dc63b405c4ff96 (commit) from 6a905a25a1bfe020612f7e607a9309a5e7c737d3 (commit) - Log ----------------------------------------------------------------- commit b236795c0122ceb96f69a37569dc63b405c4ff96 Author: Garrett Cooper <yan...@gm...> Date: Fri Jul 2 06:28:24 2010 -0700 Generate run.sh only once, and exec run.sh in test again. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../scripts/generate-makefiles.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index abddd48..bcef2a0 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -142,6 +142,8 @@ install: \$(INSTALL_DIR) run.sh done test: run.sh + chmod +x run.sh + ./run.sh \$(INSTALL_DIR): mkdir -p \$@ @@ -150,7 +152,7 @@ EOF fi - if [ "$tests" != "" ]; then + if [ "$tests" != "" ] && ! grep -q '^run.sh' "$makefile.3"; then cat >> "$makefile.3" <<EOF run.sh: @echo '#/bin/sh' > \$@ hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-07 16:47:12
|
The branch, pu, has been updated via 6a905a25a1bfe020612f7e607a9309a5e7c737d3 (commit) via 6fefad532e57ea50f0853e8f17df7a1eb278ce89 (commit) via d10869fcc17936c97060d46609dee57d577fcab0 (commit) via 9a0582ebe6c9671842ad8589c23066c517bc42c7 (commit) via 81ecf3a86fdfa6ec4010c8150337a29a17a91bb1 (commit) from f6955771fdd1abbb2cd75abc226906022ae05ea4 (commit) - Log ----------------------------------------------------------------- commit 6a905a25a1bfe020612f7e607a9309a5e7c737d3 Author: Garrett Cooper <yan...@gm...> Date: Wed Jul 7 09:45:36 2010 -0700 Prefix test output with the path and don't truncate the logfile. Signed-off-by: Garrett Cooper <yan...@gm...> commit 6fefad532e57ea50f0853e8f17df7a1eb278ce89 Author: Garrett Cooper <yan...@gm...> Date: Wed Jul 7 09:45:11 2010 -0700 Install run.sh, and remove some unneeded bits. Signed-off-by: Garrett Cooper <yan...@gm...> commit d10869fcc17936c97060d46609dee57d577fcab0 Author: Garrett Cooper <yan...@gm...> Date: Wed Jul 7 09:43:46 2010 -0700 Move compilation and installation to appropriate Makefiles. Signed-off-by: Garrett Cooper <yan...@gm...> commit 9a0582ebe6c9671842ad8589c23066c517bc42c7 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 10:46:21 2010 -0700 Bye useless script. Signed-off-by: Garrett Cooper <yan...@gm...> commit 81ecf3a86fdfa6ec4010c8150337a29a17a91bb1 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 10:37:58 2010 -0700 Don't use shift in generate_makefiles. dash gets cranky if you try and shift too many times, and part of the problem might be with how it interprets stack data in $# (ash in FreeBSD, and bash don't have this issue). Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/Makefile | 15 +- testcases/open_posix_testsuite/bin/Makefile | 22 ++ testcases/open_posix_testsuite/bin/run-tests.sh | 19 +- testcases/open_posix_testsuite/scripts/execute.sh | 308 -------------------- .../scripts/generate-makefiles.sh | 19 +- testcases/open_posix_testsuite/tools/Makefile | 17 +- 6 files changed, 59 insertions(+), 341 deletions(-) create mode 100644 testcases/open_posix_testsuite/bin/Makefile delete mode 100755 testcases/open_posix_testsuite/scripts/execute.sh diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index ca97ad4..e90f5e8 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -52,12 +52,9 @@ generate-makefiles: distclean-makefiles @env top_srcdir=$(top_srcdir) \ $(top_srcdir)/scripts/generate-makefiles.sh -install: conformance-install functional-install stress-install - @install -m 0755 scripts/run-tests.sh \ - $(DESTDIR)/`$(SHELL) $(top_srcdir)/scripts/print-prefix.sh`/. +install: bin-install conformance-install functional-install stress-install test: conformance-test functional-test stress-test - @ln tools/t0 bin/t0 # Test build and execution targets. conformance-all: $(CRITICAL_CONFORMANCE_MAKEFILE) @@ -68,6 +65,7 @@ conformance-install: @$(MAKE) -C conformance install conformance-test: + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @$(TEST_MAKE) -C conformance test functional-all: $(CRITICAL_FUNCTIONAL_MAKEFILE) @@ -78,6 +76,7 @@ functional-install: @$(MAKE) -C functional install functional-test: + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @$(TEST_MAKE) -C functional test stress-all: $(CRITICAL_STRESS_MAKEFILE) @@ -88,14 +87,16 @@ stress-install: @$(MAKE) -C stress install stress-test: + @rm -f `if echo "$(LOGFILE)" | grep -q '^/'; then echo "$(LOGFILE)"; else echo "\`pwd\`/$(LOGFILE)"; fi`.$@ @$(TEST_MAKE) -C stress test +# Tools build and install targets. +bin-install: + @$(MAKE) -C bin install + tools-all: @$(MAKE) -C tools all -tools-install: - @$(MAKE) -C tools install - $(CRITICAL_MAKEFILES): \ $(top_srcdir)/scripts/generate-makefiles.sh \ $(top_srcdir)/CFLAGS \ diff --git a/testcases/open_posix_testsuite/bin/Makefile b/testcases/open_posix_testsuite/bin/Makefile new file mode 100644 index 0000000..1bbeac1 --- /dev/null +++ b/testcases/open_posix_testsuite/bin/Makefile @@ -0,0 +1,22 @@ +# +# Read COPYING for licensing details. +# +# Garrett Cooper, July 2010 +# + +top_srcdir?= .. + +srcdir= $(top_srcdir)/bin + +clean: + @rm -f t0.val + +install: clean + @set -e; \ + INSTALL_DIR=`$(SHELL) $(top_srcdir)/scripts/print-prefix.sh`/bin/; \ + for i in `ls *`; do \ + install -m 0755 $$i $(DESTDIR)/$$INSTALL_DIR/. ;\ + done + + + diff --git a/testcases/open_posix_testsuite/bin/run-tests.sh b/testcases/open_posix_testsuite/bin/run-tests.sh index e3b676e..3b044d4 100755 --- a/testcases/open_posix_testsuite/bin/run-tests.sh +++ b/testcases/open_posix_testsuite/bin/run-tests.sh @@ -16,7 +16,7 @@ NUM_TESTS=0 run_test_loop() { - for t in "$@"; do + for t in $*; do if run_test "$t"; then NUM_PASS=`expr $NUM_PASS + 1` @@ -42,9 +42,9 @@ EOF run_test() { - testname=`echo "$1" | sed -e 's,.run-test$,,'` + testname="$TEST_PATH/${1%.*}" - complog=$testname.log.$$ + complog=`basename $testname`.log.$$ $SHELL -c "$SCRIPT_DIR/t0 $TIMEOUT_VAL ./$1" > $complog 2>&1 @@ -72,8 +72,8 @@ run_test() { *) msg="SIGNALED" esac - (echo "$testname: execution: $msg: Output: "; cat $complog) >> \ - "${LOGFILE}" + echo "$testname: execution: $msg: Output: " >> "${LOGFILE}" + cat $complog >> "${LOGFILE}" echo "$testname: execution: $msg " fi @@ -84,19 +84,22 @@ run_test() { } # SETUP -if ! echo > "$LOGFILE"; then +if [ -w "$LOGFILE" ] || echo "" > "$LOGFILE"; then + : +else echo >&2 "ERROR: $LOGFILE not writable" exit 1 fi SCRIPT_DIR=`dirname "$0"` +TEST_PATH=$1; shift T0_VAL=$SCRIPT_DIR/t0.val if [ ! -f "$T0_VAL" ]; then $SCRIPT_DIR/t0 0 echo $? > "$T0_VAL" fi -if TIMEOUT_RET=$(cat "$T0_VAL"); then +if TIMEOUT_RET=`cat "$T0_VAL"`; then TIMEOUT_VAL=${TIMEOUT_VAL:=240} if [ -f test_defs ] ; then @@ -105,7 +108,7 @@ if TIMEOUT_RET=$(cat "$T0_VAL"); then trap '' INT # RUN - run_test_loop "$@" + run_test_loop $* exit $NUM_FAIL else diff --git a/testcases/open_posix_testsuite/scripts/execute.sh b/testcases/open_posix_testsuite/scripts/execute.sh deleted file mode 100755 index 03d39ea..0000000 --- a/testcases/open_posix_testsuite/scripts/execute.sh +++ /dev/null @@ -1,308 +0,0 @@ -#!/bin/sh - -# Copyright (c) 2005, Wipro Technologies Ltd. All rights reserved. -# Created by: Dr. B. Thangaraju <bal...@wi...> -# Prashant P Yendigeri <pra...@wi...> -# This file is licensed under the GPL license. For the full content -# of this license, see the COPYING file at the top level of this -# source tree. -# -# This execute.sh script executes executables and format the results -# including time statistics like time taken to execute OPTS. -# This script doesn't use 'make' or 'gcc'. This script will be useful -# to run test cases on embedded target. - - -# Run all the tests in the conformance area. - -# Function to calculate starting time -start_func() -{ - START_DATE=`date` - START_HOUR=`date +%H` - START_MIN=`date +%M` - START_SEC=`date +%S` - - if [ $START_HOUR -eq 0 ] - then - TOTAL_START_HOUR=0 - - else - TOTAL_START_HOUR=`expr $START_HOUR '*' 3600` - fi - - if [ $START_MIN -eq 0 ] - then - TOTAL_START_MIN=0 - else - TOTAL_START_MIN=`expr $START_MIN '*' 60` - fi - - TOTAL_START_TEMP=`expr $TOTAL_START_HOUR + $TOTAL_START_MIN` - - TOTAL_START_SECS=`expr $TOTAL_START_TEMP + $START_SEC` -} - - -end_func_noday_change() -{ - - END_DATE=`date` - END_HOUR=`date +%H` - END_MIN=`date +%M` - END_SEC=`date +%S` - - TOTAL_END_HOUR=`expr $END_HOUR '*' 3600` - TOTAL_END_MIN=`expr $END_MIN '*' 60` - TOTAL_END_TEMP=`expr $TOTAL_END_HOUR + $TOTAL_END_MIN` - - TOTAL_END_SECS=`expr $TOTAL_END_TEMP + $END_SEC` - TOTAL_TIME=`expr $TOTAL_END_SECS - $TOTAL_START_SECS` - - TOTAL_HR=`expr $TOTAL_TIME / 3600` - TOTAL_MIN=`expr $TOTAL_TIME / 60` - TOTAL_SEC=$TOTAL_TIME - - if [ $TOTAL_SEC -gt 60 ] - then - TOTAL_SEC=`expr $TOTAL_SEC % 60` - fi - - if [ $TOTAL_MIN -gt 60 ] - then - TOTAL_MIN=`expr $TOTAL_MIN % 60` - fi - - if [ $TOTAL_HR -gt 60 ] - then - TOTAL_HR=`expr $TOTAL_HR % 60` - fi - -} - -# Function to calculate end time -end_func() -{ - - END_DATE=`date` - END_HOUR=`date +%H` - END_MIN=`date +%M` - END_SEC=`date +%S` - - -if [ $END_HOUR -eq 0 ] -then - TOTAL_END_HOUR=0 -else - TOTAL_END_HOUR=`expr $END_HOUR '*' 3600` -fi - - -if [ $END_MIN -eq 0 ] -then - TOTAL_END_MIN=0 -else - TOTAL_END_MIN=`expr $END_MIN '*' 60` -fi - - - TOTAL_END_TEMP=`expr $TOTAL_END_HOUR + $TOTAL_END_MIN` - - TOTAL_END_SECS=`expr $TOTAL_END_TEMP + $END_SEC` - TOTAL_START_SECS=`expr 86400 - $TOTAL_START_SECS` - - TOTAL_TIME=`expr $TOTAL_END_SECS + $TOTAL_START_SECS` - - TOTAL_HR=`expr $TOTAL_TIME / 3600` - - TOTAL_MIN=`expr $TOTAL_TIME / 60` - TOTAL_SEC=$TOTAL_TIME - - if [ $TOTAL_SEC -gt 60 ] - then - TOTAL_SEC=`expr $TOTAL_SEC % 60` - fi - - if [ $TOTAL_MIN -gt 60 ] - then - TOTAL_MIN=`expr $TOTAL_MIN % 60` - fi - - if [ $TOTAL_HR -gt 60 ] - then - TOTAL_HR=`expr $TOTAL_HR % 60` - fi -} - -# Function to display the Execution Time Statistics -display_func() -{ - echo -ne "\n\n\n\n\t\t*******************************************\n" - echo -ne "\t\t* EXECUTION TIME STATISTICS *\n" - echo -ne "\t\t*******************************************\n" - echo -ne "\t\t* START : $START_DATE *\n" - echo -ne "\t\t* END : $END_DATE *\n" - echo -ne "\t\t* DURATION : *\n" - echo -ne "\t\t* $TOTAL_HR hours *\n" - echo -ne "\t\t* $TOTAL_MIN minutes *\n" - echo -ne "\t\t* $TOTAL_SEC seconds *\n" - echo -ne "\t\t*******************************************\n" - -} - - -# Variables for formatting the OPTS results -declare -i TOTAL=0 -declare -i PASS=0 -declare -i FAIL=0 -declare -i UNRES=0 -declare -i UNSUP=0 -declare -i UNTEST=0 -declare -i INTR=0 -declare -i HUNG=0 -declare -i SEGV=0 -declare -i OTH=0 - -# Maximum five minutes waiting time period to execute a test. If it exceeds, the test case will go into the 'HUNG' category. -TIMEOUT_VAL=300 - -# if gcc available then remove the below line comment else put the t0 in posixtestsuite directory. -#gcc -o t0 t0.c -./t0 0 > /dev/null 2>&1 -TIMEVAL_RET=$? - -# Find executable files from the conformance directory -# If you want to execute any specific test cases, you should modify here. - -FINDFILESsh=`find ./conformance/ -name '*-*.sh' -print` -FINDFILES=`find ./conformance/ -name '*-*.test' -print | grep -v core` - -NEWSTR=`echo $FINDFILES $FINDFILESsh` - - -# Main program - -start_func -PM_TO_AM=`date +%P` -if [ $PM_TO_AM = "pm" ] -then - COUNT=1 -fi -echo "Run the conformance tests" -echo "==========================================" - -count=1 -while $TRUE -do - FILE=`echo $NEWSTR | cut -f$count -d" "` - if [ -z $FILE ] - then - -PM_TO_AM=`date +%P` -if [ $PM_TO_AM = "am" ] -then - COUNT=`expr $COUNT + 1` -fi - -if [ $COUNT -eq 2 ] -then - end_func -else - end_func_noday_change -fi - echo - echo -ne "\t\t***************************\n" - echo -ne "\t\t CONFORMANCE TEST RESULTS\n" - echo -ne "\t\t***************************\n" - echo -ne "\t\t* TOTAL: " $TOTAL "\n" - echo -ne "\t\t* PASSED: " $PASS "\n" - echo -ne "\t\t* FAILED: " $FAIL "\n" - echo -ne "\t\t* UNRESOLVED: " $UNRES "\n" - echo -ne "\t\t* UNSUPPORTED: " $UNSUP "\n" - echo -ne "\t\t* UNTESTED: " $UNTEST "\n" - echo -ne "\t\t* INTERRUPTED: " $INTR "\n" - echo -ne "\t\t* HUNG: " $HUNG "\n" - echo -ne "\t\t* SEGV: " $SEGV "\n" - echo -ne "\t\t* OTHERS: " $OTH "\n" - echo -ne "\t\t***************************\n" - display_func - echo "Finished" - exit - - elif [ -x $FILE ] - then - FILEcut=`echo $FILE | cut -b3-80` - TOTAL=$TOTAL+1 - ./t0 $TIMEOUT_VAL $FILE > /dev/null 2>&1 - - RET_VAL=$? - - if [ $RET_VAL -gt 5 -a $RET_VAL -ne $TIMEVAL_RET ] - then - INTR_VAL=10 - fi - - case $RET_VAL in - - 0) - PASS=$PASS+1 - echo "$FILEcut:execution:PASS " - ;; - 1) - FAIL=$FAIL+1 - echo "$FILEcut:execution:FAIL " - ;; - - - 255) - FAIL=$FAIL+1 - echo "$FILEcut:execution:FAIL " - ;; - - - 2) - UNRES=$UNRES+1 - echo "$FILEcut:execution:UNRESOLVED " - ;; - - 3) - ;; - - 4) - UNSUP=$UNSUP+1 - echo "$FILEcut:execution:UNSUPPORTED " - ;; - - 5) - UNTEST=$UNTEST+1 - echo "$FILEcut:execution:UNTESTED " - ;; - - 10) - INTR=$INTR+1 - echo "$FILEcut:execution:INTERRUPTED " - ;; - - $TIMEVAL_RET) - HUNG=$HUNG+1 - echo "$FILEcut:execution:HUNG " - ;; - 139) - SEGV=$SEGV+1 - echo "$FILEcut:execution:Segmentaion Fault " - ;; - - *) - OTH=$OTH+1 - echo "OTHERS: RET_VAL for $FILE : $RET_VAL" - ;; - esac - fi - count=`expr $count + 1` -done - - -###################################################################################### - - - diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 2a8fbdd..abddd48 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -134,15 +134,14 @@ clean: rm -f \$(MAKE_TARGETS) logfile* run.sh *.core install: \$(INSTALL_DIR) run.sh - set -e; for file in \$(INSTALL_TARGETS); do \\ + set -e; for file in \$(INSTALL_TARGETS) run.sh; do \\ if [ -f "\$\$file" ] ; then \\ install -m 00755 \$\$file \\ \$(INSTALL_DIR)/\$\$file; \\ fi; \\ done -test: all run.sh - @\$(SHELL) ./run.sh +test: run.sh \$(INSTALL_DIR): mkdir -p \$@ @@ -153,9 +152,9 @@ EOF if [ "$tests" != "" ]; then cat >> "$makefile.3" <<EOF -run.sh: \$(srcdir)/Makefile +run.sh: @echo '#/bin/sh' > \$@ - @echo \$(top_srcdir)/bin/run-tests.sh $tests >> \$@ + @echo "\$(top_srcdir)/bin/run-tests.sh \$(subdir) $tests" >> \$@ EOF fi @@ -201,9 +200,9 @@ generate_makefiles() { local prereq_cache= - local make_gen_list=$1; shift - local suffix=$1; shift - local compiler_args="$@" + local make_gen_list=$1 + local suffix=$2 + local compiler_args="$3" while read filename; do @@ -214,7 +213,7 @@ generate_makefiles() { prereq_cache_dir="$prereq_dir" elif [ "$prereq_cache_dir" != "$prereq_dir" ]; then - generate_makefile "$prereq_cache_dir/Makefile" $prereq_cache_dir "$compiler_args" $prereq_cache + generate_makefile "$prereq_cache_dir/Makefile" "$prereq_cache_dir" "$compiler_args" $prereq_cache # Prep for the next round.. prereq_cache= @@ -256,7 +255,7 @@ EOF done # For the generic cases. -generate_locate_test_makefile buildonly '.test' -c +generate_locate_test_makefile buildonly '.test' '-c' generate_locate_test_makefile runnable '.run-test' generate_locate_test_makefile test-tools '' diff --git a/testcases/open_posix_testsuite/tools/Makefile b/testcases/open_posix_testsuite/tools/Makefile index 40fcf73..53e43bb 100644 --- a/testcases/open_posix_testsuite/tools/Makefile +++ b/testcases/open_posix_testsuite/tools/Makefile @@ -4,16 +4,17 @@ # Garrett Cooper, June 2010 # -srcdir?= . +top_srcdir?= .. -all: t0 +srcdir= $(top_srcdir)/tools -clean: - @rm -f t0 +all: ../bin/t0 -t0: $(srcdir)/t0.c - @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) +clean: + @rm -f ../bin/t0 -#build/t0.val: build/t0 -# echo `./t0 0; echo $$?` > t0.val +../bin: + mkdir $@ +../bin/t0: ../bin $(srcdir)/t0.c + @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(srcdir)/t0.c $(LDLIBS) hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-06 16:57:51
|
The branch, pu, has been updated via f6955771fdd1abbb2cd75abc226906022ae05ea4 (commit) from 28e174e9db3a1f4b767e8c734c7208b4de99d599 (commit) - Log ----------------------------------------------------------------- commit f6955771fdd1abbb2cd75abc226906022ae05ea4 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:55:14 2010 -0700 Remove dupe finds by restricting searches. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/open_posix_testsuite/scripts/locate-test | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/open_posix_testsuite/scripts/locate-test b/testcases/open_posix_testsuite/scripts/locate-test index acfc11c..723f0a1 100755 --- a/testcases/open_posix_testsuite/scripts/locate-test +++ b/testcases/open_posix_testsuite/scripts/locate-test @@ -92,7 +92,7 @@ runnable) # waltz down the tools directory and try and build t0 (which doesn't # make sense as it's a tool, not a test). Better criterion needs to # be established for this file. - find "$WHERE" -type f -name '*[0-9].c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' + find "$WHERE/conformance" "$WHERE/stress" -type f -name '*[0-9].c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' find "$WHERE/functional" -type f -name '*.c' ;; test-tools) hooks/post-receive -- ltp |
From: Garrett C. <ris...@li...> - 2010-07-06 16:54:47
|
The branch, pu, has been updated via 28e174e9db3a1f4b767e8c734c7208b4de99d599 (commit) via a29a396150d38c443a2b2f377c3dfc72d33eabb5 (commit) via 5511b273ffb05cf36ed7bcc26eafe15cb4339359 (commit) via 1b92c89200342ab0badab39ca0547c1b739de85d (commit) via bec80d891acbc13269143d90085410579e1d836e (commit) via d4a84ce80c001b3a128d754da13754704b1a4af4 (commit) via ef12476f5d8f23a0292d8c16d2a227aa4336256d (commit) via 7abc390cda1cccd78183578964c4d9a3ba629ba2 (commit) from 3b6aeead1a65de3729c147ca41e66683b74ae54c (commit) - Log ----------------------------------------------------------------- commit 28e174e9db3a1f4b767e8c734c7208b4de99d599 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:52:04 2010 -0700 Assume everything in functional/ is a test. This is the status quo today at least. Signed-off-by: Garrett Cooper <yan...@gm...> commit a29a396150d38c443a2b2f377c3dfc72d33eabb5 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:46:17 2010 -0700 Enable compilation and traversal of more tests. A lot of these directories were disabled by default because of the fact that they didn't cleanly fit into the built for the longest time, but I think it's time to turn on more stuff. Signed-off-by: Garrett Cooper <yan...@gm...> commit 5511b273ffb05cf36ed7bcc26eafe15cb4339359 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:40:40 2010 -0700 Compile open_posix_testsuite for UCLINUX. That way folks on the project can decide whether or not they want to run the tests at least (because not all of the code will function at runtime on UCLINUX AFAIK). Signed-off-by: Garrett Cooper <yan...@gm...> commit 1b92c89200342ab0badab39ca0547c1b739de85d Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:40:09 2010 -0700 Chase the run-test.sh -> run-tests.sh commit. Signed-off-by: Garrett Cooper <yan...@gm...> commit bec80d891acbc13269143d90085410579e1d836e Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:37:59 2010 -0700 Fix oversight with `test tools'. All of the *core.c files are used as test tools for the *.sh scripts when running tests. Previously, they were being leaked into the test execution, which was wrong, so I had to come up with an enhanced scheme for detecting what needs to be compiled as well as what needs to be tested. Signed-off-by: Garrett Cooper <yan...@gm...> commit d4a84ce80c001b3a128d754da13754704b1a4af4 Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:37:20 2010 -0700 Rename run-test.sh to run-tests.sh for clarity. Signed-off-by: Garrett Cooper <yan...@gm...> commit ef12476f5d8f23a0292d8c16d2a227aa4336256d Author: Garrett Cooper <yan...@gm...> Date: Tue Jul 6 09:36:14 2010 -0700 Rename for clarity. Signed-off-by: Garrett Cooper <yan...@gm...> commit 7abc390cda1cccd78183578964c4d9a3ba629ba2 Author: Garrett Cooper <yan...@gm...> Date: Mon Jul 5 19:56:29 2010 -0700 Mute compile. Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: testcases/Makefile | 13 ++-- testcases/open_posix_testsuite/Makefile | 2 +- .../bin/{run-test.sh => run-tests.sh} | 0 .../scripts/generate-makefiles.sh | 63 ++++++++++++++------ testcases/open_posix_testsuite/scripts/locate-test | 17 +++-- testcases/open_posix_testsuite/tools/Makefile | 2 +- 6 files changed, 63 insertions(+), 34 deletions(-) rename testcases/open_posix_testsuite/bin/{run-test.sh => run-tests.sh} (100%) diff --git a/testcases/Makefile b/testcases/Makefile index ebf4b06..2ebb325 100644 --- a/testcases/Makefile +++ b/testcases/Makefile @@ -26,16 +26,17 @@ include $(top_srcdir)/include/mk/env_pre.mk # XXX (garrcoop): # 1. ballista is broken (working on it). -# 2. mce-test doesn't fit cleanly in the build, yet. -# 3. pounder21 is just broken. -FILTER_OUT_DIRS := ballista mce-test pounder21 +# 2. kdump shouldn't be compiled by default, because it's runtime based and +# WILL crash the build host (the tests need to be fixed to just build, not run). +# 3. mce-test doesn't fit cleanly in the build, yet. +# 4. pounder21 is just broken. +FILTER_OUT_DIRS := ballista kdump mce-test pounder21 # XXX (garrcoop): Not sure why realtime is still in this list; this was the # original list of disabled items... +# XXX (garrcoop): kdump was in this list. ifneq ($(UCLINUX),1) -FILTER_OUT_DIRS += audit-test DOTS kdump open% realtime -else -SUBDIRS := kernel +FILTER_OUT_DIRS += audit-test DOTS open_hpi_testsuite realtime endif include $(top_srcdir)/include/mk/generic_trunk_target.mk diff --git a/testcases/open_posix_testsuite/Makefile b/testcases/open_posix_testsuite/Makefile index 172226b..ca97ad4 100644 --- a/testcases/open_posix_testsuite/Makefile +++ b/testcases/open_posix_testsuite/Makefile @@ -53,7 +53,7 @@ generate-makefiles: distclean-makefiles $(top_srcdir)/scripts/generate-makefiles.sh install: conformance-install functional-install stress-install - @install -m 0755 scripts/run-test.sh \ + @install -m 0755 scripts/run-tests.sh \ $(DESTDIR)/`$(SHELL) $(top_srcdir)/scripts/print-prefix.sh`/. test: conformance-test functional-test stress-test diff --git a/testcases/open_posix_testsuite/bin/run-test.sh b/testcases/open_posix_testsuite/bin/run-tests.sh similarity index 100% rename from testcases/open_posix_testsuite/bin/run-test.sh rename to testcases/open_posix_testsuite/bin/run-tests.sh diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh index 6671941..2a8fbdd 100755 --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh @@ -34,22 +34,36 @@ generate_makefile() { local make_target_prereq_cache= local prereq_cache= + local tests= local makefile=$1 local prereq_dir=$2 local compiler_args=$3 shift 3 - prereq_cache="$*" + prereq_cache=$* # Add all source files to $make_target_prereq_cache. for prereq in $prereq_cache; do - if echo "$prereq" | grep -q 'test$'; then + # Stuff that needs to be tested. + if echo "$prereq" | grep -Eq '\.(run-test|sh)'; then + if [ "$tests" != "" ]; then + tests="$tests " + fi + tests="$tests$prereq" + fi + # Stuff that needs to be compiled. + case "$prereq" in + *.sh) + # Catch. + ;; + *) if [ "$make_target_prereq_cache" != "" ]; then make_target_prereq_cache="$make_target_prereq_cache " fi make_target_prereq_cache="$make_target_prereq_cache$prereq" - fi + ;; + esac done if [ ! -f "$makefile.1" ]; then @@ -58,8 +72,8 @@ generate_makefile() { # # Automatically generated by `basename "$0"` -- DO NOT EDIT. # -# Restrictions for `basename "$0"` apply to this file. See COPYING for more -# details. +# Restrictions for `basename "$0"` apply to this file. See COPYING for +# more details. # # $AUTHORDATE # @@ -100,10 +114,12 @@ EOF fi done + # Whitespace + echo "" >> "$makefile.1" + fi cat >> "$makefile.2" <<EOF - INSTALL_TARGETS+= ${prereq_cache} MAKE_TARGETS+= ${make_target_prereq_cache} @@ -131,25 +147,33 @@ test: all run.sh \$(INSTALL_DIR): mkdir -p \$@ +EOF + + fi + + if [ "$tests" != "" ]; then + cat >> "$makefile.3" <<EOF run.sh: \$(srcdir)/Makefile @echo '#/bin/sh' > \$@ - @echo '\$(top_srcdir)/bin/run-test.sh \$(INSTALL_TARGETS)' >> \$@ + @echo \$(top_srcdir)/bin/run-tests.sh $tests >> \$@ EOF - fi # Produce _awesome_ target rules for everything that needs it. for prereq in ${make_target_prereq_cache}; do - test_name=`echo "$prereq" | sed -e "s,.$suffix,,"` + test_name="$prereq" + if [ "$suffix" != "" ]; then + test_name=`echo "$test_name" | sed -e "s,$suffix,,"` + fi c_file="$test_name.c" case "$suffix" in - run-test) + .run-test) grep -q 'main' "$prereq_dir/$c_file" || echo >&2 "$prereq_dir/$c_file should be test." ;; - test) + .test) grep -q 'main' "$prereq_dir/$c_file" && echo >&2 "$prereq_dir/$c_file should be run-test." ;; esac @@ -157,16 +181,16 @@ EOF COMPILE_STR="\$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file \$(LDLIBS)" cat >> "$makefile.3" <<EOF - $prereq: \$(srcdir)/$c_file @if $COMPILE_STR >logfile.\$\$\$\$ 2>&1; then \\ - echo "$prereq_dir/$test_name compile PASSED"; \\ - echo "$prereq_dir/$test_name compile PASSED" >> \$(LOGFILE); \\ + echo "\$(subdir)/$test_name compile PASSED"; \\ + echo "\$(subdir)/$test_name compile PASSED" >> \$(LOGFILE); \\ else \\ - echo "$prereq_dir/$test_name compile FAILED"; \\ - (echo "$prereq_dir/$test_name compile FAILED"; cat logfile.\$\$\$\$) >> \$(LOGFILE); \\ + echo "\$(subdir)/$test_name compile FAILED"; \\ + (echo "\$(subdir)/$test_name compile FAILED"; cat logfile.\$\$\$\$) >> \$(LOGFILE); \\ fi; \\ rm -f logfile.\$\$\$\$ + EOF done @@ -203,7 +227,7 @@ generate_makefiles() { if [ "$prereq_cache" != "" ] ; then prereq_cache="$prereq_cache " fi - prereq_cache="$prereq_cache"`basename "$filename" | sed "s,.c\$,.$suffix,g"` + prereq_cache="$prereq_cache"`basename "$filename" | sed "s,.c\$,$suffix,g"` done < $make_gen_list @@ -232,8 +256,9 @@ EOF done # For the generic cases. -generate_locate_test_makefile buildonly "test" -c -generate_locate_test_makefile runnable "run-test" +generate_locate_test_makefile buildonly '.test' -c +generate_locate_test_makefile runnable '.run-test' +generate_locate_test_makefile test-tools '' rm -f "$GLOBAL_BOILERPLATE" diff --git a/testcases/open_posix_testsuite/scripts/locate-test b/testcases/open_posix_testsuite/scripts/locate-test index 02adc56..acfc11c 100755 --- a/testcases/open_posix_testsuite/scripts/locate-test +++ b/testcases/open_posix_testsuite/scripts/locate-test @@ -18,6 +18,7 @@ and down. If you just want to build a test, but not run it, do not include a main function into the .c file or name it something including the "-buildonly" string. + --test-tools List all test tools that require building. --help Show this help and exit Filenames need to follow some standarized format for them to be picked @@ -50,6 +51,10 @@ do mode="runnable" shift ;; + "--test-tools") + mode="test-tools" + shift + ;; "--help") usage exit 0 @@ -87,12 +92,10 @@ runnable) # waltz down the tools directory and try and build t0 (which doesn't # make sense as it's a tool, not a test). Better criterion needs to # be established for this file. - # XXX (garrcoop): remove all testfrmw files because there're actually - # used as includes in the make process; they really should be - # functions in a library. - # XXX (garrcoop): determine whether or not the *scenarii.c files can be - # moved out into a local library of some kind, or the compile can be - # improved at least... - find "$WHERE" -type f -name '*.c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' | grep -v testfrmw | grep -v '_scenarii' + find "$WHERE" -type f -name '*[0-9].c' -o -name '[0-9]*-[0-9]*.sh' | grep -v buildonly | grep -v '^./tools' + find "$WHERE/functional" -type f -name '*.c' + ;; +test-tools) + find "$WHERE" -type f -name '*-core.c' ;; esac diff --git a/testcases/open_posix_testsuite/tools/Makefile b/testcases/open_posix_testsuite/tools/Makefile index b09903d..40fcf73 100644 --- a/testcases/open_posix_testsuite/tools/Makefile +++ b/testcases/open_posix_testsuite/tools/Makefile @@ -12,7 +12,7 @@ clean: @rm -f t0 t0: $(srcdir)/t0.c - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) + @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) #build/t0.val: build/t0 # echo `./t0 0; echo $$?` > t0.val hooks/post-receive -- ltp |