#include "precomp.h"
#include <setjmp.h>
#include <time.h>
Go to the source code of this file.
|
#define | ok_eq_print(value, expected, spec) ok((value) == (expected), #value " = " spec ", expected " spec "\n", value, expected) |
|
#define | ok_eq_hex(value, expected) ok_eq_print(value, expected, "%lx") |
|
#define | ok_eq_hex64(value, expected) ok_eq_print(value, expected, "%I64x") |
|
#define | ok_eq_xmm(value, expected) ok((value).Low == (expected).Low, #value " = %I64x'%08I64x, expected %I64x'%08I64x\n", (value).Low, (value).High, (expected).Low, (expected).High) |
|
◆ ok_eq_hex
◆ ok_eq_hex64
◆ ok_eq_print
◆ ok_eq_xmm
◆ check()
Definition at line 77 of file NtContinue.c.
78{
79#ifdef _M_IX86
82
83
84 ok((pContext->
SegGs & NTC_SEGMENT_BITS) ==
87
88 ok((pContext->
SegFs & NTC_SEGMENT_BITS) ==
91
92 ok((pContext->
SegEs & NTC_SEGMENT_BITS) ==
95
96 ok((pContext->
SegDs & NTC_SEGMENT_BITS) ==
99
100
113
114
121
122 ok((pContext->
SegCs & NTC_SEGMENT_BITS) ==
125
126 ok((pContext->
EFlags & NTC_EFLAGS_BITS) ==
129
130 ok((pContext->
SegSs & NTC_SEGMENT_BITS) ==
133#else
143
175
176
177 ((_JUMP_BUFFER*)&
jmpbuf)->Frame = 0;
178#endif
179
180
182}
#define ok_eq_hex(value, expected)
#define ok_eq_hex64(value, expected)
#define ok_eq_xmm(value, expected)
static CONTEXT continueContext
◆ continuePoint()
◆ initrand()
Definition at line 33 of file NtContinue.c.
34{
35 unsigned int nRandMax;
36 unsigned int nRandMaxBits;
38
40 for(nRandMaxBits = 0; nRandMax != 0; nRandMax >>= 1, ++ nRandMaxBits);
42
44 return 1;
45}
static unsigned int nRandBytes
void __cdecl srand(_In_ unsigned int _Seed)
Referenced by START_TEST().
◆ randbytes()
Definition at line 47 of file NtContinue.c.
48{
52
53 b = (
unsigned char *)
p;
54 for(
i = 0;
i <
n; ++
i)
55 {
60 }
61}
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ int __cdecl rand(void)
Referenced by randULONG().
◆ randULONG()
◆ START_TEST()
Definition at line 184 of file NtContinue.c.
185{
187
189
190
192 {
194
196
199
200#ifdef _M_IX86
202
203
211
212
214
215
218
219
221
222
223#elif defined(_M_AMD64)
225
226
229 {
230 Registers[
i] = randULONG64();
231 }
232
233
236 {
237 Registers[
i] = randULONG64();
238 }
239
246
247
249
250
253
254
256#endif
257
259 ok(0,
"should never get here\n");
260 }
261
262
263 return;
264}
#define ALIGN_DOWN_BY(size, align)
static ULONG randULONG(void)
static int initrand(void)
BOOL WINAPI GetThreadContext(IN HANDLE hThread, OUT LPCONTEXT lpContext)
#define RtlFillMemory(Dest, Length, Fill)
unsigned __int64 * PULONG64
#define CONTEXT_DEBUG_REGISTERS
NTSTATUS NTAPI NtContinue(IN PCONTEXT Context, IN BOOLEAN TestAlert)
HANDLE WINAPI GetCurrentThread(void)
◆ continueContext
◆ jmpbuf
◆ nRandBytes