mirror of
https://github.com/reactos/reactos.git
synced 2025-05-14 23:03:53 +00:00
[GDI32_APITEST]
-include the testdata in all targets -load it from the correct path even when the application is using a different working directory svn path=/trunk/; revision=68623
This commit is contained in:
parent
3b0dfe2c25
commit
1f7ffb9c1d
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ add_subdirectory(winetests)
|
|||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/testdata/)
|
||||
file(GLOB_RECURSE TESTDATA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/testdata/ ${CMAKE_CURRENT_SOURCE_DIR}/testdata/*)
|
||||
foreach(item ${TESTDATA_FILES})
|
||||
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/testdata/${item} DESTINATION reactos/bin/testdata NAME_ON_CD ${item} FOR regtest)
|
||||
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/testdata/${item} DESTINATION reactos/bin/testdata NAME_ON_CD ${item} FOR all)
|
||||
endforeach(item)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ void Test_AddFontResourceA()
|
|||
CHAR szFileNameFont2A[MAX_PATH];
|
||||
int result;
|
||||
|
||||
GetCurrentDirectoryA(MAX_PATH,szFileNameA);
|
||||
GetWindowsDirectoryA(szFileNameA,MAX_PATH);
|
||||
|
||||
memcpy(szFileNameFont1A,szFileNameA,MAX_PATH );
|
||||
strcat(szFileNameFont1A, "\\bin\\testdata\\test.ttf");
|
||||
|
|
Loading…
Reference in a new issue