summaryrefslogtreecommitdiff
path: root/410user/progs/exec_basic.c
blob: 5cd2f6d737a635cba54816be86eca2cb42a9a949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/** @file 410user/progs/exec_basic.c
 *  @author mpa
 *  @brief Tests basic functionality of exec()
 *  @public yes
 *  @for p3
 *  @covers exec
 *  @status done
 */

#include <syscall.h>
#include <stdlib.h>
#include <stdio.h>
#include <simics.h>
#include "410_tests.h"

DEF_TEST_NAME("exec_basic:");

int main()
{

  REPORT_LOCAL_INIT;  

  char *name = "exec_basic_helper";
  char *args[] = {name, 0};

  REPORT_START_CMPLT;

  REPORT_ON_ERR(exec(name,args));

	REPORT_END_FAIL;

  exit(-1);
}