From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/debugger/tests/threads/Makefile | 4 + languages/cpp/debugger/tests/threads/README.txt | 4 + languages/cpp/debugger/tests/threads/threads.cpp | 26 ++++++ .../cpp/debugger/tests/threads/threads.kdevelop | 101 +++++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 languages/cpp/debugger/tests/threads/Makefile create mode 100644 languages/cpp/debugger/tests/threads/README.txt create mode 100644 languages/cpp/debugger/tests/threads/threads.cpp create mode 100644 languages/cpp/debugger/tests/threads/threads.kdevelop (limited to 'languages/cpp/debugger/tests/threads') diff --git a/languages/cpp/debugger/tests/threads/Makefile b/languages/cpp/debugger/tests/threads/Makefile new file mode 100644 index 00000000..8db14799 --- /dev/null +++ b/languages/cpp/debugger/tests/threads/Makefile @@ -0,0 +1,4 @@ + +threads: threads.cpp + g++ -g -othreads threads.cpp -pthread + \ No newline at end of file diff --git a/languages/cpp/debugger/tests/threads/README.txt b/languages/cpp/debugger/tests/threads/README.txt new file mode 100644 index 00000000..3d84fae1 --- /dev/null +++ b/languages/cpp/debugger/tests/threads/README.txt @@ -0,0 +1,4 @@ + +Tests with a threaded application. Makes sure that the +list of threads is shown that that switching threads works. + diff --git a/languages/cpp/debugger/tests/threads/threads.cpp b/languages/cpp/debugger/tests/threads/threads.cpp new file mode 100644 index 00000000..f412ef7c --- /dev/null +++ b/languages/cpp/debugger/tests/threads/threads.cpp @@ -0,0 +1,26 @@ + +#include + +void runner(int i) +{ + for(int i = 0; i < 1000000;) + ++i; +} + +void* thread(void* p) +{ + runner((int)p); +} + +int main() +{ + pthread_t p1, p2; + + pthread_create(&p1, 0, &thread, (void*)1); + pthread_create(&p2, 0, &thread, (void*)2); + + pthread_join(p1, 0); + pthread_join(p2, 0); + + return 0; +} \ No newline at end of file diff --git a/languages/cpp/debugger/tests/threads/threads.kdevelop b/languages/cpp/debugger/tests/threads/threads.kdevelop new file mode 100644 index 00000000..3cd806b8 --- /dev/null +++ b/languages/cpp/debugger/tests/threads/threads.kdevelop @@ -0,0 +1,101 @@ + + + + Vladimir Prus + ghost@zigzag + $VERSION$ + KDevCustomProject + C++ + + + + + threads + executable + + + + + + + + + + ada + ada_bugs_gcc + bash + bash_bugs + clanlib + fortran_bugs_gcc + gnome1 + gnustep + gtk + gtk_bugs + haskell + haskell_bugs_ghc + java_bugs_gcc + java_bugs_sun + kde2book + opengl + pascal_bugs_fp + php + php_bugs + perl + perl_bugs + python + python_bugs + qt-kdev3 + ruby + ruby_bugs + sdl + sw + w3c-dom-level2-html + w3c-svg + w3c-uaag10 + wxwidgets_bugs + + + Guide to the Qt Translation Tools + Qt Assistant Manual + Qt Designer Manual + Qt Reference Documentation + qmake User Guide + + + KDE Libraries (Doxygen) + + + + + + + + + + + + + + true + true + true + false + true + true + true + 250 + 400 + 250 + + + + + false + false + + + *.o,*.lo,CVS + false + + + -- cgit v1.2.3