add testcases for #732 #1065 #1102

This commit is contained in:
Ken Sato
2018-06-07 10:11:23 +09:00
parent 139123dc12
commit 9bb48186e6
35 changed files with 1653 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#define CMD_SIZE 128
int main(void)
{
char command[CMD_SIZE];
memset(command, '0', CMD_SIZE);
sprintf(command, "cat /proc/%d/maps", getpid());
system(command);
memset(command, '0', CMD_SIZE);
sprintf(command, "cat /proc/%d/cmdline 1>&2", getpid());
system(command);
return 0;
}