add strace test cases and test result

This commit is contained in:
Tomoki Shirasawa
2017-11-25 17:37:10 +09:00
parent 5cc738d6bd
commit 3b6056fb1a
7 changed files with 174 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
#define __BSD_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/user.h>
#include <sys/syscall.h>
#include <fcntl.h>
#include <errno.h>
int
main(int argc, char **argv)
{
syscall(SYS_gettid);
open("/", O_WRONLY);
syscall(9999);
exit(15);
}