diff options
author | Justin Van Patten <jvp@justinvp.com> | 2017-08-28 11:01:42 -0700 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-08-28 20:01:42 +0200 |
commit | c440335be80ee0762856d0be6e91ec3ea2f90504 (patch) | |
tree | 2e14d592d292bab1d9195b406d2d430d06b9250a /src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp | |
parent | 68e7669cf9cc6ad64fa0393339dbebafd03612e9 (diff) | |
download | coreclr-c440335be80ee0762856d0be6e91ec3ea2f90504.tar.gz coreclr-c440335be80ee0762856d0be6e91ec3ea2f90504.tar.bz2 coreclr-c440335be80ee0762856d0be6e91ec3ea2f90504.zip |
Delete dead PAL functions (#13613)
* Remove duplicate define
* Remove unused wincon.h defines
* Delete unused LockFile/UnlockFile
* Remove unused WszCryptGetDefaultProvider define
* Remove unused defines
* Remove unused defines
* Delete unused GetDiskFreeSpace
* Delete unused RegisterEventSource\DeregisterEventSource\ReportEvent
* Remove unused defines
* Delete unused AreFileApisANSI
* Delete unused MoveFileW
* Delete unused SetFileTime
* Delete unused GetFileTime
* Delete unused FileTimeToDosDateTime
* Delete unused GetFileType
* Delete unused GetConsoleCP
* Delete unused GetExitCodeThread
* Delete unused FlushViewOfFile
* Delete unused RtlZeroMemory
* Delete unused MoveFileA
Diffstat (limited to 'src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp')
-rw-r--r-- | src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp | 76 |
1 files changed, 1 insertions, 75 deletions
diff --git a/src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp b/src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp index 5c2ab86b99..b9177ece4e 100644 --- a/src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp +++ b/src/pal/tests/palsuite/file_io/errorpathnotfound/test2/test2.cpp @@ -18,7 +18,7 @@ ** Functions covered by this test are: -** MoveFileW, FindFirstFileA, FindFirstFileW, +** FindFirstFileA, FindFirstFileW, ** GetFileAttributesA, GetFileAttributesW, @@ -95,80 +95,6 @@ int __cdecl main(int argc, char *argv[]) - /*...................Test MoveFileW.............................*/ - - - - /* test with an invalid path */ - - bRc = MoveFileW(wBadFilePath,wDest); - - if(!bRc) - - { - - if(GetLastError()!= ERROR_PATH_NOT_FOUND) - - { - - Trace("MoveFileW: calling GetLastError() after moving a file" - - " with wrong path returned [%u] while it should return [%u]\n" - - ,GetLastError(), ERROR_PATH_NOT_FOUND); - - testPass = FALSE; - - } - - } - - else - - { - - testPass = FALSE; - - } - - - - /* test with invalid file name */ - - bRc = MoveFileW(wBadFileName,wDest); - - if(!bRc) - - { - - if(GetLastError()!= ERROR_FILE_NOT_FOUND) - - { - - Trace("MoveFileW: calling GetLastError() after moving a file" - - " with wrong name returned [%u] while it should return [%u]\n" - - ,GetLastError(), ERROR_FILE_NOT_FOUND); - - testPass = FALSE; - - } - - } - - else - - { - - Trace("MoveFileW: managed to move a file with wrong name\n"); - - testPass = FALSE; - - } - - - /*............. Test FindFirstFileA..................................*/ |