mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-19 15:41:30 +00:00
Merge commit 'dabc40cb19
' as 'ext/detours'
This commit is contained in:
commit
77523940b3
178 changed files with 102613 additions and 0 deletions
21
ext/detours/tests/test_image_api.cpp
Normal file
21
ext/detours/tests/test_image_api.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Unit Tests for Detours Image API (test_image_api.cpp of unittests.exe)
|
||||
//
|
||||
// Microsoft Research Detours Package
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
#include "catch.hpp"
|
||||
#include "windows.h"
|
||||
#include "detours.h"
|
||||
|
||||
TEST_CASE("DetourBinaryOpen", "[image]")
|
||||
{
|
||||
SECTION("Passing INVALID_HANDLE, results in error")
|
||||
{
|
||||
auto binary = DetourBinaryOpen(INVALID_HANDLE_VALUE);
|
||||
REQUIRE( GetLastError() == ERROR_INVALID_HANDLE );
|
||||
REQUIRE( binary == nullptr );
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue