diff options
Diffstat (limited to 'src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1')
-rw-r--r-- | src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/test.cpp | 14 |
2 files changed, 3 insertions, 15 deletions
diff --git a/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/CMakeLists.txt b/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/CMakeLists.txt index d7bec46d4e..0834e67b04 100644 --- a/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/CMakeLists.txt +++ b/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/CMakeLists.txt @@ -13,7 +13,5 @@ add_executable(paltest_interlockedincrement64_test1 add_dependencies(paltest_interlockedincrement64_test1 coreclrpal) target_link_libraries(paltest_interlockedincrement64_test1 - pthread - m - coreclrpal + ${COMMON_TEST_LIBRARIES} ) diff --git a/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/test.cpp b/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/test.cpp index c02886f5c6..7d10e5c624 100644 --- a/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/test.cpp +++ b/src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1/test.cpp @@ -37,7 +37,7 @@ int __cdecl main(int argc, char *argv[]) /* ** Run only on 64 bit platforms */ -#if defined(BIT64) && defined(PLATFORM_UNIX) +#if defined(BIT64) InterlockedIncrement64(&TheValue); TheReturn = InterlockedIncrement64(&TheValue); @@ -45,28 +45,18 @@ int __cdecl main(int argc, char *argv[]) /* Incremented twice, it should be 2 now */ if(TheValue != 2) { -#ifdef PLATFORM_UNIX Fail("ERROR: The value was incremented twice and shoud now be 2, " "but it is really %ll",TheValue); -#else - Fail("ERROR: The value was incremented twice and shoud now be 2, " - "but it is really %I64",TheValue); -#endif } /* Check to make sure it returns itself */ if(TheReturn != TheValue) { -#ifdef PLATFORM_UNIX Fail("ERROR: The function should return the new value, which shoud " "have been %d, but it returned %ll.",TheValue,TheReturn); -#else - Fail("ERROR: The function should return the new value, which shoud " - "have been %d, but it returned %I64.",TheValue,TheReturn); -#endif } -#endif //defined(BIT64) && defined(PLATFORM_UNIX) +#endif //defined(BIT64) PAL_Terminate(); return PASS; } |