-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from RadWolfie/update-global-tests-p2
Update global tests (part 2)
- Loading branch information
Showing
41 changed files
with
388 additions
and
605 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
#pragma once | ||
|
||
#include <xboxkrnl/xboxkrnl.h> | ||
#include "defines.h" | ||
|
||
BOOL assert_ERWLOCK_equals_ex( | ||
PERWLOCK, | ||
LONG, | ||
ULONG, | ||
ULONG, | ||
ULONG, | ||
const char*, | ||
int | ||
); | ||
#define assert_ERWLOCK_equals( \ | ||
#define assert_ERWLOCK_equals_ex( \ | ||
ReadWriteLock, \ | ||
expected_LockCount, \ | ||
expected_WritersWaitingCount, \ | ||
expected_ReadersWaitingCount, \ | ||
expected_ReadersEntryCount, \ | ||
test_name \ | ||
line_number \ | ||
) \ | ||
GEN_CHECK_EX((ReadWriteLock)->LockCount, expected_LockCount, ".LockCount", line_number) \ | ||
GEN_CHECK_EX((ReadWriteLock)->WritersWaitingCount, expected_WritersWaitingCount, ".WritersWaitingCount", line_number) \ | ||
GEN_CHECK_EX((ReadWriteLock)->ReadersWaitingCount, expected_ReadersWaitingCount, ".ReadersWaitingCount", line_number) \ | ||
GEN_CHECK_EX((ReadWriteLock)->ReadersEntryCount, expected_ReadersEntryCount, ".ReadersEntryCount", line_number) | ||
#define assert_ERWLOCK_equals( \ | ||
ReadWriteLock, \ | ||
expected_LockCount, \ | ||
expected_WritersWaitingCount, \ | ||
expected_ReadersWaitingCount, \ | ||
expected_ReadersEntryCount \ | ||
) \ | ||
assert_ERWLOCK_equals_ex( \ | ||
ReadWriteLock, \ | ||
expected_LockCount, \ | ||
expected_WritersWaitingCount, \ | ||
expected_ReadersWaitingCount, \ | ||
expected_ReadersEntryCount, \ | ||
test_name, \ | ||
__LINE__ \ | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
#pragma once | ||
|
||
#include <xboxkrnl/xboxkrnl.h> | ||
#include "defines.h" | ||
|
||
BOOL assert_critical_region_ex(PKTHREAD, ULONG, const char*, int); | ||
#define assert_critical_region( \ | ||
#define assert_critical_region_ex( \ | ||
thread, \ | ||
expected_Apc, \ | ||
test_name \ | ||
line_number \ | ||
) \ | ||
GEN_CHECK_EX(thread->KernelApcDisable, expected_Apc, ".KernelApcDisable", line_number) | ||
#define assert_critical_region( \ | ||
thread, \ | ||
expected_Apc \ | ||
) \ | ||
assert_critical_region_ex( \ | ||
thread, \ | ||
expected_Apc, \ | ||
test_name, \ | ||
__LINE__ \ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.