summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp13/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-22 10:17:41 -0500
committerJoel Sherrill <joel@rtems.org>2016-03-24 11:41:21 -0500
commitb66394df632e703fecb536e356fdad27291c7fbc (patch)
treed2b737b832c0457faeb8b079eacf06467f1d84be /testsuites/sptests/sp13/task1.c
parentlibmisc/shell/main_hexdump.c: Disable unused copyright string (diff)
downloadrtems-b66394df632e703fecb536e356fdad27291c7fbc.tar.bz2
sp13/task1.c: Remove warning for misleading indentation
Fix a block of off-by-one indentation and add braces to clarify intention.
Diffstat (limited to 'testsuites/sptests/sp13/task1.c')
-rw-r--r--testsuites/sptests/sp13/task1.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c
index e104e8da07..c27beda842 100644
--- a/testsuites/sptests/sp13/task1.c
+++ b/testsuites/sptests/sp13/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2011, 2016.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -339,28 +339,29 @@ rtems_test_pause();
RTEMS_DEFAULT_OPTIONS,
1 * rtems_clock_get_ticks_per_second()
);
- directive_failed(status, "rtems_message_queue_receive exact size");
- if (size != queue_size) {
- puts("TA1 - exact size size match failed");
- rtems_test_exit(1);
- }
-
- if (memcmp(big_send_buffer, big_receive_buffer, size) != 0) {
- puts("TA1 - exact size data match failed");
- rtems_test_exit(1);
- }
+ directive_failed(status, "rtems_message_queue_receive exact size");
+ if (size != queue_size) {
+ puts("TA1 - exact size size match failed");
+ rtems_test_exit(1);
+ }
- for (cp = (big_receive_buffer + size);
- cp < (big_receive_buffer + sizeof(big_receive_buffer));
- cp++)
- if (*cp != 'Z') {
- puts("TA1 - exact size overrun match failed");
+ if (memcmp(big_send_buffer, big_receive_buffer, size) != 0) {
+ puts("TA1 - exact size data match failed");
rtems_test_exit(1);
}
- /* all done with this one; delete it */
- status = rtems_message_queue_delete( Queue_id[ 1 ] );
- directive_failed( status, "rtems_message_queue_delete" );
+ for (cp = (big_receive_buffer + size);
+ cp < (big_receive_buffer + sizeof(big_receive_buffer));
+ cp++) {
+ if (*cp != 'Z') {
+ puts("TA1 - exact size overrun match failed");
+ rtems_test_exit(1);
+ }
+ }
+
+ /* all done with this one; delete it */
+ status = rtems_message_queue_delete( Queue_id[ 1 ] );
+ directive_failed( status, "rtems_message_queue_delete" );
}
TEST_END();