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 | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-1.c | 2,207 | utf_8 | fbab6a57a047e267e91403cd4c6ad045 | /*
* source tree.
* Test that pthread_exit()
*
* terminates the calling thread and makes the value 'value_ptr' available
* to any successful join with the terminating thread.
*
* Steps:
* 1. Create a new thread. Have it return a return code on pthread_exit();
* 2. Call pthread_join() in main(), and pass to ... |
google | android | 2-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c | 6,125 | utf_8 | 38530e8b3e7fa1f8cb5564e1b4c7ffa9 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* Pending cancelation cleanup handlers are executed in FILO order.
* The steps are:
*
* -> Create threads with different attributes (but all must be joinable)
* -> inside the thread,
*... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c | 6,026 | utf_8 | 20daa673c5e39f6ec9b89338644cd8e5 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* No atexit() registered routine shall be called because of pthread_exit().
* The steps are:
*
* -> Create threads with different attributes (but all must be joinable)
* -> inside the t... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/6-1.c | 8,538 | utf_8 | 54b21cb5d5e940d839f0da54a3d7a22a | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* If the calling thread is the last thread in the process,
* the effect are as if an implicit call to exit(0) had been made.
* The steps are:
*
* -> main creates a thread.
* -> this thre... |
google | android | 3-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/3-3.c | 2,200 | utf_8 | 1ba06ce6877996930b8cdd1d5f3cc05c | /*
*
* Test that pthread_mutex_getprioceiling() fails because:
*
* [EINVAL]
* The protocol attribute of mutex is PTHREAD_PRIO_NONE.
*
* by explicitly specifying the protocol as PTHREAD_PRIO_NONE.
*
* Steps:
* 1. Initialize a pthread_mutexattr_t object with pthread_mutexattr_init()
* 2. Explicitly set t... |
google | android | 3-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/3-2.c | 2,163 | utf_8 | a8e6c28c7ecb46910e8b16448b4c44e7 | /*
*
* Test that pthread_mutex_getprioceiling() fails because:
*
* [EINVAL]
* The protocol attribute of mutex is PTHREAD_PRIO_NONE.
*
* by explicitly specifying the protocol as PTHREAD_PRIO_NONE.
*
* Steps:
* 1. Initialize a pthread_mutexattr_t object with pthread_mutexattr_init()
* 2. Explicitly set t... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/3-1.c | 1,738 | utf_8 | b2ea76f6a34701889d04746465560951 | /*
*
* Test that pthread_mutex_getprioceiling() fails because:
*
* [EINVAL]
* The protocol attribute of mutex is PTHREAD_PRIO_NONE.
*
* by not specifying PTHREAD_PRIO_NONE and noting that the default (as per
* pthread_mutexattr_getprotocol) is PTHREAD_PRIO_NONE.
*
* Steps:
* 1. Initialize a mutex via pt... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_getprioceiling/1-1.c | 1,932 | utf_8 | ad37682248c991c63ba17f9b452cd791 | /*
*
* Test that pthread_mutex_getprioceiling() returns the current prioceiling of
* the mutex with PTHREAD_PRIO_PROTECT.
*
* Steps:
* 1. Initialize a pthread_mutexattr_t object with pthread_mutexattr_init()
* 2. Set the protocol using PTHREAD_PRIO_PROTECT.
* 3. Call pthread_mutex_getprioceiling() to obtain ... |
google | android | 21-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/21-1.c | 1,101 | utf_8 | 2bb8e0aa110a69cae9add23cdf235467 | /*
* source tree.
*/
/*
* Test that if mq_open() is not successful, it will return (mqd_t)-1
* and set errno to indicate the error.
*
* Error case used is when O_CREAT is not set and the named message
* queue does not exist.
* Test that errno is set will be part of assertion 29.
*/
#include <stdio.h>
#include ... |
google | android | 9-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/9-2.c | 4,154 | utf_8 | 00f40d1c97b64ed6c3b230e2492bd3b3 | /*
* source tree.
*/
/*
* Test that if the access mode is O_RDWR, the message queue can
* send and receive messages.
*
* Test for a message queue opened twice in two different processes.
*
* 3/13/03 - Added fix from Gregoire Pichon for specifying an attr
* with a mq_maxmsg >= BUFFER.
*/
#include <sy... |
google | android | 20-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/20-1.c | 1,609 | utf_8 | f3931d7c365fdac717eb01dbbfef8821 | /*
* source tree.
*/
/*
* Another basic test that mq_open() returns a valid message queue
* descriptor on success.
*
* Test as in 1-1.c. To make this different, call mq_notify on the
* message queue descriptor returned.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <signal.h>
#include <... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/7-1.c | 2,670 | utf_8 | f8bd85ae14d815373d06bb2133a0ba33 | /*
* source tree.
*/
/*
* Test that if the access mode is O_RDONLY, the message queue can
* receive messages but not send.
*
* Test for a message queue opened twice in the same process.
*
* 3/13/03 - Added fix from Gregoire Pichon for specifying an attr
* with a mq_maxmsg >= BUFFER.
*/
#include <std... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/2-1.c | 3,478 | utf_8 | 6a2841aa8521feac4af7d023da74e3fe | /*
* source tree.
*/
/*
* Test that if the first letter of name is "/", any other processes
* calling the message queue with that name will refer to the same
* message queue object.
*
* Test by creating a message queue and placing a message within it. Then,
* in another process open the first message queue and... |
google | android | 9-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/9-1.c | 3,066 | utf_8 | 3bf465ba2289707c17a54f648627e0ea | /*
* source tree.
*/
/*
* Test that if the access mode is O_RDWR, the message queue can
* send messages and receive messages.
*
* Test for a message queue opened twice in the same process.
*
* Note: Not testing that the message sent/received is the one expected
* (that would be part of mq_send(), mq_receive()... |
google | android | 11-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/11-1.c | 2,031 | utf_8 | 4e43abc6d2b8acf1d8e9b15a8941b936 | /*
* source tree.
*/
/*
* Test that if O_CREAT is set and name has already been used to create
* a currently existing message queue, then the current call has no effect.
*
* Just test by calling O_CREAT again and ensure mq_send works again (i.e.,
* Basically just testing that using O_CREAT twice doesn't break an... |
google | android | 16-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/16-1.c | 3,524 | utf_8 | b06599342bafb2b8b5a2554fbc793104 | /*
* source tree.
*/
/*
* Test that tests to check if O_CREAT and O_EXCL are set that no other
* message queue exists are atomic.
*
* Test case will just attempt to call mq_open() with O_CREAT and O_EXCL
* using the same name in two different processes. If one process fails,
* the test is considered a pass.
*... |
google | android | 19-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/19-1.c | 2,591 | utf_8 | 37b899258eb437a0cd261ffcb355740f | /*
* source tree.
*/
/*
* Test that mq_open() does not add messages to the queue or remove
* messages from the queue.
*
* Test using mq_send and mq_receive:
* - Call mq_open() for non-blocking queue
* - Verify mq_receive() fails (because nothing should be in the queue yet)
* - Call mq_send() to put something i... |
google | android | 23-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/23-1.c | 1,664 | utf_8 | 377636f6372661e3d786fdce785df979 | /*
* source tree.
*/
/*
* Test that mq_open() fails with EEXIST if O_CREAT and O_EXCL are set
* but the message queue already exists.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "posixt... |
google | android | 7-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/7-3.c | 1,344 | utf_8 | 1b43d1f7eebe7f1a1bcdb6c8fd84d35d | /*
* source tree.
*/
/*
* Test that a message queue can be opened more than once for read-only
* in the same process.
*
* Note: Just testing that it can be opened. No tests that it truly
* is read-only (that's 7-1.c and 7-2.c)
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
... |
google | android | 7-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/7-2.c | 3,759 | utf_8 | c90df4391621eb57c41aa0c69043f3ca | /*
* source tree.
*/
/*
* Test that if the access mode is O_RDONLY, the message queue can
* receive messages but not send.
*
* Test for a message queue opened twice in two different processes.
*
* 3/13/03 - Added fix from Gregoire Pichon for specifying an attr
* with a mq_maxmsg >= BUFFER.
*/
#inclu... |
google | android | 27-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/27-1.c | 1,377 | utf_8 | 2b05e83dd6f72fca6c0070da397a45a1 | /*
* source tree.
*/
/*
* Test that mq_open() fails with ENAMETOOLONG if the name parameter's
* length is greater than PATH_MAX.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#... |
google | android | 13-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/13-1.c | 1,696 | utf_8 | a6be6557f8a818d528f52a2e744c3d17 | /*
* source tree.
*/
/*
* Test that if O_CREAT is set and attr != NULL, then mq_maxmsg and
* mq_msgsize are as defined in attr.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include "posixtest.h"
#define NAMESIZE 5... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/3-1.c | 986 | utf_8 | d857e18d26297cabd885091c56642142 | /*
* source tree.
*/
/*
* Test that mq_open() returns an error if creation is not requested and
* name does not refer to an already existing message queue.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include "pos... |
google | android | 25-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/25-2.c | 2,413 | utf_8 | 5a64a32c5f16dc264e3e6fae8775d176 | /*
* source tree.
*/
/*
* Test that mq_open() fails with EINVAL if O_CREAT was set in oflag,
* attr != NULL, and either mq_maxmsg <= 0 or mq_msgsize <= 0.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdi... |
google | android | 27-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/27-2.c | 1,470 | utf_8 | 1f3fe2c2fed5ebea4499ce4211bba20d | /*
* source tree.
*/
/*
* Test that mq_open() fails with ENAMETOOLONG if a component of the
* name is greater than NAME_MAX.
*
* Since a component == the full name, this test will be identical to
* 27-1.c for NAME_MAX.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <... |
google | android | 29-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/29-1.c | 1,142 | utf_8 | 34351ecfdaacadaa10676deaa806ca4a | /*
* source tree.
*/
/*
* Test that mq_open() fails with ENOENT if the named message queue does
* not yet exist, but O_CREAT is not set.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "pos... |
google | android | 12-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/12-1.c | 1,356 | utf_8 | aa969b1cdd7adc3bedcdfd87b9d0bedd | /*
* source tree.
*/
/*
* Test that if O_CREAT is set and attr == NULL, implementation defined
* attributes are used.
*
* Just test that mq_getattr() can be called after mq_open() is called
* with attr == NULL.
*
* Otherwise, this really cannot be tested as attributes are implementation-
* defined.
*/
#inclu... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/1-1.c | 1,296 | utf_8 | 317f6ec6ba592e086000c439ece3df94 | /*
* source tree.
*/
/*
* Basic test that mq_open() returns a valid message descriptor.
* Test by calling mq_open() and then verifying that that descriptor can
* be used to call mq_send().
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>... |
google | android | 8-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/8-2.c | 4,121 | utf_8 | 85d3f0736bb2b02d7e9dc8e1395ca56a | /*
* source tree.
*/
/*
* Test that if the access mode is O_WRONLY, the message queue can
* send messages but not receive.
*
* Test for a message queue opened twice in two different processes.
*
* 3/13/03 - Added fix from Gregoire Pichon for specifying an attr
* with a mq_maxmsg >= BUFFER.
*/
#inclu... |
google | android | 15-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/15-1.c | 1,378 | utf_8 | 1f860fb90a69920757908807bc70bcd5 | /*
* source tree.
*/
/*
* Test that if O_EXCL and O_CREAT are set and message queue name already
* exists, mq_open() fails.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include "posixtest.h"
#define NAMESIZE 50
in... |
google | android | 18-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/18-1.c | 1,302 | utf_8 | 303f8b48117aa7c834ee3543246a1ed0 | /*
* source tree.
*/
/*
* Basic test that O_NONBLOCK can be set. The functionality of O_NONBLOCK
* is tested in the mq_send and mq_receive test cases.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include "posixte... |
google | android | 8-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/8-1.c | 2,952 | utf_8 | 366ebdeb8b845a0b4fe56f7abc7f4ff7 | /*
* source tree.
*/
/*
* Test that if the access mode is O_WRONLY, the message queue can
* send messages but not receive.
*
* Test for a message queue opened twice in the same process.
*
* 3/13/03 - Added fix from Gregoire Pichon for specifying an attr
* with a mq_maxmsg >= BUFFER.
*/
#include <std... |
google | android | 26-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/speculative/26-1.c | 2,493 | utf_8 | c73f19f24f79f2e16ae6657b2cb68f6d | /*
* source tree.
*/
/*
* Test that mq_open() fails with EMFILE if there are too many message
* queue descriptors or file descriptors in use by the process calling mq_open.
*
* Test by calling mq_open() _POSIX_OPEN_MAX+1 or _POSIX_MQ_OPEN_MAX+1 times.
* If it fails, assume it was because there were too many mess... |
google | android | 2-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/speculative/2-3.c | 1,109 | utf_8 | 5210d26ca126077155dc3973e2ea0e87 | /*
* source tree.
*/
/*
* Test that if there are two /s in a message queue name, the behavior
* is implementation defined.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include "posixtest.h"
#define NAMESIZE 50
int... |
google | android | 2-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/speculative/2-2.c | 1,108 | utf_8 | e91671b7390bb8e7e5936c0f6fc5e0e2 | /*
* source tree.
*/
/*
* Test that if the first letter of name is not "/" the behavior
* is implementation defined.
*/
#include <stdio.h>
#include <mqueue.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include "posixtest.h"
#define NAMESIZE 50
int main(... |
google | android | 6-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/speculative/6-1.c | 1,205 | utf_8 | 7309f3199a969475fba0265654f9bda0 | /*
* source tree.
*/
/*
* Brief test that oflag is a bitwise-inclusive OR of only one of
* O_RDONLY, O_WRONLY, O_RDWR. Other aspects of assertion 6 are tested
* in subsequent assertions (7-9).
*
* Moved to speculative/ as behavior for invalid flags isn't really
* defined by POSIX.
*/
#include <stdio.h>
#inclu... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/2-1.c | 2,515 | utf_8 | a7ac049cb6e5f794ad016d697dbf757f | /*
* source tree.
* Test that pthread_key_delete()
*
pthread_key_delete function shall be callable from within destructor functions. No
destructor functions shall be invoked by pthread_key_delete. Any destructor function
that may have been associated with 'key' shall no longer be called up thread exit.
*
*... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/1-2.c | 1,791 | utf_8 | 5fb111b9b2dec2cb311fccc8383354a7 | /*
* source tree.
* Test that pthread_key_delete()
*
* Shall delete a thread-specific data key previously returned by pthread_key_create. The
* thread-specific data values specified data values associated with 'key' need not be NULL at
* the time pthread_key_delete is called. It is the responsibility of the app... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/1-1.c | 1,633 | utf_8 | 784eaf9789495422422eecffb47e853c | /*
* source tree.
* Test that pthread_key_delete()
*
* Shall delete a thread-specific data key previously returned by pthread_key_create. The
* thread-specific data values specified data values associated with 'key' need not be NULL at
* the time pthread_key_delete is called. It is the responsibility of the app... |
google | android | 7-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/7-1.c | 1,169 | utf_8 | 0edfd70f697b0f04d24389df0e8f752f | /*
* source tree.
*
* The fsync() function shall fail if:
* [EINVAL] The fildes argument does not refer to a file
* on which this operation is possible.
*
* Test Step:
* 1. Create a pipe;
* 2. fsync on the pipe, should fail with EINVAL;
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/5-1.c | 820 | utf_8 | 98ebf3bf9361c43bdce0e4a59af7bcba | /*
* source tree.
* The fsync() function shall fail if:
* [EBADF] The fildes argument is not a valid descriptor.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include "pos... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/4-1.c | 1,540 | utf_8 | 2db9165f8430122a2ba8097ee7ce8596 | /*
* source tree.
* Upon successful completion, fsync() shall return 0.
* Otherwise, .1 shall be returned and errno set
* to indicate the error. If the fsync() function fails.
*
* 1. Create a regular file;
* 2. Write a few bytes to the file, call fsycn(), should return 0;
*
*/
#include <stdio.h>
#include <stdl... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-1.c | 2,890 | utf_8 | 0892009049141bb59f275b450fd40856 | /*
* source tree.
* Test pthread_cancel
* When the cancelation is acted on, the cancelation cleanup handlers for
* 'thread' shall be called.
*
* STEPS:
* 1. Create a thread
* 2. In the thread function, push a cleanup function onto the stack
* 3. Cancel the thread. The cleanup function should be automatically
... |
google | android | 2-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-3.c | 3,344 | utf_8 | c943c4960be66aaa6cc5588443a7ee66 | /*
* source tree.
* Test pthread_cancel()
*
* Any destructors for thread_specific data will be called after
* all cleanup handlers return
*
* Steps:
* 1. Create a new thread.
* 2. Create a thread specific object in the thread with a destructor
* 3. Add a cleanup function in the thread
* 4. Call pthread_c... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/1-2.c | 3,242 | utf_8 | 143cb57bab1999d84692b1da32061354 | /*
* source tree.
* Test pthread_cancel
* Shall request that 'thread' shall be canceled. The target thread's
* cancelability state and type determines when the cancelation takes
* effect.
*
* Test when a thread is PTHREAD_CANCEL_DISABLE
*
* STEPS:
* 1. Create a thread.
* 2. In the thread function, set the s... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/3-1.c | 2,314 | utf_8 | 8b579f978188cf6ec9e7a60b304eb9e3 | /*
* source tree.
*
* Cancellation steps happen asynchronously with respect to
* the pthread_cancel(). The return status of pthread_cancel()
* merely informs the caller whether the cancellation request
* was successfully queued.
*/
#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/5-1.c | 1,565 | utf_8 | 18a2e980e890adbd9828ee651af2873c | /*
* source tree.
* Test pthread_cancel
* It may return an error number of:
* -[ESRCH] No thread could be found corresponding to that thread ID
* It shall not return an error code of [EINTR]
*
* STEPS:
* 1. Create a thread
* 2. Wait 'till the thread has ended execution
* 3. Send a cancel request to the thread ... |
google | android | 1-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/1-3.c | 4,620 | utf_8 | 33dfc6d826e4e0d77c84772aaaac91fa | /*
* source tree.
* Test pthread_cancel
* Shall request that 'thread' shall be canceled. The target thread's
* cancelability state and type determines when the cancelation takes
* effect.
*
* Test when a thread is PTHREAD_CANCEL_ENABLE and PTHREAD_CANCEL_DEFERRED
*
* STEPS:
* 1. Setup a mutex and lock it in ... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/1-1.c | 3,396 | utf_8 | 6ab6126712827967f88b40584f50c8bf | /*
* source tree.
* Test pthread_cancel
* Shall request that 'thread' shall be canceled. The target thread's
* cancelability state and type determines when the cancelation takes
* effect.
*
* Test when a thread is PTHREAD_CANCEL_ENABLE and PTHREAD_CANCEL_ASYNCHRONOUS
*
* STEPS:
* 1. Create a thread.
* 2. In... |
google | android | 2-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-2.c | 2,408 | utf_8 | 3a08d54d41ff9d182f2051bc9de09cdc | /*
* source tree.
* Test pthread_cancel()
*
* Any destructors for thread_specific data will be called
*
* Steps:
* 1. Create a new thread.
* 2. Create a thread specific object in the thread with a destructor
* 3. Call pthread_cancel on the thread.
* 4. Make sure that the destructor was called
*
*/
#incl... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/4-1.c | 1,441 | utf_8 | df912df44f581d28f4d85393dfeb46af | /*
* source tree.
* Test pthread_cancel
* Upon successful completion will return a 0.
*
* STEPS:
* 1. Create a thread
* 2. Cancel that thread
* 3. If pthread_cancel does not return [ESRCH] then it should return 0
*/
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include "posixt... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/1-1.c | 2,019 | utf_8 | a9505fe4e2ca7a47630b762bc2891e9d | /*
* source tree.
* Test pthread_attr_getstacksize()
*
* Steps:
* 1. Initialize pthread_attr_t object (attr)
* 2. set the stacksize to attr
* 3. get the stacksize
*/
#include <pthread.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/param.h>
#include <errno.h>
#... |
google | android | 4-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/4-2.c | 15,938 | utf_8 | 729bbbb510f77711386278088db4b67a | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* When the abstime parameter is invalid,
* the function must return EINVAL and
* the mutex state must not have changed during the call.
* The steps are:
* -> parent (for each mutex type ... |
google | android | 2-6 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-6.c | 10,859 | utf_8 | fe8d20eff37606be414b39d2dd919282 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* This function is a cancelation point: when cancelability
* is PTHREAD_CANCEL_DEFERRED and a cancel request falls, the thread
* must relock the mutex before the first (if any) clean up han... |
google | android | 4-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/4-3.c | 7,795 | utf_8 | d81e67c0149d41265d157e151f5e0b66 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* This sample test aims to check the following assertion:
* The function does not return an error code of EINTR
* The steps are:
*
* -> Create a thread which wait in a condition for a sma... |
google | android | 2-5 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-5.c | 10,606 | utf_8 | 7b48f8b8962204e240457508706259c4 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* While a thread is blocked on a conditionnal variable,
* a dynamic binding exists between this conditionnal variable
* and the mutex which was the second argument.
* This dynamic bindin... |
google | android | 2-7 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-7.c | 16,568 | utf_8 | fae6195536f0360a0361c0752d59eaf1 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* When the function fails because of a timeout,
* it must reacquire the mutex (as when it is successful)
* The steps are:
* -> For each mutex type;
* -> with and without process-shared ... |
google | android | 2-4 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-4.c | 16,448 | utf_8 | 93a31593413df26a1182ef04d0784725 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This sample test aims to check the following assertion:
*
* When the function returns successfully, everything is as if
* the thread had locked the mutex.
*
* The steps are:
* -> For each mutex type;
* -> with and without process-shared primi... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-1.c | 3,762 | utf_8 | a6ab98ad816b11347f257a2f099b70c9 | /*
* source tree.
* Test that pthread_cond_timedwait()
* shall be equivalent to pthread_cond_wait(), except that an error is returned
* if the absolute time specified by abstime passes before the condition cond is
* signaled or broadcasted, or if the absolute time specified by abstime has
* already been p... |
google | android | 2-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-3.c | 3,002 | utf_8 | 85c1f62dcf9dda6d5ade13bcf683ed38 | /*
* source tree.
* Test that pthread_cond_timedwait()
* shall be equivalent to pthread_cond_wait(), except that an error is returned
* if the absolute time specified by abstime has already been passed at the time
* of the call.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <uni... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/3-1.c | 3,192 | utf_8 | 3c166b190857f97f0589aa15b4035323 | /*
* source tree.
* Test that pthread_cond_timedwait()
* Upon successful completion, a value of zero shall be returned.
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include "posixtest.h"
#define INTERVAL 1
#define TIMEOUT 5
static ... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/1-1.c | 3,063 | utf_8 | 91212843474a6ab20e35ed71d23ec0da | /*
* source tree.
* Test that pthread_cond_timedwait()
* shall block on a condition variable. It shall be called with mutex locked
* by the calling thread or undefined behavior results.
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#... |
google | android | 2-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/2-2.c | 3,403 | utf_8 | adb79fafdf6ba24700034bd9ecd6a4a9 | /*
* source tree.
* Test that pthread_cond_timedwait()
* shall be equivalent to pthread_cond_wait(), except that an error is returned
* if the absolute time specified by abstime passes before the condition cond is
* signaled or broadcasted.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#... |
google | android | 4-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/4-1.c | 2,109 | utf_8 | 99f59269e903346eff330d3fba4e1c48 | /*
* source tree.
* Test that pthread_cond_timedwait()
* shall return ETIMEDOUT if the time specified by 'abstime' has passed.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include "posixtest.h"
#define TIMEOUT 3
static struct tes... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_destroy/1-1.c | 1,292 | utf_8 | 15372ff08a75004ab0fae209c9018fe7 | /*
* source tree.
*
* pthread_barrierattr_destroy()
*
* The pthread_barrierattr_destroy() function shall destroy a barrier
* attributes object. A destroyed attr attributes object can be reinitialized
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#includ... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/2-1.c | 1,882 | utf_8 | e07e293903ad26297b3afb3fa62350e6 | /*
* source tree.
* Test that pthread_condattr_setpshared()
*
* If successful, the pthread_condattr_setpshared() function shall return zero;
* The pthread_condattr_setpshared() function may fail if:
* [EINVAL] The new value specified for the attribute is outside the range of legal values
* for that ... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/1-2.c | 2,749 | utf_8 | 9df34bd4e9b2a52577f8d84c10b29e4b | /*
* source tree.
* Test that pthread_condattr_setpshared()
*
* It shall obtain the value of the process-shared attribute from 'attr'.
*
* Explanation: To share a mutex between 2 processes, you need to map shared memory for
* the mutex. So whether the 'type' of the condattr is shared or private, it really wil... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/1-1.c | 2,757 | utf_8 | 46507ca4e850dc1f8762f9780d21d730 | /*
* source tree.
* Test that pthread_condattr_setpshared()
*
* It shall obtain the value of the process-shared attribute from 'attr'.
*
* Explanation: To share a mutex between 2 processes, you need to map shared memory for
* the mutex. So whether the 'type' of the condattr is shared or private, it really wil... |
google | android | 5-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/5-2.c | 4,577 | utf_8 | 18c561a2900c0442ae4307ac30b6d3c4 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This sample test aims to check the following assertion:
* If the mutex type is PTHREAD_MUTEX_RECURSIVE,
* and a thread attempts to unlock an unlocked mutex,
* an error is returned.
* The steps are:
* -> Initialize a recursive mutex
* -> Att... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/2-1.c | 2,876 | utf_8 | c11efbd8c96f09efa82e914aeb8e146d | /*
* source tree.
* Test that pthread_mutex_unlock()
* If there are threads blocked on the mutex object referenced by 'mutex' when
* pthread_mutex_unlock() is called, resulting in the mutex becoming available,
* the scheduling policy shall determine which thread shall acquire the mutex.
* NOTES:
* The de... |
google | android | 3-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/3-1.c | 1,491 | utf_8 | 17219e348bd404fc762a856168c43fc1 | /*
* source tree.
* Test that pthread_mutex_unlock()
* Upon succesful completion, it shall return zero
*
*/
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include "posixtest.h"
int main(void)
{
pthread_mutex_t mutex;
int rc;
/* Initialize a mutex object */
if ((rc = pthread_mutex_init(&mutex, NU... |
google | android | 5-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/5-1.c | 4,910 | utf_8 | 2752cd652dd5aafaf8c7f6aeb397b235 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This sample test aims to check the following assertion:
* If the mutex type is PTHREAD_MUTEX_RECURSIVE,
* and a thread attempts to unlock a mutex that it does not own,
* an error is returned.
* The steps are:
* -> Initialize and lock a recurs... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/1-1.c | 1,489 | utf_8 | a41a7076f5e3be6d08e06ed5fe029ad6 | /*
* source tree.
* Test that pthread_mutex_unlock()
* shall release the mutex object 'mutex'.
* Steps:
* -- Initilize a mutex object
* -- Get the mutex using pthread_mutex_lock()
* -- Release the mutex using pthread_mutex_unlock()
* -- Try to get the mutex using pthread_mutex_trylock()
* -- Releas... |
google | android | 1-2 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/behavior/WIFEXITED/1-2.c | 751 | utf_8 | 508863225d72a6ec182d072137944251 | /*
Test case for assertion #1 of the WIFEXITED macro defined in sys/wait.h
by forking a new process, having the process return 0, and verifying
WIFEXITED returns a non-negative value.
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "posixtest.h"
i... |
google | android | 1-3 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/behavior/WIFEXITED/1-3.c | 771 | utf_8 | 2cd7d7fdbc025ee49716337631d0e40b | /*
Test case for assertion #1 of the WIFEXITED macro defined in sys/wait.h
by forking a new process, having the child SIGABRT, and verifying
WIFEXITED returns zero.
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "posixtest.h"
int main()
{
int s;... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/behavior/WIFEXITED/1-1.c | 756 | utf_8 | e940ca24d67c154c8b677f720c7b24ab | /*
Test case for assertion #1 of the WIFEXITED macro defined in sys/wait.h
by forking a new process, having the process return -1, and then
verifying WIFEXITED returns a non-zero value.
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "posixtest.h"
... |
google | android | 2-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/behavior/timers/2-1.c | 850 | utf_8 | f2e6472f87386540265e55b9c7845ece | /*
* source tree.
*
* Test that TIMER_MAX >= _POSIX_TIMER_MAX
*/
#include <limits.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include "posixtest.h"
int main(void)
{
long scTIMER_MAX = 0;
scTIMER_MAX = sysconf(_SC_TIMER_MAX);
#ifdef DEBUG
printf("TIMER_MAX = %ld\n_POSIX_TIMER_MAX=%ld\n",
... |
google | android | 1-1 | .c | platform/external/ltp/testcases/open_posix_testsuite/conformance/behavior/timers/1-1.c | 917 | utf_8 | 223430a781738d48b337c2c33bb3464c | /*
* source tree.
*
* Test that TIMER_MAX timers can be created.
*
* For this test, clock CLOCK_REALTIME will be used.
*/
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "posixtest.h"
int main(void)
{
timer_t tid;
i... |
google | android | helper | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/helper.c | 4,269 | utf_8 | c27855105dd34061593fc2d5e9edc8ae | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* The purpose of this file is to provide a monitor process
* for the stress/threads/ * / *.c testcases in the OPTS.
*
* The goal is:
* -> if the testcase returns, the monitor returns the error code.
* -> after a specified timeout, the monito... |
google | android | stress | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_getvalue/stress.c | 5,247 | utf_8 | 752c5503576ac340c9d9d590bcac361a | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This stress test aims to test the following assertion:
* sem_getvalue always returns the value of the semaphore at a given time
* during the call into the sval argument.
* The steps are:
* -> Create a named semaphore and an unnamed semaphore, initializ... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_getvalue/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | stress | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/stress.c | 7,547 | utf_8 | 461d418bc714db9ca3102b8b91da8ada | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This stress test aims to test the following assertion:
* pthread_getschedparam() always returns the scheduling parameters of
* the queried thread.
* The steps are:
* -> Create several threads with different scheduling parameters.
* -> create more threa... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | s-c | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/s-c.c | 9,043 | utf_8 | 5109a44ae78159fc2af0972156aedcaf | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a scalability test for the pthread_cond_init function.
* The steps are:
* -> Restrict the memory to 32Mb * SCALABILITY_FACTOR
* -> While there is free memory
* -> allocate memory for 10 cond vars
* -> time = 0
* ->... |
google | android | stress | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/stress.c | 7,124 | utf_8 | 61fcf4beccc2200ae00d108d9dc6508d | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a stress test for the pthread_cond_init function.
* The steps are:
* -> Create some threads
* -> each thread loops on initializing and destroying a condition variable
* -> the whole process stop when receiving signal SIGUSR1
*/
/*... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/testfrmw.c | 1,768 | utf_8 | c518fd5b07318c5668acb2e8bcd21721 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | threads_scenarii | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/threads_scenarii.c | 15,603 | utf_8 | 4a4d6187fde38fab4ea05bfb8a3edeae | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This file is a helper file for the pthread_create tests
* It defines the following objects:
* scenarii: array of struct __scenario type.
* NSCENAR : macro giving the total # of scenarii
* scenar_init(): function to call before use the scenarii arr... |
google | android | s-c1 | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/s-c1.c | 18,462 | utf_8 | bef01848d35f68164acabc2e184b8631 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This scalability sample aims to test the following assertions:
* -> If pthread_create fails because of a lack of a resource, or
PTHREAD_THREADS_MAX threads already exist, EAGAIN shall be returned.
* -> It also tests that the thread creation time... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | s-c1 | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/fork/s-c1.c | 15,292 | utf_8 | b0f22ed45d96ace94fb5f95b50f26960 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This scalability sample aims to test the following assertion:
* -> The fork() duration does not depend on the # of processes in the system
* The steps are:
* -> Create processes until failure
* -> wait for each created process starting before creating ... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/fork/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | s-c1 | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/s-c1.c | 17,595 | utf_8 | 7cb22229de16bce894a9e9282d736513 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This scalability sample aims to test the following assertion:
* -> The sem_open() duration does not depend on the # of opened semaphores
* in the system
* The steps are:
* -> Create semaphores until failure
* The test fails if the sem_open duration... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | threads_scenarii | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/threads_scenarii.c | 18,010 | utf_8 | 5c8bbf2958ad0583704b6992daa3b8ac | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This file is a helper file for the pthread_create tests
* It defines the following objects:
* scenarii: array of struct __scenario type.
* NSCENAR : macro giving the total # of scenarii
* scenar_init(): function to call before use the scenarii arr... |
google | android | stress | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/stress.c | 9,194 | utf_8 | 8efa8d9472f3ea0e98ee94ce523e5a2c | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This stress test aims to test the following assertion:
* -> pthread_self() returns the thread ID of the calling thread.
* Therefore, it never returns the same value for 2 different running threads.
* The steps are:
* -> Create some threads w... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | s-c1 | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/s-c1.c | 17,731 | utf_8 | 8183aa0b6890b045f8c73504456ae84b | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* This scalability sample aims to test the following assertion:
* -> The sem_init() duration does not depend on the # of semaphores
* in the system
* The steps are:
* -> Init semaphores until failure
* The test fails if the sem_init duration tends to... |
google | android | testfrmw | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/testfrmw.c | 2,029 | utf_8 | fe34fe00f0671f7dca61db117e8be805 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a wrapper to use the tests from the NPTL Test & Trace Project
* with either the Linux Test Project or the Open POSIX Test Suite.
* The following function are defined:
* void output_init()
* void output_fini()
* void output(char * ... |
google | android | stress | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/stress.c | 17,813 | utf_8 | 83bf507f5f1604a017d05b18e80bbbf2 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a stress test for the pthread_mutex_lock function.
* The steps are:
* -> For each king of mutex, we create 10*F threads (F is a scalability factor)
* -> we call those threads 1 to 10.
* -> thread 1 sends signal USR2 to the other... |
google | android | s-c1 | .c | platform/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_lock/s-c1.c | 8,737 | utf_8 | 43f9a97cba2c7a44bbe047e761bf2005 | /*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* This file is a scalability test for the pthread_mutex_lock function.
* The goal is to test if there is a limit on the number
* of threads waiting on the same mutex.
* The steps are:
* -> Create 5 mutex with different attributes.
* -> lock the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.