Skip to content

Commit

Permalink
test case fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Winarske committed Oct 8, 2018
1 parent 44daa24 commit c53ac54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/openmp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ int main(int argc, char *argv[]) {
pthread_t b_thr;
int status;

printf("%s:%d - %s - a_thr:%p - b_thr:%p\n",
__FILE__,__LINE__,__FUNCTION__,a_thr.p,b_thr.p);

status = pthread_create(&a_thr, NULL, _thread, (void*) 1 );
if ( status != 0 ) {
printf("Failed to create thread 1\n");
Expand All @@ -103,6 +100,9 @@ int main(int argc, char *argv[]) {
return (-1);
}

printf("%s:%d - %s - a_thr:%p - b_thr:%p\n",
__FILE__,__LINE__,__FUNCTION__,a_thr.p,b_thr.p);

status = pthread_join(a_thr, NULL);
if ( status != 0 ) {
printf("Failed to join thread 1\n");
Expand Down
2 changes: 1 addition & 1 deletion tests/tryentercs.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ main()
*/
_h_kernel32 = LoadLibrary(TEXT("KERNEL32.DLL"));
_try_enter_critical_section =
(BOOL (PT_STDCALL *)(LPCRITICAL_SECTION))
(BOOL (WINAPI *)(LPCRITICAL_SECTION))
GetProcAddress(_h_kernel32,
(LPCSTR) "TryEnterCriticalSection");

Expand Down
2 changes: 1 addition & 1 deletion tests/tryentercs2.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ main()
*/
_h_kernel32 = LoadLibrary(TEXT("KERNEL32.DLL"));
_try_enter_critical_section =
(BOOL (PT_STDCALL *)(LPCRITICAL_SECTION))
(BOOL (WINAPI *)(LPCRITICAL_SECTION))
GetProcAddress(_h_kernel32,
(LPCSTR) "TryEnterCriticalSection");

Expand Down

0 comments on commit c53ac54

Please sign in to comment.