[compiler-rt] r213646 - [ASan] Simplify exception/longjmp tests even further
Timur Iskhodzhanov
timurrrr at google.com
Tue Jul 22 05:25:51 PDT 2014
Author: timurrrr
Date: Tue Jul 22 07:25:51 2014
New Revision: 213646
URL: http://llvm.org/viewvc/llvm-project?rev=213646&view=rev
Log:
[ASan] Simplify exception/longjmp tests even further
Modified:
compiler-rt/trunk/test/asan/TestCases/longjmp.cc
compiler-rt/trunk/test/asan/TestCases/throw_catch.cc
Modified: compiler-rt/trunk/test/asan/TestCases/longjmp.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/longjmp.cc?rev=213646&r1=213645&r2=213646&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/longjmp.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/longjmp.cc Tue Jul 22 07:25:51 2014
@@ -2,14 +2,12 @@
#include <assert.h>
#include <setjmp.h>
-#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
#include <sanitizer/asan_interface.h>
static jmp_buf buf;
-void TestLongJmp() {
+int main() {
char x[32];
fprintf(stderr, "\nTestLongJmp\n");
fprintf(stderr, "Before: %p poisoned: %d\n", &x,
@@ -23,7 +21,3 @@ void TestLongJmp() {
// https://code.google.com/p/address-sanitizer/issues/detail?id=258
assert(!__asan_address_is_poisoned(x + 32));
}
-
-int main(int argc, char **argv) {
- TestLongJmp();
-}
Modified: compiler-rt/trunk/test/asan/TestCases/throw_catch.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/throw_catch.cc?rev=213646&r1=213645&r2=213646&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/throw_catch.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/throw_catch.cc Tue Jul 22 07:25:51 2014
@@ -4,10 +4,7 @@
// XFAIL: win32
#include <assert.h>
-#include <setjmp.h>
-#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
#include <sanitizer/asan_interface.h>
__attribute__((noinline))
More information about the llvm-commits
mailing list