mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[KMTESTS]
- add skip() functionality (with more useful syntax than Wine's) - add format attributes for GCC - do not show the full path of the source file for failed tests - general cleanup svn path=/branches/GSoC_2011/KMTestSuite/; revision=52489
This commit is contained in:
parent
7a0fe29b5e
commit
991bc0e366
5 changed files with 131 additions and 46 deletions
|
@ -25,10 +25,20 @@ START_TEST(Example)
|
|||
ok_eq_ulong(3LU, 4LU);
|
||||
ok_eq_pointer((PVOID)8, (PVOID)9);
|
||||
ok_eq_hex(0x1234LU, 0x5678LU);
|
||||
ok_eq_bool(TRUE, TRUE);
|
||||
ok_eq_bool(TRUE, FALSE);
|
||||
ok_eq_bool(FALSE, TRUE);
|
||||
ok_bool_true(FALSE, "foo");
|
||||
ok_bool_false(TRUE, "bar");
|
||||
ok_eq_print(1, 2, "%i");
|
||||
ok_eq_str("Hello", "world");
|
||||
ok_eq_wstr(L"ABC", L"DEF");
|
||||
|
||||
if (!skip(KeGetCurrentIrql() == HIGH_LEVEL, "This should only work on HIGH_LEVEL\n"))
|
||||
{
|
||||
/* do tests depending on HIGH_LEVEL here */
|
||||
ok(1, "This is fine\n");
|
||||
}
|
||||
|
||||
KeLowerIrql(Irql);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue