"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msvcp140/tests/msvcp140.c" between
wine-6.0.tar.xz and wine-6.0.1.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs.

msvcp140.c  (wine-6.0.tar.xz):msvcp140.c  (wine-6.0.1.tar.xz)
skipping to change at line 199 skipping to change at line 199
static MSVCP_bool (__cdecl *p_Remove_dir)(WCHAR const*); static MSVCP_bool (__cdecl *p_Remove_dir)(WCHAR const*);
static int (__cdecl *p_Rename)(WCHAR const*, WCHAR const*); static int (__cdecl *p_Rename)(WCHAR const*, WCHAR const*);
static enum file_type (__cdecl *p_Stat)(WCHAR const *, int *); static enum file_type (__cdecl *p_Stat)(WCHAR const *, int *);
static int (__cdecl *p_Symlink)(WCHAR const*, WCHAR const*); static int (__cdecl *p_Symlink)(WCHAR const*, WCHAR const*);
static WCHAR* (__cdecl *p_Temp_get)(WCHAR *); static WCHAR* (__cdecl *p_Temp_get)(WCHAR *);
static int (__cdecl *p_To_byte)(const WCHAR *src, char *dst); static int (__cdecl *p_To_byte)(const WCHAR *src, char *dst);
static int (__cdecl *p_To_wide)(const char *src, WCHAR *dst); static int (__cdecl *p_To_wide)(const char *src, WCHAR *dst);
static int (__cdecl *p_Unlink)(WCHAR const*); static int (__cdecl *p_Unlink)(WCHAR const*);
static ULONG (__cdecl *p__Winerror_message)(ULONG, char*, ULONG); static ULONG (__cdecl *p__Winerror_message)(ULONG, char*, ULONG);
static int (__cdecl *p__Winerror_map)(int); static int (__cdecl *p__Winerror_map)(int);
static const char* (__cdecl *p__Syserror_map)(int err);
static BOOLEAN (WINAPI *pCreateSymbolicLinkW)(const WCHAR *, const WCHAR *, DWOR D); static BOOLEAN (WINAPI *pCreateSymbolicLinkW)(const WCHAR *, const WCHAR *, DWOR D);
static HMODULE msvcp; static HMODULE msvcp;
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(msvcp,y) #define SETNOFAIL(x,y) x = (void*)GetProcAddress(msvcp,y)
#define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y ); } while(0) #define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y ); } while(0)
static BOOL init(void) static BOOL init(void)
{ {
HANDLE hdll; HANDLE hdll;
skipping to change at line 237 skipping to change at line 238
SET(p__TaskEventLogger__LogCancelTask, "?_LogCancelTask@_TaskEventLogger @details@Concurrency@@QEAAXXZ"); SET(p__TaskEventLogger__LogCancelTask, "?_LogCancelTask@_TaskEventLogger @details@Concurrency@@QEAAXXZ");
SET(p__TaskEventLogger__LogScheduleTask, "?_LogScheduleTask@_TaskEventLo gger@details@Concurrency@@QEAAX_N@Z"); SET(p__TaskEventLogger__LogScheduleTask, "?_LogScheduleTask@_TaskEventLo gger@details@Concurrency@@QEAAX_N@Z");
SET(p__TaskEventLogger__LogTaskCompleted, "?_LogTaskCompleted@_TaskEvent Logger@details@Concurrency@@QEAAXXZ"); SET(p__TaskEventLogger__LogTaskCompleted, "?_LogTaskCompleted@_TaskEvent Logger@details@Concurrency@@QEAAXXZ");
SET(p__TaskEventLogger__LogTaskExecutionCompleted, "?_LogTaskExecutionCo mpleted@_TaskEventLogger@details@Concurrency@@QEAAXXZ"); SET(p__TaskEventLogger__LogTaskExecutionCompleted, "?_LogTaskExecutionCo mpleted@_TaskEventLogger@details@Concurrency@@QEAAXXZ");
SET(p__TaskEventLogger__LogWorkItemCompleted, "?_LogWorkItemCompleted@_T askEventLogger@details@Concurrency@@QEAAXXZ"); SET(p__TaskEventLogger__LogWorkItemCompleted, "?_LogWorkItemCompleted@_T askEventLogger@details@Concurrency@@QEAAXXZ");
SET(p__TaskEventLogger__LogWorkItemStarted, "?_LogWorkItemStarted@_TaskE ventLogger@details@Concurrency@@QEAAXXZ"); SET(p__TaskEventLogger__LogWorkItemStarted, "?_LogWorkItemStarted@_TaskE ventLogger@details@Concurrency@@QEAAXXZ");
SET(p__Schedule_chore, "?_Schedule_chore@details@Concurrency@@YAHPEAU_Th readpool_chore@12@@Z"); SET(p__Schedule_chore, "?_Schedule_chore@details@Concurrency@@YAHPEAU_Th readpool_chore@12@@Z");
SET(p__Reschedule_chore, "?_Reschedule_chore@details@Concurrency@@YAHPEB U_Threadpool_chore@12@@Z"); SET(p__Reschedule_chore, "?_Reschedule_chore@details@Concurrency@@YAHPEB U_Threadpool_chore@12@@Z");
SET(p__Release_chore, "?_Release_chore@details@Concurrency@@YAXPEAU_Thre adpool_chore@12@@Z"); SET(p__Release_chore, "?_Release_chore@details@Concurrency@@YAXPEAU_Thre adpool_chore@12@@Z");
SET(p__Winerror_message, "?_Winerror_message@std@@YAKKPEADK@Z"); SET(p__Winerror_message, "?_Winerror_message@std@@YAKKPEADK@Z");
SET(p__Syserror_map, "?_Syserror_map@std@@YAPEBDH@Z");
} else { } else {
#ifdef __arm__ #ifdef __arm__
SET(p_task_continuation_context_ctor, "??0task_continuation_context@Conc urrency@@AAA@XZ"); SET(p_task_continuation_context_ctor, "??0task_continuation_context@Conc urrency@@AAA@XZ");
SET(p__ContextCallback__Assign, "?_Assign@_ContextCallback@details@Concu rrency@@AAAXPAX@Z"); SET(p__ContextCallback__Assign, "?_Assign@_ContextCallback@details@Concu rrency@@AAAXPAX@Z");
SET(p__ContextCallback__CallInContext, "?_CallInContext@_ContextCallback @details@Concurrency@@QBAXV?$function@$$A6AXXZ@std@@_N@Z"); SET(p__ContextCallback__CallInContext, "?_CallInContext@_ContextCallback @details@Concurrency@@QBAXV?$function@$$A6AXXZ@std@@_N@Z");
SET(p__ContextCallback__Capture, "?_Capture@_ContextCallback@details@Con currency@@AAAXXZ"); SET(p__ContextCallback__Capture, "?_Capture@_ContextCallback@details@Con currency@@AAAXXZ");
SET(p__ContextCallback__Reset, "?_Reset@_ContextCallback@details@Concurr ency@@AAAXXZ"); SET(p__ContextCallback__Reset, "?_Reset@_ContextCallback@details@Concurr ency@@AAAXXZ");
SET(p__TaskEventLogger__LogCancelTask, "?_LogCancelTask@_TaskEventLogger @details@Concurrency@@QAAXXZ"); SET(p__TaskEventLogger__LogCancelTask, "?_LogCancelTask@_TaskEventLogger @details@Concurrency@@QAAXXZ");
SET(p__TaskEventLogger__LogScheduleTask, "?_LogScheduleTask@_TaskEventLo gger@details@Concurrency@@QAEX_N@Z"); SET(p__TaskEventLogger__LogScheduleTask, "?_LogScheduleTask@_TaskEventLo gger@details@Concurrency@@QAEX_N@Z");
SET(p__TaskEventLogger__LogTaskCompleted, "?_LogTaskCompleted@_TaskEvent Logger@details@Concurrency@@QAAXXZ"); SET(p__TaskEventLogger__LogTaskCompleted, "?_LogTaskCompleted@_TaskEvent Logger@details@Concurrency@@QAAXXZ");
skipping to change at line 267 skipping to change at line 269
SET(p__TaskEventLogger__LogScheduleTask, "?_LogScheduleTask@_TaskEventLo gger@details@Concurrency@@QAEX_N@Z"); SET(p__TaskEventLogger__LogScheduleTask, "?_LogScheduleTask@_TaskEventLo gger@details@Concurrency@@QAEX_N@Z");
SET(p__TaskEventLogger__LogTaskCompleted, "?_LogTaskCompleted@_TaskEvent Logger@details@Concurrency@@QAEXXZ"); SET(p__TaskEventLogger__LogTaskCompleted, "?_LogTaskCompleted@_TaskEvent Logger@details@Concurrency@@QAEXXZ");
SET(p__TaskEventLogger__LogTaskExecutionCompleted, "?_LogTaskExecutionCo mpleted@_TaskEventLogger@details@Concurrency@@QAEXXZ"); SET(p__TaskEventLogger__LogTaskExecutionCompleted, "?_LogTaskExecutionCo mpleted@_TaskEventLogger@details@Concurrency@@QAEXXZ");
SET(p__TaskEventLogger__LogWorkItemCompleted, "?_LogWorkItemCompleted@_T askEventLogger@details@Concurrency@@QAEXXZ"); SET(p__TaskEventLogger__LogWorkItemCompleted, "?_LogWorkItemCompleted@_T askEventLogger@details@Concurrency@@QAEXXZ");
SET(p__TaskEventLogger__LogWorkItemStarted, "?_LogWorkItemStarted@_TaskE ventLogger@details@Concurrency@@QAEXXZ"); SET(p__TaskEventLogger__LogWorkItemStarted, "?_LogWorkItemStarted@_TaskE ventLogger@details@Concurrency@@QAEXXZ");
#endif #endif
SET(p__Schedule_chore, "?_Schedule_chore@details@Concurrency@@YAHPAU_Thr eadpool_chore@12@@Z"); SET(p__Schedule_chore, "?_Schedule_chore@details@Concurrency@@YAHPAU_Thr eadpool_chore@12@@Z");
SET(p__Reschedule_chore, "?_Reschedule_chore@details@Concurrency@@YAHPBU _Threadpool_chore@12@@Z"); SET(p__Reschedule_chore, "?_Reschedule_chore@details@Concurrency@@YAHPBU _Threadpool_chore@12@@Z");
SET(p__Release_chore, "?_Release_chore@details@Concurrency@@YAXPAU_Threa dpool_chore@12@@Z"); SET(p__Release_chore, "?_Release_chore@details@Concurrency@@YAXPAU_Threa dpool_chore@12@@Z");
SET(p__Winerror_message, "?_Winerror_message@std@@YAKKPADK@Z"); SET(p__Winerror_message, "?_Winerror_message@std@@YAKKPADK@Z");
SET(p__Syserror_map, "?_Syserror_map@std@@YAPBDH@Z");
} }
SET(p_Close_dir, "_Close_dir"); SET(p_Close_dir, "_Close_dir");
SET(p_Current_get, "_Current_get"); SET(p_Current_get, "_Current_get");
SET(p_Current_set, "_Current_set"); SET(p_Current_set, "_Current_set");
SET(p_Equivalent, "_Equivalent"); SET(p_Equivalent, "_Equivalent");
SET(p_File_size, "_File_size"); SET(p_File_size, "_File_size");
SET(p_Resize, "_Resize"); SET(p_Resize, "_Resize");
SET(p_Last_write_time, "_Last_write_time"); SET(p_Last_write_time, "_Last_write_time");
SET(p_Set_last_write_time, "_Set_last_write_time"); SET(p_Set_last_write_time, "_Set_last_write_time");
skipping to change at line 1317 skipping to change at line 1320
for(i=0; i<ARRAY_SIZE(tests); i++) for(i=0; i<ARRAY_SIZE(tests); i++)
{ {
ret = p__Winerror_map(tests[i].winerr); ret = p__Winerror_map(tests[i].winerr);
ok(ret == tests[i].doserr || broken(tests[i].broken && !ret), ok(ret == tests[i].doserr || broken(tests[i].broken && !ret),
"_Winerror_map(%d) returned %d, expected %d\n", "_Winerror_map(%d) returned %d, expected %d\n",
tests[i].winerr, ret, tests[i].doserr); tests[i].winerr, ret, tests[i].doserr);
} }
} }
static void test__Syserror_map(void)
{
const char *r1, *r2;
r1 = p__Syserror_map(0);
ok(r1 != NULL, "_Syserror_map(0) returned NULL\n");
r2 = p__Syserror_map(1234);
ok(r2 != NULL, "_Syserror_map(1234) returned NULL\n");
ok(r1 == r2, "r1 = %p(%s), r2 = %p(%s)\n", r1, r1, r2, r2);
}
static void test_Equivalent(void) static void test_Equivalent(void)
{ {
int val, i; int val, i;
HANDLE file; HANDLE file;
WCHAR temp_path[MAX_PATH], current_path[MAX_PATH]; WCHAR temp_path[MAX_PATH], current_path[MAX_PATH];
static const struct { static const struct {
const WCHAR *path1; const WCHAR *path1;
const WCHAR *path2; const WCHAR *path2;
int equivalent; int equivalent;
} tests[] = { } tests[] = {
skipping to change at line 1394 skipping to change at line 1408
test_Current_get(); test_Current_get();
test_Current_set(); test_Current_set();
test_Stat(); test_Stat();
test_dir_operation(); test_dir_operation();
test_Unlink(); test_Unlink();
test_Temp_get(); test_Temp_get();
test_Rename(); test_Rename();
test_Last_write_time(); test_Last_write_time();
test__Winerror_message(); test__Winerror_message();
test__Winerror_map(); test__Winerror_map();
test__Syserror_map();
test_Equivalent(); test_Equivalent();
FreeLibrary(msvcp); FreeLibrary(msvcp);
} }
 End of changes. 5 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)