Test "ptrace: support for attaching child_process to parent" on arm64

Change-Id: I752542b6bfbf023d22e91f909518660afbff813c
Refs: #885
This commit is contained in:
Shiratori, Takehiro
2018-11-21 15:16:12 +09:00
committed by Masamichi Takagi
parent cf113d392a
commit f240671fc8
31 changed files with 1260 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#ifndef HEADER_TEST_CHK_H
#define HEADER_TEST_CHK_H
#define CHKANDJUMP(cond, ...) \
do { \
if (cond) { \
fprintf(stderr, " [NG] "); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, " failed\n"); \
goto fn_fail; \
} \
} while(0);
#define OKNG(cond, ...) \
do { \
if (cond) { \
CHKANDJUMP(cond, __VA_ARGS__); \
} else { \
fprintf(stdout, " [OK] "); \
fprintf(stdout, __VA_ARGS__); \
fprintf(stdout, "\n"); \
} \
} while(0);
#endif