Test "sigaction: support for SA_RESETHAND on x86_64" on arm64
Change-Id: I6154134d53d1ee0344e4bc344f302ffaf810c618 Refs: #1031
This commit is contained in:
committed by
Masamichi Takagi
parent
739472bd86
commit
9e57db5427
25
test/mng_mod/issues/1031/arm64/test_chk.h
Normal file
25
test/mng_mod/issues/1031/arm64/test_chk.h
Normal 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
|
||||
Reference in New Issue
Block a user