Branch data Line data Source code
1 : : #include "sute.h"
2 : :
3 : 1 : Return clean(void)
4 : : {
5 : : /* The status that will be returned before exiting */
6 : : /* By default, assumes the function ran without errors */
7 : 1 : Return status = SUCCESS;
8 : :
9 : : // Clear up all temporary files
10 : 1 : const char *command = "chmod -R a+rwX ${TMPDIR};";
11 : :
12 [ + - - + ]: 1 : run(external_call(command,NULL,NULL,COMPLETED,ALLOW_BOTH));
13 : : // Empty relative path resolves to TMPDIR itself, so this removes the whole temporary test root
14 [ + - - + ]: 1 : run(delete_path(""));
15 : :
16 [ + - ]: 1 : if(SUCCESS == status)
17 : : {
18 : 1 : echo(EXTEND,"finished");
19 : : }
20 : :
21 [ - + - - : 1 : deliver(status);
- + + - ]
22 : : }
|