Changeset 4b374f36 in rtems for c/src/tests/mptests
- Timestamp:
- 08/17/95 19:36:43 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 3b438fa
- Parents:
- 556fb911
- Location:
- c/src/tests/mptests
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/mptests/mp01/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:00:40 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ … … 26 25 /* structures */ 27 26 28 #include "gvar.h"27 #include <gvar.h> 29 28 30 29 /* end of include file */ -
c/src/tests/mptests/mp02/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:01:00 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp03/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:01:22 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp04/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:01:40 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp05/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:02:00 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp06/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:02:18 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 -
c/src/tests/mptests/mp07/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:02:38 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 #define EXTERN extern /* external definition */ -
c/src/tests/mptests/mp08/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:02:55 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp09/init.c
r556fb911 r4b374f36 20 20 * notice must appear in all copies of this file and its derivatives. 21 21 * 22 * $Id$22 * init.c,v 1.2 1995/05/31 17:03:11 joel Exp 23 23 */ 24 24 … … 50 50 Queue_name[ 1 ], 51 51 3, 52 RTEMS_GLOBAL|RTEMS_LIMIT, 52 16, 53 RTEMS_GLOBAL, 53 54 &Queue_id[ 1 ] 54 55 ); -
c/src/tests/mptests/mp09/node1/mp09.scn
r556fb911 r4b374f36 11 11 Receiving message ... 12 12 Received : ABCDEFGHIJKLMNO 13 Receiver delaying for a second 13 14 rtems_message_queue_send: 123456789012345 14 15 Delaying for a second -
c/src/tests/mptests/mp09/node2/mp09.scn
r556fb911 r4b374f36 17 17 Receiving message ... 18 18 Received : ABCDEFGHIJKLMNO 19 Receiver delaying for a second 19 20 Flushing remote empty queue 20 0 0messages were flushed on the remote queue21 0 messages were flushed on the remote queue 21 22 Send messages to be flushed from remote queue 22 23 Flushing remote queue 23 01 messages were flushed on the remote queue24 1 messages were flushed on the remote queue 24 25 Waiting for message queue to be deleted 25 26 26 Global message queue deleted 27 27 *** END OF TEST 9 *** -
c/src/tests/mptests/mp09/recvmsg.c
r556fb911 r4b374f36 16 16 * notice must appear in all copies of this file and its derivatives. 17 17 * 18 * $Id$18 * recvmsg.c,v 1.2 1995/05/31 17:03:14 joel Exp 19 19 */ 20 20 … … 25 25 rtems_status_code status; 26 26 rtems_unsigned32 index; 27 rtems_unsigned32 size; 27 28 char receive_buffer[16]; 28 29 … … 32 33 Queue_id[ 1 ], 33 34 (long (*)[4])receive_buffer, 35 &size, 34 36 RTEMS_DEFAULT_OPTIONS, 35 37 RTEMS_NO_TIMEOUT -
c/src/tests/mptests/mp09/sendmsg.c
r556fb911 r4b374f36 16 16 * notice must appear in all copies of this file and its derivatives. 17 17 * 18 * $Id$18 * sendmsg.c,v 1.2 1995/05/31 17:03:16 joel Exp 19 19 */ 20 20 … … 29 29 puts( buffer1 ); 30 30 31 status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1 );31 status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1, 16 ); 32 32 directive_failed( status, "rtems_message_queue_send" ); 33 33 … … 38 38 puts_nocr( "rtems_message_queue_urgent: " ); 39 39 puts( buffer2 ); 40 status = rtems_message_queue_urgent( Queue_id[ 1 ], (long (*)[4])buffer2 );40 status = rtems_message_queue_urgent( Queue_id[ 1 ], (long (*)[4])buffer2, 16 ); 41 41 directive_failed( status, "rtems_message_queue_urgent" ); 42 42 … … 50 50 Queue_id[ 1 ], 51 51 (long (*)[4])buffer3, 52 16, 52 53 &broadcast_count 53 54 ); -
c/src/tests/mptests/mp09/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:03:17 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp09/task1.c
r556fb911 r4b374f36 17 17 * notice must appear in all copies of this file and its derivatives. 18 18 * 19 * $Id$19 * task1.c,v 1.2 1995/05/31 17:03:19 joel Exp 20 20 */ 21 21 … … 33 33 rtems_status_code status; 34 34 rtems_unsigned32 count; 35 rtems_unsigned32 size; 35 36 char receive_buffer[16]; 36 37 … … 65 66 status = rtems_message_queue_flush( Queue_id[ 1 ], &count ); 66 67 directive_failed( status, "rtems_message_queue_flush" ); 67 printf( "% 02d messages were flushed on the remote queue\n", count );68 printf( "%d messages were flushed on the remote queue\n", count ); 68 69 69 70 puts( "Send messages to be flushed from remote queue" ); 70 status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1 );71 status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1, 16 ); 71 72 directive_failed( status, "rtems_message_queue_send" ); 72 73 … … 74 75 status = rtems_message_queue_flush( Queue_id[ 1 ], &count ); 75 76 directive_failed( status, "rtems_message_queue_flush" ); 76 printf( "% 02d messages were flushed on the remote queue\n", count );77 printf( "%d messages were flushed on the remote queue\n", count ); 77 78 78 79 puts( "Waiting for message queue to be deleted" ); … … 80 81 Queue_id[ 1 ], 81 82 (long (*)[4])receive_buffer, 83 &size, 82 84 RTEMS_DEFAULT_OPTIONS, 83 85 RTEMS_NO_TIMEOUT -
c/src/tests/mptests/mp10/init.c
r556fb911 r4b374f36 26 26 * notice must appear in all copies of this file and its derivatives. 27 27 * 28 * $Id$28 * init.c,v 1.2 1995/05/31 17:03:33 joel Exp 29 29 */ 30 30 … … 59 59 Queue_name[ 1 ], 60 60 3, 61 RTEMS_GLOBAL|RTEMS_LIMIT, 61 16, 62 RTEMS_GLOBAL, 62 63 &Queue_id[ 1 ] 63 64 ); -
c/src/tests/mptests/mp10/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:03:35 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp10/task1.c
r556fb911 r4b374f36 17 17 * notice must appear in all copies of this file and its derivatives. 18 18 * 19 * $Id$19 * task1.c,v 1.2 1995/05/31 17:03:37 joel Exp 20 20 */ 21 21 … … 27 27 { 28 28 char receive_buffer[16]; 29 rtems_unsigned32 size; 29 30 rtems_status_code status; 30 31 … … 43 44 Queue_id[ 1 ], 44 45 (long (*)[4])receive_buffer, 46 &size, 45 47 RTEMS_DEFAULT_OPTIONS, 46 48 RTEMS_NO_TIMEOUT -
c/src/tests/mptests/mp11/init.c
r556fb911 r4b374f36 23 23 * notice must appear in all copies of this file and its derivatives. 24 24 * 25 * $Id$25 * init.c,v 1.2 1995/05/31 17:03:55 joel Exp 26 26 */ 27 27 … … 70 70 Queue_name[ 1 ], 71 71 3, 72 RTEMS_GLOBAL|RTEMS_LIMIT, 72 16, 73 RTEMS_GLOBAL, 73 74 &junk_id 74 75 ); -
c/src/tests/mptests/mp11/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:03:57 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp12/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:04:13 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp13/init.c
r556fb911 r4b374f36 20 20 * notice must appear in all copies of this file and its derivatives. 21 21 * 22 * $Id$22 * init.c,v 1.2 1995/05/31 17:04:29 joel Exp 23 23 */ 24 24 … … 52 52 Queue_name[ 1 ], 53 53 3, 54 RTEMS_GLOBAL|RTEMS_LIMIT, 54 16, 55 RTEMS_GLOBAL, 55 56 &Queue_id[ 1 ] 56 57 ); -
c/src/tests/mptests/mp13/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:04:31 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 17 #include <tmacros.h> 19 18 20 19 /* Miscellaneous */ -
c/src/tests/mptests/mp13/task1.c
r556fb911 r4b374f36 18 18 * notice must appear in all copies of this file and its derivatives. 19 19 * 20 * $Id$20 * task1.c,v 1.2 1995/05/31 17:04:33 joel Exp 21 21 */ 22 22 … … 28 28 { 29 29 char receive_buffer[16]; 30 rtems_unsigned32 size; 30 31 rtems_status_code status; 31 32 … … 45 46 Queue_id[ 1 ], 46 47 (long (*)[4])receive_buffer, 48 &size, 47 49 RTEMS_DEFAULT_OPTIONS, 48 50 RTEMS_NO_TIMEOUT … … 59 61 Queue_id[ 1 ], 60 62 (long (*)[4])receive_buffer, 63 &size, 61 64 RTEMS_DEFAULT_OPTIONS, 62 65 2 * TICKS_PER_SECOND -
c/src/tests/mptests/mp14/init.c
r556fb911 r4b374f36 20 20 * notice must appear in all copies of this file and its derivatives. 21 21 * 22 * $Id$22 * init.c,v 1.2 1995/05/31 17:04:55 joel Exp 23 23 */ 24 24 … … 103 103 Queue_name[ 1 ], 104 104 1, 105 16, 105 106 RTEMS_GLOBAL, 106 107 &Queue_id[ 1 ] -
c/src/tests/mptests/mp14/msgtask1.c
r556fb911 r4b374f36 19 19 * notice must appear in all copies of this file and its derivatives. 20 20 * 21 * $Id$21 * msgtask1.c,v 1.2 1995/05/31 17:04:58 joel Exp 22 22 */ 23 23 … … 33 33 rtems_unsigned32 *buffer_count; 34 34 rtems_unsigned32 *overflow_count; 35 rtems_unsigned32 size; 35 36 36 37 Msg_buffer[ index ][0] = 0; … … 54 55 status = rtems_message_queue_send( 55 56 Queue_id[ 1 ], 56 (long (*)[4])Msg_buffer[ index ] 57 (long (*)[4])Msg_buffer[ index ], 58 16 57 59 ); 58 60 directive_failed( status, "rtems_message_queue_send" ); … … 71 73 Queue_id[ 1 ], 72 74 (long (*)[4])Msg_buffer[ index ], 75 &size, 73 76 RTEMS_DEFAULT_OPTIONS, 74 77 RTEMS_NO_TIMEOUT … … 84 87 status = rtems_message_queue_send( 85 88 Queue_id[ 1 ], 86 (long (*)[4])Msg_buffer[ index ] 89 (long (*)[4])Msg_buffer[ index ], 90 16 87 91 ); 88 92 directive_failed( status, "rtems_message_queue_send" ); -
c/src/tests/mptests/mp14/system.h
r556fb911 r4b374f36 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * $Id$14 * system.h,v 1.2 1995/05/31 17:05:03 joel Exp 15 15 */ 16 16 17 #include <rtems.h> 18 #include "tmacros.h" 19 #include "mpci.h" 17 #include <tmacros.h> 18 #include <mpci.h> 20 19 21 20 /* Miscellaneous */
Note: See TracChangeset
for help on using the changeset viewer.