diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-08-06 14:55:39 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-08-06 15:27:41 +0200 |
| commit | cb436c69d9bcb0330518a48559649c9436ed5e7a (patch) | |
| tree | 1b1d474ad40b0748d3565c51938c1ed79b23f83e /executor/test_linux.h | |
| parent | 56fe5665461fbbc19704e44c23e42d5f6ecb5361 (diff) | |
executor: add some code style checks
Move the test from pkg/csource to executor/
in order to be able to (1) run it on *.cc files,
(2) run on unprocessed *.h files, (3) produce line numbers.
Add a check for missed space after //.
Diffstat (limited to 'executor/test_linux.h')
| -rw-r--r-- | executor/test_linux.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/executor/test_linux.h b/executor/test_linux.h index cdeb72717..96e185175 100644 --- a/executor/test_linux.h +++ b/executor/test_linux.h @@ -96,13 +96,13 @@ static int test_kvm() printf("host kernel version %u\n", ver); // TODO: test VM mode. - //const char text16_vm[] = "\x48\xc7\xc3\xde\xc0\xad\x0b\x90\x90\x48\xc7\xc0\xef\xcd\xab\x00\xf4"; - //if (res = test_one(64, text16_vm, sizeof(text16_vm) - 1, KVM_SETUP_VM, KVM_EXIT_HLT, true)) + // const char text16_vm[] = "\x48\xc7\xc3\xde\xc0\xad\x0b\x90\x90\x48\xc7\xc0\xef\xcd\xab\x00\xf4"; + // if (res = test_one(64, text16_vm, sizeof(text16_vm) - 1, KVM_SETUP_VM, KVM_EXIT_HLT, true)) // return res; - /// TODO: test code executed in interrupt handlers. - //const char text32_div0[] = "\x31\xc0\xf7\xf0"; - //if (res = test_one(32, text32_div0, sizeof(text32_div0)-1, 0, KVM_EXIT_HLT, true)) + // TODO: test code executed in interrupt handlers. + // const char text32_div0[] = "\x31\xc0\xf7\xf0"; + // if (res = test_one(32, text32_div0, sizeof(text32_div0)-1, 0, KVM_EXIT_HLT, true)) // return res; const char text8[] = "\x66\xb8\xde\xc0\xad\x0b"; @@ -147,7 +147,7 @@ static int test_kvm() if ((res = test_one(8, text8_smm, sizeof(text8_smm) - 1, KVM_SETUP_SMM | KVM_SETUP_PROTECTED, KVM_EXIT_HLT, true))) return res; - //const char text32_smm[] = "\xb8\xde\xc0\xad\x0b"; + // const char text32_smm[] = "\xb8\xde\xc0\xad\x0b"; if ((res = test_one(32, text8_smm, sizeof(text8_smm) - 1, KVM_SETUP_SMM, KVM_EXIT_HLT, true))) return res; |
