diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-17 16:31:50 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-17 16:31:50 -0500 |
| commit | 12768c1e2c83b05ea1658470045789a14b6edf4c (patch) | |
| tree | e2dd8f33ba4c3f9f525d092bdbd222422a9b97b1 /tools/testing/selftests/seccomp | |
| parent | a4eff16c54886c11972d6396ce8447b99e097343 (diff) | |
| parent | 1b1fe542b6f010cf6bc7e1c92805e1c0e133e007 (diff) | |
Merge tag 'linux-kselftest-4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan:
"This 14 patch update:
- adds a new test for intel_pstate driver
- adds empty string and async test cases to firmware class tests
- fixes and cleans up several existing tests"
* tag 'linux-kselftest-4.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests: firmware: add empty string and async tests
firmware: actually return NULL on failed request_firmware_nowait()
test: firmware_class: add asynchronous request trigger
test: firmware_class: use kstrndup() where appropriate
test: firmware_class: report errors properly on failure
selftests/seccomp: fix 32-bit build warnings
add breakpoints/.gitignore
add ptrace/.gitignore
update .gitignore in selftests/timers
update .gitignore in selftests/vm
tools, testing, add test for intel_pstate driver
selftest/ipc: actually test it
selftests/capabilities: actually test it
selftests/capabilities: clean up for Makefile
Diffstat (limited to 'tools/testing/selftests/seccomp')
| -rw-r--r-- | tools/testing/selftests/seccomp/test_harness.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/seccomp/test_harness.h b/tools/testing/selftests/seccomp/test_harness.h index fb2841601f2f..a786c69c7584 100644 --- a/tools/testing/selftests/seccomp/test_harness.h +++ b/tools/testing/selftests/seccomp/test_harness.h | |||
| @@ -42,6 +42,7 @@ | |||
| 42 | #define TEST_HARNESS_H_ | 42 | #define TEST_HARNESS_H_ |
| 43 | 43 | ||
| 44 | #define _GNU_SOURCE | 44 | #define _GNU_SOURCE |
| 45 | #include <stdint.h> | ||
| 45 | #include <stdio.h> | 46 | #include <stdio.h> |
| 46 | #include <stdlib.h> | 47 | #include <stdlib.h> |
| 47 | #include <string.h> | 48 | #include <string.h> |
| @@ -370,8 +371,8 @@ | |||
| 370 | __typeof__(_expected) __exp = (_expected); \ | 371 | __typeof__(_expected) __exp = (_expected); \ |
| 371 | __typeof__(_seen) __seen = (_seen); \ | 372 | __typeof__(_seen) __seen = (_seen); \ |
| 372 | if (!(__exp _t __seen)) { \ | 373 | if (!(__exp _t __seen)) { \ |
| 373 | unsigned long long __exp_print = (unsigned long long)__exp; \ | 374 | unsigned long long __exp_print = (uintptr_t)__exp; \ |
| 374 | unsigned long long __seen_print = (unsigned long long)__seen; \ | 375 | unsigned long long __seen_print = (uintptr_t)__seen; \ |
| 375 | __TH_LOG("Expected %s (%llu) %s %s (%llu)", \ | 376 | __TH_LOG("Expected %s (%llu) %s %s (%llu)", \ |
| 376 | #_expected, __exp_print, #_t, \ | 377 | #_expected, __exp_print, #_t, \ |
| 377 | #_seen, __seen_print); \ | 378 | #_seen, __seen_print); \ |
