diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
commit | 4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch) | |
tree | b48831a898906734f8884d08b6e18f1144ee2b82 /src/pal/tests/palsuite/miscellaneous/InterlockedIncrement64/test1 | |
parent | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff) | |
download | coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2 coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip |
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
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; } |