[compiler-rt] r230961 - [ASan/Win] Rename a test.
Timur Iskhodzhanov
timurrrr at google.com
Mon Mar 2 06:49:45 PST 2015
Author: timurrrr
Date: Mon Mar 2 08:49:44 2015
New Revision: 230961
URL: http://llvm.org/viewvc/llvm-project?rev=230961&view=rev
Log:
[ASan/Win] Rename a test.
I came up with the original name trying to test a different issue and forgot to rename afterwards
Added:
compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc
- copied unchanged from r230960, compiler-rt/trunk/test/asan/TestCases/Windows/globals_multiple_dlls.cc
Removed:
compiler-rt/trunk/test/asan/TestCases/Windows/globals_multiple_dlls.cc
Removed: compiler-rt/trunk/test/asan/TestCases/Windows/globals_multiple_dlls.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/globals_multiple_dlls.cc?rev=230960&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/globals_multiple_dlls.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/globals_multiple_dlls.cc (removed)
@@ -1,51 +0,0 @@
-// Make sure everything works even if the main module doesn't have any stack
-// variables, thus doesn't explicitly reference any symbol exported by the
-// runtime thunk.
-//
-// RUN: %clang_cl_asan -LD -O0 -DDLL %s -Fe%t.dll
-// RUN: %clang_cl_asan -O0 -DEXE %s -Fe%te.exe
-// RUN: env ASAN_OPTIONS=report_globals=2 %run %te.exe %t.dll 2>&1 | FileCheck %s
-
-#include <windows.h>
-#include <stdio.h>
-#include <string.h>
-
-extern "C" {
-#if defined(EXE)
-int main(int argc, char **argv) {
- if (argc != 2) {
- printf("Usage: %s [client].dll\n", argv[0]);
- return 101;
- }
- const char *dll_name = argv[1];
-
-// CHECK: time to load DLL
- printf("time to load DLL\n");
- fflush(0);
-
-// On DLL load, the "in DLL\n" string is registered:
-// CHECK: Added Global{{.*}} size=19
-// CHECK: in DLL(reason=1)
- HMODULE dll = LoadLibrary(dll_name);
- if (dll == NULL)
- return 3;
-
-// CHECK: in DLL(reason=0)
-// CHECK-NEXT: Removed Global{{.*}} size=19
- if (!FreeLibrary(dll))
- return 4;
-
-// CHECK: bye!
- printf("bye!\n");
- fflush(0);
-}
-#elif defined(DLL)
-BOOL WINAPI DllMain(HMODULE, DWORD reason, LPVOID) {
- printf("in DLL(reason=%d)\n", (int)reason);
- fflush(0);
- return TRUE;
-}
-#else
-# error oops!
-#endif
-}
More information about the llvm-commits
mailing list