From 89061edbba7decdefdb9e9d983c30a1215dd73b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Feb 2008 11:57:10 +0000 Subject: [PATCH] Cleanup old tests --- testdangerousfunc1/err.msg | 2 -- testdangerousfunc1/testdangerousfunc1.cpp | 9 ------ testdelete1/err.msg | 0 testdelete1/testdelete1.cpp | 8 ----- testh1/err.msg | 0 testh1/testh1.cpp | 2 -- testh1/testh1.h | 14 --------- testh2/emptyh.h | 0 testh2/err.msg | 0 testh2/testh2.cpp | 4 --- testh2/testh2.h | 7 ----- testh3/err.msg | 0 testh3/h1.h | 7 ----- testh3/h2.h | 4 --- testh3/testh3.cpp | 2 -- testh5/err.msg | 0 testh5/testh5.cpp | 8 ----- testh5/testh5.h | 4 --- testh6/err.msg | 0 testh6/testh6.cpp | 5 ---- testh6/testh6.h | 3 -- testmemset1/err.msg | 2 -- testmemset1/testmemset1.cpp | 36 ----------------------- teststdfunc1/err.msg | 0 teststdfunc1/teststdfunc1.cpp | 15 ---------- 25 files changed, 132 deletions(-) delete mode 100644 testdangerousfunc1/err.msg delete mode 100644 testdangerousfunc1/testdangerousfunc1.cpp delete mode 100644 testdelete1/err.msg delete mode 100644 testdelete1/testdelete1.cpp delete mode 100644 testh1/err.msg delete mode 100644 testh1/testh1.cpp delete mode 100644 testh1/testh1.h delete mode 100644 testh2/emptyh.h delete mode 100644 testh2/err.msg delete mode 100644 testh2/testh2.cpp delete mode 100644 testh2/testh2.h delete mode 100644 testh3/err.msg delete mode 100644 testh3/h1.h delete mode 100644 testh3/h2.h delete mode 100644 testh3/testh3.cpp delete mode 100644 testh5/err.msg delete mode 100644 testh5/testh5.cpp delete mode 100644 testh5/testh5.h delete mode 100644 testh6/err.msg delete mode 100644 testh6/testh6.cpp delete mode 100644 testh6/testh6.h delete mode 100644 testmemset1/err.msg delete mode 100644 testmemset1/testmemset1.cpp delete mode 100644 teststdfunc1/err.msg delete mode 100644 teststdfunc1/teststdfunc1.cpp diff --git a/testdangerousfunc1/err.msg b/testdangerousfunc1/err.msg deleted file mode 100644 index b9cc30825..000000000 --- a/testdangerousfunc1/err.msg +++ /dev/null @@ -1,2 +0,0 @@ -[testdangerousfunc1\testdangerousfunc1.cpp:4]: Found 'gets'. You should use 'fgets' instead -[testdangerousfunc1\testdangerousfunc1.cpp:7]: Found 'scanf'. You should use 'fgets' instead diff --git a/testdangerousfunc1/testdangerousfunc1.cpp b/testdangerousfunc1/testdangerousfunc1.cpp deleted file mode 100644 index cd8bda0a8..000000000 --- a/testdangerousfunc1/testdangerousfunc1.cpp +++ /dev/null @@ -1,9 +0,0 @@ - -void f() -{ - gets(str); - - scanf("%f", &f); - scanf("%s", str); -} - diff --git a/testdelete1/err.msg b/testdelete1/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testdelete1/testdelete1.cpp b/testdelete1/testdelete1.cpp deleted file mode 100644 index c04434f26..000000000 --- a/testdelete1/testdelete1.cpp +++ /dev/null @@ -1,8 +0,0 @@ - - - -void f() -{ - if (p) - delete p; -} \ No newline at end of file diff --git a/testh1/err.msg b/testh1/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testh1/testh1.cpp b/testh1/testh1.cpp deleted file mode 100644 index 8f3421111..000000000 --- a/testh1/testh1.cpp +++ /dev/null @@ -1,2 +0,0 @@ - -#include "testh1.h" diff --git a/testh1/testh1.h b/testh1/testh1.h deleted file mode 100644 index a75206ca6..000000000 --- a/testh1/testh1.h +++ /dev/null @@ -1,14 +0,0 @@ - - -// This is a header so there should be no implementation here.. - -void f() -{ } - -class clKalle -{ -public: - clKalle() - { } -}; - diff --git a/testh2/emptyh.h b/testh2/emptyh.h deleted file mode 100644 index e69de29bb..000000000 diff --git a/testh2/err.msg b/testh2/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testh2/testh2.cpp b/testh2/testh2.cpp deleted file mode 100644 index e17d8a0eb..000000000 --- a/testh2/testh2.cpp +++ /dev/null @@ -1,4 +0,0 @@ - -#include "testh2.h" - - diff --git a/testh2/testh2.h b/testh2/testh2.h deleted file mode 100644 index da09b6086..000000000 --- a/testh2/testh2.h +++ /dev/null @@ -1,7 +0,0 @@ - -#include "emptyh.h" - -class clKalle -{ - -}; diff --git a/testh3/err.msg b/testh3/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testh3/h1.h b/testh3/h1.h deleted file mode 100644 index f56faa110..000000000 --- a/testh3/h1.h +++ /dev/null @@ -1,7 +0,0 @@ - - -#include "h2.h" - -class class1 : class2 -{ }; - diff --git a/testh3/h2.h b/testh3/h2.h deleted file mode 100644 index 53d9f865e..000000000 --- a/testh3/h2.h +++ /dev/null @@ -1,4 +0,0 @@ - -class class2 -{ }; - diff --git a/testh3/testh3.cpp b/testh3/testh3.cpp deleted file mode 100644 index 4a7da53b8..000000000 --- a/testh3/testh3.cpp +++ /dev/null @@ -1,2 +0,0 @@ - -#include "h1.h" diff --git a/testh5/err.msg b/testh5/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testh5/testh5.cpp b/testh5/testh5.cpp deleted file mode 100644 index c7bc8e4da..000000000 --- a/testh5/testh5.cpp +++ /dev/null @@ -1,8 +0,0 @@ - -#include "testh5.h" - -void f(E1 e1) -{ - -} - diff --git a/testh5/testh5.h b/testh5/testh5.h deleted file mode 100644 index 43338e3f2..000000000 --- a/testh5/testh5.h +++ /dev/null @@ -1,4 +0,0 @@ - - -enum E1 {a,b,c}; - diff --git a/testh6/err.msg b/testh6/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/testh6/testh6.cpp b/testh6/testh6.cpp deleted file mode 100644 index d6541d7c5..000000000 --- a/testh6/testh6.cpp +++ /dev/null @@ -1,5 +0,0 @@ - -#include "testh6.h" - -onoff a; - diff --git a/testh6/testh6.h b/testh6/testh6.h deleted file mode 100644 index a31573811..000000000 --- a/testh6/testh6.h +++ /dev/null @@ -1,3 +0,0 @@ - -typedef enum { on, off } onoff; - diff --git a/testmemset1/err.msg b/testmemset1/err.msg deleted file mode 100644 index 3abf9a1dd..000000000 --- a/testmemset1/err.msg +++ /dev/null @@ -1,2 +0,0 @@ -[testmemset1\testmemset1.cpp:28]: Using 'memset' on class. -[testmemset1\testmemset1.cpp:34]: Using 'memset' on struct that contains a 'std::string' diff --git a/testmemset1/testmemset1.cpp b/testmemset1/testmemset1.cpp deleted file mode 100644 index cb6a246a6..000000000 --- a/testmemset1/testmemset1.cpp +++ /dev/null @@ -1,36 +0,0 @@ - -class clKalle -{ -private: - int i; -public: - clKalle(); -}; - -struct S1 -{ - char *str; -} - -struct S2 -{ - std::string str; -} - -clKalle::clKalle() -{ - i = 0; -} - -void f() -{ - clKalle *kalle = new clKalle; - memset(kalle, 0, sizeof(clKalle)); - - S1 s1; - memset(&s1, 0, sizeof(S1)); - - S2 s2; - memset(&s2, 0, sizeof(S2)); -} - diff --git a/teststdfunc1/err.msg b/teststdfunc1/err.msg deleted file mode 100644 index e69de29bb..000000000 diff --git a/teststdfunc1/teststdfunc1.cpp b/teststdfunc1/teststdfunc1.cpp deleted file mode 100644 index 1338e2298..000000000 --- a/teststdfunc1/teststdfunc1.cpp +++ /dev/null @@ -1,15 +0,0 @@ - -void f(char ch) -{ - if (ch>='0' && ch<='9') - { - - } - - if (*p>='0' && *p<='9') - { - - } -} - -