plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-1.c
2,054
utf_8
042fb5a5bd3761f059000f6adbee311e
/* * source tree. * Test that nanosleep() sets errno to EINTR if it is interrupted by a signal. * Test by sending a signal to a child doing nanosleep(). If nanosleep * errno = EINTR, return success from the child. */ #include <stdio.h> #include <time.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/3-2.c
2,220
utf_8
746538b5191b836095ec1b016f5c8f93
/* * source tree. * * Regression test motivated by an LKML discussion. Test that nanosleep() * can be interrupted and then continue. */ #include <stdio.h> #include <time.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h> #include <stdlib.h> #include "posixtest.h" #define SLEEPSEC 5 #define CHILDPASS...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/2-1.c
1,902
utf_8
7d1394a214c0bfd4348f22a1501ab3f6
/* * source tree. * Test that nanosleep() causes the current thread to be suspended * until _at least_ the time interval in rqtp passes. * Test for a variety of time intervals (in nsecs) */ #include <stdio.h> #include <time.h> #include "posixtest.h" #define NUMINTERVALS 13 int main(void) { struct timespec tssleep...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-2.c
1,718
utf_8
01eec737d6cf0f616e62a8f7c443d669
/* * source tree. * Test that nanosleep() causes the current thread to be suspended * until a signal whose action is to terminate the process is received. */ #include <stdio.h> #include <time.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h> #include "posixtest.h" int main(void) { struct timespec ts...
google
android
7-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-2.c
2,569
utf_8
76f5d4036aef6d041875de595af1b5df
/* * source tree. * Test that nanosleep() sets rmtp to the time remaining if * it is interrupted by a signal. * If time remaining is within OKDELTA difference, the test is a pass. */ #include <stdio.h> #include <time.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h> #include <stdlib.h> #include "pos...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/3-1.c
1,966
utf_8
7c23b9c590ac2e9f79aed4c173728b14
/* * source tree. * Test that nanosleep() does not effect the action of a signal. * - Start nanosleep() in a child process * - Send a signal to the child process and have the handler exit with * success; if the handler is not called, return 0 * - In the parent, if the child exited success, return success. */ #...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/5-1.c
775
utf_8
5c0fa59602a23a5fb78f3003b2c3ec9f
/* * source tree. * Test that nanosleep() returns -1 on failure. * Simulate failure condition by sending -1 as the nsec to sleep for. */ #include <stdio.h> #include <time.h> #include "posixtest.h" int main(void) { struct timespec tssleepfor, tsstorage; int sleepnsec = -1; tssleepfor.tv_sec = 0; tssleepfor.tv_ns...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-3.c
2,113
utf_8
2601d8b4cbe3bb15c8a4904eb1a6f1e5
/* * source tree. * Test that nanosleep() causes the current thread to be suspended * until a signal whose action is to invoke a signal handling function * is received. */ #include <stdio.h> #include <time.h> #include <signal.h> #include <unistd.h> #include <sys/wait.h> #include "posixtest.h" static void handler(i...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-1.c
1,408
utf_8
4fe61bb30916236c5b8e9f3256fe274e
/* * source tree. * Test that nanosleep() causes the current thread to be suspended * until the time interval in rqtp passes. */ #include <stdio.h> #include <time.h> #include "posixtest.h" int main(void) { struct timespec tssleepfor, tsstorage, tsbefore, tsafter; int sleepnsec = 3; int slepts = 0, sleptns = 0; ...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/6-1.c
1,191
utf_8
8eea8fc0fe7ccca63f263350592788cc
/* * source tree. * Test that nanosleep() sets errno to EINVAL if rqtp contained a * nanosecond value < 0 or >= 1,000 million */ #include <stdio.h> #include <time.h> #include <errno.h> #include "posixtest.h" #define NUMTESTS 7 int main(void) { struct timespec tssleepfor, tsstorage; int sleepnsec[NUMTESTS] = { -1,...
google
android
10000-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/10000-1.c
3,263
utf_8
9afae1807e775206145b207ee650d8ad
/* * source tree. * Test nanosleep() on a variety of valid and invalid input parameters. * * For valid parameters, if the seconds spent is within OKSECERR, the * test is considered a pass (Note: This is not too accurate since * accuracy is at the second level.). * * For invalid parameters, nanosleep should fai...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/7-1.c
877
utf_8
bf976e3768659ff81b9dbd7b4208e279
/* * source tree. * Test that the raise(<signal>) sets errno to indicate the error on * unsuccessful completion. * 1) Raise an invalid signal. * 2) Verify a non-zero value is returned. * 3) Verify errno is set to EINVAL. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #inclu...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/2-1.c
2,002
utf_8
940168ac47ae8278787890dfbe1215fe
/* * source tree. * Test that the the raise() function does not return until after the * signal handler it calls returns. * This test is only performed on one signal. All other signals are * considered to be in the same equivalence class. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/1-2.c
2,759
utf_8
fa4f56ce879c51f4f166fddc6f01d0b2
/* * source tree. * Test that the raise(<signal>) function shall send the signal * to the executing process when the executing process is a child * process. * 1) Set up a signal handler for a signal in the parent process. * This handler returns failure if called. * 2) Fork a child process. * 2) In the...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/1-1.c
1,424
utf_8
dbbbde8fe91ce0dbef51f493eb40b13c
/* * source tree. * Test that the raise(<signal>) function shall send the signal * to the executing process. * 1) Set up a signal handler for the signal that says we have caught the * signal. * 2) Raise the signal. * 3) If signal handler was called, test passed. * This test is only performed on one si...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/4-1.c
1,669
utf_8
553d1b18d333c31eb96eb6631710a115
/* * source tree. * Assertion 4 - that raise() is equivalent to kill(getpid(), sig); is * essentially tested implicitly via assertion 1. * This test is the reverse test case: Test assertion 1, but replace * raise() with kill(getpid(), sig). It should pass if assertion 1 * passes. * 1) Set up a signal han...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/6-1.c
740
utf_8
4c576d47d0d41686e2d4c206dd38c340
/* * source tree. * Test that the raise(<signal>) function sends a non-zero value on * unsuccessful completion. * 1) Raise an invalid signal. * 2) Verify a non-zero value is returned. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" int main(void) { if (...
google
android
10000-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/10000-1.c
2,945
utf_8
1dbee1ed34242b1232d0a3a1e1c20b6f
/* * source tree. * General API test of the raise() function. * Test calling raise with the following values: * - MINIMUM valid (in this case SIGABRT signal) * - MAXIMUM valid (in this case SIGXFSZ signal) * Item with POSIX default action as T - SIGALRM * Item with POSIX default action as A - (done - SIGAB...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/2-1.c
1,545
utf_8
eed4b4361af96f63b8895977980aed5e
/* * source tree. * Test that pthread_condattr_getpshared() * * It shall obtain the value of the process-shared attribute from 'attr'. * * Steps: * 1. Initialize a pthread_condattr_t object with pthread_condattr_init() * 2. Call pthread_condattr_getpshared() to check if the process-shared * attribute is...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/1-2.c
2,156
utf_8
6890da1408fe0813c10760797fba5afb
/* * source tree. * Test that pthread_condattr_getpshared() * * It shall obtain the value of the process-shared attribute from 'attr'. * * Steps: * 1. In a loop, initialize a pthread_condattr_t object with pthread_condattr_init() * 2. Set 'pshared' of the object to PTHREAD_PROCESS_SHARED. * 3. Call pthread...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/1-1.c
2,162
utf_8
756d3a96e1b3dd86673d71a8f91aa5c9
/* * source tree. * Test that pthread_condattr_getpshared() * * It shall obtain the value of the process-shared attribute from 'attr'. * * Steps: * 1. In a loop, initialize a pthread_condattr_t object with pthread_condattr_init() * 2. Set 'pshared' of the object to PTHREAD_PROCESS_PRIVATE. * 3. Call pthrea...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/2-1.c
5,635
utf_8
ca6f925809fed1a6eae3edaecf8c2918
/* * source tree. * * The process-shared attribute shall be set to PTHREAD_PROCESS_SHARED * to permit a read-write lock to be operated upon by any thread * that has access to the memory where the read-write lock is allocated, * even if the read-write lock is allocated in memory that is shared by * multiple proce...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/1-1.c
1,475
utf_8
016be20b056a9013e1404c46b926cbab
/* * source tree. * Test that pthread_rwlockattr_getpshared() * * It shall obtain the value of the process-shared attribute from 'attr'. * * Steps: * 1. Initialize a pthread_rwlockattr_t object with pthread_rwlockattr_init() * 2. Call pthread_rwlockattr_getpshared() to check if the process-shared * attr...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/4-1.c
1,657
utf_8
09dd43c86092f51996e209653fd8d696
/* * source tree. * Test that pthread_rwlockattr_getpshared() * * It shall obtain the value of the process-shared attribute from 'attr'. * The default value of the process-shared attribute shall be PTHREAD_PROCESS_PRIVATE. * * Steps: * 1. Initialize a pthread_rwlockattr_t object with pthread_rwlockattr_init(...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/7-1.c
1,291
utf_8
ebf3e4ca64d67b00ff76a661a6cd0288
/* * source tree. */ /* This tests case will open a locked semaphore. The time will tick 5 times * until the absolute time passes. The sempahore will unlock, then the * sem_timedwait call will immediately lock again. */ #include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <fcntl.h> #ifdef __l...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/2-1.c
1,612
utf_8
cfb8cd521e398c3000b89a1b09c98416
/* * source tree. */ /* sem_timedwait will return successfully when sem_post * will unlock the semaphore from another process. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <sys/wait.h> #include <fcntl.h> #include <signal.h> #include <time.h> #inc...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/9-1.c
2,006
utf_8
839bcdbbdbb0946ff47ebeb56283287c
/* * source tree. */ /* This tests case will send a SIGABRT to sem_timedwait, and should * return error EINTR. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <signal.h> #include <sys/wait.h> #include <time.h> #include "posixtest....
google
android
11-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/11-1.c
1,775
utf_8
166d062f65824742e44ded57adfdc057
/* * source tree. */ /* * Under no circumstance shall the function fail with a timeout if * the semaphore can be locked immediately. The validity of the * abs_timeout need not be checked if the semaphore can be locked * immediately. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/3-1.c
1,626
utf_8
ba27433d2d95a3ed8fe33c26e0bf543c
/* * source tree. */ /* This tests case will open a locked semaphore. The time will tick 5 times * until the absolute time passes. The sempahore will unlock, then the * sem_timedwait call will immediately lock again. */ #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #if __linux__ #include <featu...
google
android
10-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/10-1.c
1,845
utf_8
71b2fe4ce37c6a68ef3ef95cd1423a09
/* * If the Timers option is supported, the timeout shall be based on * the CLOCK_REALTIME clock. If the Timers option is not supported, * the timeout shall be based on the system clock as returned by * the time() function. * */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #inc...
google
android
6-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/6-2.c
1,182
utf_8
41303144dc3b61aa5088c51d3fa181a8
/* * source tree. */ /* * The process would be blocked, and the timeout parameter is * secified in nanoseconds field value greater than or equal to * 1000 million. Should return ERROR (EINVAL). */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcnt...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/1-1.c
1,380
utf_8
e3f77789b3b22a931fe60fd9120d0c2b
/* * source tree. */ /* * sem_timedwait shall lock the unlocked semaphore and decrement the * semaphore * value by one. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h> #include "posixtest.h" #define TEST "1-1" #define FU...
google
android
2-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/2-2.c
1,515
utf_8
0fdd2034ecd55e8cb8201fff82d0bbda
/* * source tree. */ /* * This test case will verify that sem_timedwait will wait one second to * unlock the locked semaphore, and then when the semaphore fails to * unlock should return -1, and leave the semaphore status unchanged * by doing sem_post on the sempahore and check the current value of * the semapho...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/4-1.c
1,355
utf_8
5b6c57884ea27c392e6c29f0eda65c4e
/* * source tree. */ /* sem_timedwait shall return zero if the calling process successfully * performed the semaphore lock operation on the semaphore designated * by sem. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h> #...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/6-1.c
1,127
utf_8
c073ce1f55d66fb880910fd1dee5f5f4
/* * source tree. */ /* * The process would be blocked, and the timeout parameter is * secified in nanoseconds field value less than zero. Should * return ERROR (EINVAL). */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h>...
google
android
14-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/14-1.c
5,910
utf_8
e7ff414002be24f3da1a028da7b931c7
/* * * This sample test aims to check the following assertion: * The function does not return EINTR * * The steps are: * -> continuously send SIGUSR1 to a thread which runs pthread_create() * -> check that EINTR is never returned */ #include <stdio.h> #include <errno.h> #include <pthread.h> #include <semaphore....
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/3-2.c
22,254
utf_8
5419cf51001cc988997026621f9259ca
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * Once the thread has been created, subsequent changes to the * thread attribute object don't affect the running thread. * The steps are: * -> stack grow * -> create a thread with mini...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/2-1.c
1,562
utf_8
8275b364562814f9e29d47eeba52e91f
/* * source tree. * Test If 'attr' is NULL, the default attributes shall be used. * The attribute that will be tested is the detached state, because that is * the only state that has a default listed in the specification. * * default: PTHREAD_CREATE_JOINABLE * Other valid values: PTHREAD_CREATE_DETACHED * ...
google
android
11-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/11-1.c
2,212
utf_8
3a133ba2f2c6eed31ab564e3e152eab3
/* * * if _POSIX_THREAD_CPUTIME is defined, the new thread shall have a CPU-time * clock accessible, and the initial value of this clock shall be set to 0. */ /* Do some work in the main thread so that it's clock value is non zero. * Create a new thread and get the time of the thread CUP-time clock * using clo...
google
android
1-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-5.c
9,117
utf_8
96ee8ad1c8c57698d394c513b5dc32b0
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * pthread_create creates a thread with attributes as specified in the attr parameter. * The steps are: * * -> Create a new thread with known parameters. * -> Check the thread behavior con...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-2.c
1,530
utf_8
4911c17186f0dd024db38e003b70ec7d
/* * source tree. * Test that pthread_create() creates a new thread with attributes specified * by 'attr', within a process. * * Steps: * 1. Create a thread using pthread_create() * 2. Cancel that thread with pthread_cancel() * 3. If that thread doesn't exist, then it pthread_cancel() will return * an e...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/3-1.c
2,584
utf_8
a4d44b86329fb79c9c5859a632195aa7
/* * source tree. * Test if the attributes specified by 'attr' are modified later, the thread's * attributes shall not be affected. * The attribute that will be tested is the detached state. * * * Steps: * 1. Set a pthread_attr_t object to be PTHREAD_CREATE_JOINABLE. * 2. Create a new thread using pthread...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/5-1.c
1,334
utf_8
a8cb41bfd0e5af9ab4580677c929a3c1
/* * source tree. * Test pthread_create() * The thread is created executing 'start_routine' with 'arg' as its only * argument. * * Steps: * 1. Create 5 separete threads using pthread_create() passing to it a single int 'arg'. * 2. Use that passed int argument in the thread function start routine and make sur...
google
android
1-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-6.c
6,233
utf_8
2d8aa74ff377aaf38be95e7fdbdfe18b
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertion: * * pthread_create creates a thread with attributes as specified in the attr parameter. * * This test tests scheduller attributes are set correctly and schedulling works. * * The steps a...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-3.c
2,075
utf_8
d473955763373ffcb91e2a2c3c1bc41d
/* * source tree. * Test that pthread_create() creates a new thread with attributes specified * by 'attr', within a process. * * Steps: * 1. Create a new thread that will go into a never-ending while loop. * 2. If the thread is truly asynchronous, then the main function will * continue instead of waiting ...
google
android
12-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/12-1.c
952
utf_8
1fae6c44fad058be4acf8dc169c1448f
/* * source tree. * Test pthread_create() * * If success, pthread_create() returns zero. * * Steps: * 1. Create a thread using pthread_create(), passing to it all valid values. * 2. If the return code was not EGAIN, EPERM or EINVAL, it should return 0. */ #include <pthread.h> #include <stdio.h> #include <err...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/1-1.c
1,468
utf_8
3b348367c93c866c1d16b0c38000a3ee
/* * source tree. * Test that pthread_create() creates a new thread with attributes specified * by 'attr', within a process. * * Steps: * 1. Create a thread using pthread_create() * 2. Compare the thread ID of 'main' to the thread ID of the newly created * thread. They should be different but process IDs ...
google
android
15-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/15-1.c
5,215
utf_8
d804785bc245c8e018d9d45e1ecd854b
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * If the current thread has an alternate stack, the new thread does not inherit * this stack * The steps are: * -> Create a thread with an alternate stack. * -> From this thread, create a...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/8-1.c
3,293
utf_8
cf8407196f672d31ffcff5ba01b518e9
/* * source tree. * Test pthread_create() * * The signal state of the new thread will be initialized as so: * * - The signal mask shall be inherited from the created thread * - The set of signals pending for the new thread shall be empty. * * Steps: * 1. In main(), create a signal mask with a few signals in ...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/4-1.c
1,555
utf_8
15353d5f6741a66cc99faea76b496255
/* * source tree. * * Test upon successful completion, pthread_create() shall store the ID of the * the created thread in the location referenced by 'thread'. * * Steps: * 1. Create a thread using pthread_create() * 2. Save the thread ID resulting from pthread_create() * 3. Get the thread ID from the new ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getinheritsched/1-1.c
2,128
utf_8
d192ec845363937bfccb7e51bb302196
/* * source tree. * Test pthread_attr_getinheritsched() * * Steps: * 1. Initialize a pthread_attr_t object using pthread_attr_init() * 2. Call pthread_attr_setinheritsched with inheritsched parameter * 3. Call pthread_attr_getinheritsched to get the inheritsched * */ #include <pthread.h> #include <stdio.h> ...
google
android
17-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/17-2.c
4,618
utf_8
4309700fcd0ec7d8e4052c5e01eda74e
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * For the SCHED_FIFO and SCHED_RR scheduling policies, * the child process inherits the policy and priority * settings of the parent process during a fork() function. * The steps are: * -> Change...
google
android
21-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/21-1.c
3,004
utf_8
19cc625158c86ffaec14ecb441065aa0
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The new process has only one thread. * The steps are: * -> create a thread. * -> fork * -> Check that the thread is not running in the new process image. * The test fails if the thread is execu...
google
android
14-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/14-1.c
3,601
utf_8
7a42da281ec17576950c9947812ae84a
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * Opened semaphores are inherited in the child process.. * The steps are: * -> Open 2 named semaphores, then unlink one. * -> fork * -> The child tries and posts both semaphores, then terminates....
google
android
22-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/22-1.c
3,753
utf_8
14b7296b3d2f75dddde6494525b8d62a
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The CPU-time clock of the new process/ new process's thread is initialized to 0. * The steps are: * -> compute until the parent process CPU-time clock is greater than 1 sec. * -> fork * -> chec...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/7-1.c
3,502
utf_8
fad3d378f04da24141e94cad19184d3c
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The child process gets a copy of the parent message catalog descriptor. * The steps are: * -> Create a message catalog file from the file * -> Open this catalog * -> fork * -> Check that the ch...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/2-1.c
4,723
utf_8
744ce0ed2d6dd454972c3cf349f70588
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The new process is a copy of the original one -- with few exceptions. * The steps are: * -> set up some data in process memory space * -> create a new process * -> check in this new process tha...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/9-1.c
2,084
utf_8
2aabbab6e7b14bd04ffed5cc6fbd40db
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The time left until an alarm clock is triggered is reset to zero, * and the alarm, if any, is canceled * The steps are: * -> Trig an alarm * -> fork * -> Check the alarm is not running in the c...
google
android
11-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/11-1.c
2,550
utf_8
93fbb342370c6f14749ff05ebbdddf83
/* * * Tests that file locks are not inherited by the child process after a fork. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> #include <errno.h> #include <string.h> #include "posixtest.h" static int child(int fd) { struct flock fl = { .l_type = F_WRLCK, ...
google
android
16-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/16-1.c
4,582
utf_8
fa5256c9dcd4212a130c45434718c649
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * Memory mappings created in the parent are retained in the child process. * If the mapping is MAP_PRIVATE, any modification done after the fork() * is visible only to the process doing the modif...
google
android
17-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/17-1.c
2,836
utf_8
e6b620dad4d6a5ec26582552f91af6fa
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * For the SCHED_FIFO and SCHED_RR scheduling policies, * the child process inherits the policy and priority * settings of the parent process during a fork() function. * The steps are: * -> Change...
google
android
19-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/19-1.c
4,209
utf_8
f1461c29581e6208c252967d159c49c7
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The opened message queue descriptors are copied to the child process and * refer to the same object. * The steps are: * -> Open a message queue descriptor. * -> Send a message to this descripto...
google
android
13-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/13-1.c
3,370
utf_8
291c07514a7bedde3ee57fa00bc7bbbc
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * Interval timers are reset in the child process. * The steps are: * -> create an interval timer in the parent process * -> fork * -> check the timer has been cleared in child. * The test fails i...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/3-1.c
2,360
utf_8
703ab91d847465d5fb28d2db4da92594
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The new process' ID does not match any existing process or group ID. * The steps are: * -> create a child; then terminate this child. * -> check that no other process or group has the sa...
google
android
12-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/12-1.c
4,638
utf_8
30764846a6cd520f5b9c010e393fa239
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The child process is created with no pending signal * The steps are: * -> block SIGUSR1 and SIGUSR2 * -> send those signals and wait they are pending * -> fork * -> check the signals are blocke...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/1-1.c
3,766
utf_8
ce1cdf40f296552e4bc5dbfa8b0fda83
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertion: * * fork() creates a new process. * * The steps are: * -> create a new process * -> the parent and the child sleep 1 sec (check concurrent execution) * -> the child posts a semaphore, t...
google
android
18-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/18-1.c
3,076
utf_8
78a8a51ffa8e0d78c02e278ece96b17b
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The per-process timers are not inherited. * The steps are: * -> Create a per-process timer * -> fork * -> check if the timer exists in child. * The test fails if the timer expires in child (tim...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/8-1.c
4,001
utf_8
9adbda29cb51a7da1735067d11573559
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * tms_{,c}{u,s}time values are set to 0 in the child process. * The steps are: * -> Work for 1 second and save the tms information * -> fork * -> Check that the child has tms values less than the...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/4-1.c
1,986
utf_8
65d361d6af4dcbf629ec10509b4d1e86
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The parent process ID of the child is the process ID of the parent (caller of fork()) * The steps are: * -> create a child * -> check its parent process ID is the PID of its parent. * T...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/6-1.c
2,935
utf_8
513f7ea7d366908000f8a160793ff72a
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The opened directory streams are copied to the child process. * Positionning information may be shared between both processes. * The steps are: * -> Open the current directory, * -> Count the d...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/getpid/1-1.c
4,854
utf_8
3cb7432967d606a292b2d26b1e47ce3e
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * getpid() always returns the process ID of the calling thread/process. * The steps are: * * -> create two threads and check they get the same getpid() return value. * -> create two proce...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/2-1.c
1,418
utf_8
0d144b4cc557a29406c1dd706c10f913
/* source tree. */ /* sem_open test case that attempts to open a new semaphore, close the semaphore and then open and existing semaphore, which should fail when both O_CREAT and O_EXCL name exist during the opening of a Semaphore. Fail to open is a Pass for this test. */ #include <sys/types.h> #inclu...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-2.c
1,001
utf_8
e81c15c70cf4d796b00c79e953f1c0b1
/* source tree. */ /* sem_open test case that attempts to open a new semaphoree, and the return value is not NULL */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" #define TEST "1-2" #def...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/3-1.c
2,161
utf_8
6afba6b18b125d1fefd0d06851ddcbdd
/* source tree. */ /* open_sem test case that attempts to open a new semaphore with read permissions, close it, then create the same semaphore with write permissions which should come up with denial access. */ #include <sys/types.h> #include <pwd.h> #include <string.h> #include <stdio.h> #include <errno....
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/5-1.c
1,060
utf_8
574938dbfd497539deb62da6676de06f
/* source tree. */ /* open_sem test case that attempts to open a new semaphore, with the maximum VALUE allowed. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <limits.h> #include "posixtest.h" #defi...
google
android
10-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/10-1.c
1,604
utf_8
d064ef72d864f33154bbe5b63a417cb5
/* source tree. */ /* sem_open test case that attempts to open a new semaphore, call sem_wait, then try to re-create the same semaphore, which have no effect when you try to open a semaphore that already exist. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-3.c
1,267
utf_8
1d1ab302c108dae148bffa60c78eb182
/* source tree. */ /* sem_open test case that attempts to open a new semaphoree, and then lock it with sem_wait. Making sure the semaphore is locked. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-1.c
989
utf_8
144d3d6e1374f94539b7ebb90eb3092b
/* source tree. */ /* sem_open test case that attempts to open a new semaphoree, close the semaphore and verify that open_sem returns 0. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" ...
google
android
15-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/15-1.c
4,263
utf_8
a2f8427fd4f907804c515cd2eb5b70b8
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * If a process calls sem_open several times with the same name, * the same adress must be returned as long as the semaphore * has not been unlinked or closed as many times as opened. * The steps...
google
android
1-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/1-4.c
1,229
utf_8
64d72848ba0f4a95a5a805bd5d3cb260
/* source tree. */ /* sem_open test case that attempts to open a new semaphoree, and then try to un-lock it with sem_post. Making sure the semaphore is not locked. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h>...
google
android
2-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/2-2.c
1,145
utf_8
c6f28e6c17307ad05f58bc65ba3e136f
/* source tree. */ /* This test case checks for the existence of the semaphore and the creation of the semaphore if it does not exist. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" #d...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/4-1.c
1,257
utf_8
344f22c030b8943606784e77ae86249a
/* source tree. */ /* open_sem test case that attempts to open a new semaphore, close the semaphore and then open and existing semaphore, which should fail when both O_CREAT and O_EXCL name exist during the opening of a Semaphore. Fail to open is a Pass for this test. */ #include <sys/types.h> #inclu...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/6-1.c
905
utf_8
92a8cbbf588b3d707b85604ecba80564
/* source tree. */ /* sem_open test case attempts to create a named SEM that doesn't exist. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" #define TEST "6-1" #define FUNCTION "sem_open" i...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/2-1.c
4,236
utf_8
0c5c121be72767deaf1041e536f2a11f
/* * source tree. * Test that pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock) * * The timeout shall expire when the absolute time specified by abs_timeout passes, * as measured by the clock on which timeouts are based (that is, when the * value of that clock equals or exceeds abs_timeout), or if the absolute...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/3-1.c
6,269
utf_8
628039648a9fff0d775b340062e14185
/* * source tree. * Test that pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock) * * The function shall apply a read lock to the read-write lock referenced by * rwlock as in the pthread_rwlock_rdlock(). However, if the lock cannot be * acquired with out waiting for other threads to unlock the lock, this wait...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/5-1.c
5,848
utf_8
68e28cf3f1403e37759bb8c1f0b7ae37
/* * source tree. * Test that pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock) * * Under no circumstances shall the function fail with a timeout if the lock can be * acquired immediately. The abs_timeout parameter need not be checked if the lock * can be immediately acquired. * * Steps:n * 1. Main thread ...
google
android
6-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-2.c
5,979
utf_8
7e21c7abfe807b7af49a4d7822a82127
/* * source tree. * Test pthread_rwlock_timedrdlock(pthread_rwlock_t * rwlock) * * If a signal that causes a signal handler to be executed is delivered to * a thread blocked on a read-write lock via a call to pthread_rwlock_timedrdlock(), * upon return from the signal handler the thread shall resume waiting for t...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/1-1.c
5,897
utf_8
28a8be0b543e658b2dc7b8e6860d3b02
/* * source tree. * Test that pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock) * * The function shall apply a read lock to the read-write lock referenced by * rwlock as in the pthread_rwlock_rdlock(). However, if the lock cannot be * acquired with out waiting for other threads to unlock the lock, this wait...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-1.c
5,593
utf_8
9115821f9f855dfc07be4e521dee9203
/* * source tree. * Test pthread_rwlock_timedrdlock(pthread_rwlock_t * rwlock) * * If a signal that causes a signal handler to be executed is delivered to * a thread blocked on a read-write lock via a call to pthread_rwlock_timedrdlock(), * upon return from the signal handler the thread shall resume waiting for t...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_self/1-1.c
1,868
utf_8
e988d7d442855b8e6e562360e87f73d1
/* * source tree. * Test that pthread_self() * * Shall return the thread ID of the calling thread. No errors are defined. * * Steps: * 1. Create a new thread. * 2. The function that the thread calls will call pthread_self() and store * the return value (which is the thread ID of the thread calling it) i...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/3-2.c
4,582
utf_8
2c1f75a1f747db77c6a20ed4118b95d2
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * If sem_unlink has not been called after sem_open for this semaphore, * the function has no effect on the semaphore. * The steps are: * -> open a semaphore with a value of 2. * -> wait the sema...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/2-1.c
1,356
utf_8
1a5a32452c7a17cfd59589ce389d2497
source tree. */ /* This case verifies that sem_close deallocate resources, and then the semaphore is available for reuse. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" #define TEST "2...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/3-1.c
1,166
utf_8
ebdea1082901540589c11259377f3bc6
/* source tree. */ /* sem_close will have no effect on the state of the semaphore if sem_unlink has been unsuccessful. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" #define TEST "3-1...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/1-1.c
1,107
utf_8
2a87af5fbbc7b53f3e7dcda8cd1a755f
/* source tree. */ /* sem_close test case that attempts to close an open semaphore, close the semaphore and verify that close_sem returns 0. */ #include <sys/types.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest...
google
android
5-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/5-3.c
2,585
utf_8
9904058719643b1c4974cbceef8093c1
/* * source tree. * Test that if timer_settime() is using an absolute clock and the * time has already taken place when the test is running that * timer_settime() succeeds and the expiration notification is made. * * Test for a variety of times which keep getting SUBTRACTAMOUNT * of time away from the time at th...
google
android
3-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/3-3.c
2,961
utf_8
2461a62cf6d7af4a3381150a142a8d09
/* * source tree. * Test that if value.it_value = 0, the timer is disarmed. Test by * disarming a currently armed and blocked timer. * * For this test, signal SIGTOTEST will be used, clock CLOCK_REALTIME * will be used. */ #include <time.h> #include <signal.h> #include <stdio.h> #include <unistd.h> #include <st...
google
android
5-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/5-2.c
2,235
utf_8
3d76f6e9566f12c7c04c0089b104a4c1
/* * source tree. * Test that if timer_settime() is using an absolute clock and the * time has already taken place when the test is running that * timer_settime() succeeds and the expiration notification is made. * * Steps: * - Setup and then call timer_settime() with date in past. * - If timer_settime() return...
google
android
8-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/8-3.c
1,891
utf_8
14b436f78ac48a8d156bfa4518e85526
/* * source tree. * * Test that timer_settime() will return ovalue.it_value = the previous * amount of time before the timer would have expired. * - set up a timer to expire in TIMERSEC seconds * - sleep for TIMERSEC-TIMELEFT seconds * - set up a new timer * - compare TIMELEFT and the value in ovalue.it_value a...
google
android
9-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/9-2.c
3,868
utf_8
adce0aed87e4d94d697376a4b27649dd
/* * source tree. * * Test that timers are not allowed to expire before their scheduled * time. * * Test for a variety of timer values on absolute timers. * Steps: * - get time T0 * - add offset to T0 to give T1 * - set the timer to expire at T1 * - wait for the timer to expire * - get time T2 * - ensure T...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/3-2.c
2,189
utf_8
fd308249fed02971e84e7afcf72be466
/* * source tree. * Test that if value.it_value = 0, the timer is disarmed. Test by * disarming a currently armed timer. * * For this test, signal SIGTOTEST will be used, clock CLOCK_REALTIME * will be used. */ #include <time.h> #include <signal.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #inc...