2 #include <proto/alib.h>
4 #include "systemtags.h"
7 #include <aros/debug.h>
13 /* Execute and wait */
14 result
= SystemTags("Echo Synchronous Test", NULL
);
15 Printf("Execution results %ld == 0 ?\n", result
);
17 /* Start asynchronous */
18 result
= SystemTags("Echo Asynchronous Test",
19 SYS_Asynch
, TRUE
, SYS_Input
, SYS_DupStream
, SYS_Output
, SYS_DupStream
,
22 Printf("Execution results %ld == 0 ?\n", result
);
24 /* Start non-existing command asynchronous */
25 result
= SystemTags("DoesntExist",
26 SYS_Asynch
, TRUE
, SYS_Input
, SYS_DupStream
, SYS_Output
, SYS_DupStream
,
29 Printf("Execution results %ld == 0 ?\n", result
);
31 /* Test with duplicated Input/Output stream */
32 result
= SystemTags("systemtags_slave dont print",
33 SYS_Input
, SYS_DupStream
, SYS_Output
, SYS_DupStream
,
36 Printf("Execution results %ld == 0 ?\n", result
);
38 /* Test passing of Input/Output streams */
41 data
.output
= Output();
42 D(bug("[systemtags]Input: %p, Output: %p\n", data
.input
, data
.output
));
44 __sprintf(buf
, "systemtags_slave %p", &data
);
45 result
= SystemTags(buf
, SYS_Input
, BNULL
, SYS_Output
, BNULL
,
48 Printf("Execution results %ld == 0 ?\n", result
);