Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
33b4819
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
cgroup
firewire
hv
include
lguest
lib
net
nfsd
perf
power
scripts
testing
fault-injection
ktest
selftests
breakpoints
cpu-hotplug
efivarfs
ipc
kcmp
memory-hotplug
mqueue
net
powerpc
copyloops
mm
pmu
tm
Makefile
harness.c
subunit.h
utils.h
ptrace
rcutorture
sysctl
timers
user
vm
Makefile
README.txt
thermal
usb
virtio
vm
Makefile
usr
virt
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
tools
/
testing
/
selftests
/
powerpc
/
utils.h
Blame
Blame
Latest commit
History
History
49 lines (37 loc) · 1008 Bytes
Breadcrumbs
linux
/
tools
/
testing
/
selftests
/
powerpc
/
utils.h
Top
File metadata and controls
Code
Blame
49 lines (37 loc) · 1008 Bytes
Raw
/* * Copyright 2013, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #ifndef _SELFTESTS_POWERPC_UTILS_H #define _SELFTESTS_POWERPC_UTILS_H #include <stdint.h> #include <stdbool.h> /* Avoid headaches with PRI?64 - just use %ll? always */ typedef unsigned long long u64; typedef signed long long s64; /* Just for familiarity */ typedef uint32_t u32; typedef uint8_t u8; int test_harness(int (test_function)(void), char *name); /* Yes, this is evil */ #define FAIL_IF(x) \ do { \ if ((x)) { \ fprintf(stderr, \ "[FAIL] Test FAILED on line %d\n", __LINE__); \ return 1; \ } \ } while (0) /* The test harness uses this, yes it's gross */ #define MAGIC_SKIP_RETURN_VALUE 99 #define SKIP_IF(x) \ do { \ if ((x)) { \ fprintf(stderr, \ "[SKIP] Test skipped on line %d\n", __LINE__); \ return MAGIC_SKIP_RETURN_VALUE; \ } \ } while (0) #define _str(s) #s #define str(s) _str(s) #endif /* _SELFTESTS_POWERPC_UTILS_H */
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
You can’t perform that action at this time.