History log of /external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cc7a79ceb1a8ddb7c353b7a133b514d07a9284fb 03-Jul-2015 Maninder Singh <maninder1.s@samsung.com> kernel/mq_timedsend: use ARRAY_SIZE

use ARRAY_SIZE instead of sizeof(a)/sizeof(a[0])

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
605fa3362fd7cef0baa2131be32cf44661783d3e 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Get rid of TEST_CLEANUP

Special thanks to Coccinelle for making this easy job.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
0b9589f3f9c0345b29cfcf7da5a1253c708303eb 27-May-2014 Cyril Hrubis <chrubis@suse.cz> testcases: Constify char *msg variable.

The parse_opts() now returns const char * instead of char * this commit
fixes all warnings caused by the change.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
c57fba5535abf457e33dd7a986b6c512d95cdef6 10-Apr-2014 Mike Frysinger <vapier@gentoo.org> testcases/kernel/syscalls: clean up old style prototypes

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
fdce7d5e2a219d201a2b0e3bab6b61b01ec1d716 04-Apr-2013 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

Remove comments such as:

- /* Test program identifier. */

- /* Total number of test cases. */

- /* Extern Global Variables */

- /* Harness Specific Include Files. */

- /* Standard Include Files */

- /* Parse standard options given to run the test. */

- etc.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
d59a659cd639ca2780b00049d102acd2a783d585 07-Mar-2013 Caspar Zhang <caspar@casparzhang.com> s/Tst_count/tst_count/ to avoid CamelCase

when using latest checkpatch.pl, CamelCase variables are not encouraged,
this patch does a batch update to replace all var `Tst_count` with
`tst_count`.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
89af32a63ce8a780ea39337339e14caae244b5a4 24-Oct-2012 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

This patch removes all dumbious comments as:

/* loop counter */

/* message returned from from parse_opts */

/* parse standard options */

Various variations on:

int i; /* ... counter .... */

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
3f3baa2645102748eaaa295f355d619ffe5a68ff 05-Jul-2011 Carmelo AMOROSO <carmelo.amoroso@st.com> mq_timedsend01: do not write out of the array boundaries.

When preparing the message to be sent, limit the number of written bytes
to the array's size, otherwise it will be detected as a stack smashing attack
and the test case will be killed, as from the output below:

<<<test_start>>>
tag=mq_timedsend01 stime=948808768
cmdline="mq_timedsend01"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop

... [SNIP] ...

mq_timedsend01 0 TINFO : (case04) START
EXPECT: return value(ret)=-1 errno=90 (Message too long)
RESULT: return value(ret)=-1 errno=90 (Message too long)
stack smashing detected: mq_timedsend01 terminated()
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=signaled termination_id=6 corefile=no
cutime=0 cstime=2
<<<test_end>>>

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
e683a86812fc9e4e224a25c3ff9b4688ee1bb672 20-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Remove all unwanted references to TESTDIR.

Apparently my prior commits didn't get them all.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
cd324c51508f1057833f948e4b8bd90d4e18f060 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix compile.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
1569799abe4296fc5ca50ede305c1eb2ac482422 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix some tests. Remove all externs to Tst_count.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
60fa8014af7534eaefa901200c8df4b74ce422e6 22-Nov-2010 Garrett Cooper <yanegomi@gmail.com> More meaningful cleanup with making options parsing errors consistent.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
45e285d46ab47b0ff76c88acb5ba97b0bd5f753d 22-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Remove useless casts.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
266ec972a295c18e2011a5e4445e301e68bee1a9 18-Oct-2009 subrata_modak <subrata_modak> Change use of signal to sigaction for more reliability, fix time issue:
Here are three patches the help with the issue where these tests miss a signal and hang. The original patches were created before the latest check-ins by jpalecek@web.de , but I believe they still help. I've regenerated the patches against CVS source and tested on a multi-core machine running MVL6 (x86 2.6.28). The clock_nanosleep01 patch changes signal to the more reliable sigaction(). mq_timedsend01 patch changes from signal() to sigaction() and corrects the time-specs used by the test. Timespec's passed to mq_timedsend are abs time, not relative time. The patch adds the current time to convert relative time to abs time but only if the change won't invalidate the test objective. For example, if the test would have passed -1 for tv_sec to cause an invalid time error, adding the current time would prevent the expected error. mq_timedrecieve01.patch changes from signal() to sigaction() and corrects the time-specs used by the test. Timespec's passed to mq_timedreceive are abs time, not relative time. The patch adds the current time to convert relative time to abs time but only if the change won't invalidate the test objective. For example, if the test would have passed -1 for tv_sec to cause an invalid time error, adding the current time would prevent the expected error. The timeout for SIGINT test is extended to allow time for the signal to arrive.
Original patches provided by Randy Vinson <rvinson@mvista.com>,
Signed-off by: Henry Yei <hyei@mvista.com>,
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
d37e1b1718b73b4848a6fdd0b3c719ada7cfae64 27-Sep-2009 subrata_modak <subrata_modak> Add a count parameter to create_sig_proc: there were complaints about some tests (ppoll01) hanging sometimes. I've created this patch to address the issue. This should allow testing inherently racy conditions, such as a syscall returning EINTR upon signal handler execution. The problem here is that the signal could actually arrive before the syscall gets executed, which results in the test waiting for it forever. The solution is adding a parameter that would allow to specify how much signals a particular test expects - a racy test would ask for a large number of signals sent, so it will get one even if some were missed. Tests, which test behavior, which is not racy (eg. pselect()) should only request a single signal. Note that you need to manually kill the child process delivering the signals when you don't need them, if you ordered more signals than you actually handle. Also, this patch resets signal handling in child process created in create_sig_proc. This should avoid the child calling the parent's signal handlers and interfering with parent's cleanup process. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c
fc114edecaa84ef26c9f488b43c4e69ee30d51fd 29-May-2009 subrata_modak <subrata_modak> Add/Port mq_timedsend01 test for mq_timedsend() syscall. Signed-off-by: Manas Kumar Nayak <maknayak@in.ibm.com>.
/external/ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c