{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/40650571","id":40650571,"diff_hunk":"@@ -0,0 +1,53 @@\n+/*\n+ * Copyright (C) 2015 Hamburg University of Applied Sciences\n+ *\n+ * This file is subject to the terms and conditions of the GNU Lesser\n+ * General Public License v2.1. See the file LICENSE in the top level\n+ * directory for more details.\n+ */\n+\n+/**\n+ * @ingroup tests\n+ * @{\n+ *\n+ * @file\n+ * @brief Thread flooding test.\n+ *\n+ * Spawns sleeping threads till the scheduler's capacity is exhausted.\n+ *\n+ * @author  Andreas \"Paul\" Pauli <andreas.pauli@haw-hamburg.de>\n+ *\n+ * @}\n+ */\n+\n+#include <errno.h>\n+#include <stdio.h>\n+#include \"thread.h\"\n+#include \"lpm.h\"\n+\n+/* One stack for all threads. DON'T TRY THIS AT HOME!! */\n+char dummy_stack[THREAD_STACKSIZE_DEFAULT];","path":"tests/thread_flood/main.c","position":29,"original_position":29,"commit_id":"df3dd19b663dbf1c653f258125b09de9dba7f7a1","original_commit_id":"df3dd19b663dbf1c653f258125b09de9dba7f7a1","user":{"login":"kaspar030","id":4679640,"avatar_url":"https://avatars.githubusercontent.com/u/4679640?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspar030","html_url":"https://github.com/kaspar030","followers_url":"https://api.github.com/users/kaspar030/followers","following_url":"https://api.github.com/users/kaspar030/following{/other_user}","gists_url":"https://api.github.com/users/kaspar030/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspar030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspar030/subscriptions","organizations_url":"https://api.github.com/users/kaspar030/orgs","repos_url":"https://api.github.com/users/kaspar030/repos","events_url":"https://api.github.com/users/kaspar030/events{/privacy}","received_events_url":"https://api.github.com/users/kaspar030/received_events","type":"User","site_admin":false},"body":"static","created_at":"2015-09-29T09:21:56Z","updated_at":"2015-09-29T09:21:56Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/3723#discussion_r40650571","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/40650571"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/3723#discussion_r40650571"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723","id":43424879,"html_url":"https://github.com/RIOT-OS/RIOT/pull/3723","diff_url":"https://github.com/RIOT-OS/RIOT/pull/3723.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/3723.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3723","number":3723,"state":"open","locked":false,"title":"tests: Adding test for thread_create","user":{"login":"A-Paul","id":12623350,"avatar_url":"https://avatars.githubusercontent.com/u/12623350?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Paul","html_url":"https://github.com/A-Paul","followers_url":"https://api.github.com/users/A-Paul/followers","following_url":"https://api.github.com/users/A-Paul/following{/other_user}","gists_url":"https://api.github.com/users/A-Paul/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Paul/subscriptions","organizations_url":"https://api.github.com/users/A-Paul/orgs","repos_url":"https://api.github.com/users/A-Paul/repos","events_url":"https://api.github.com/users/A-Paul/events{/privacy}","received_events_url":"https://api.github.com/users/A-Paul/received_events","type":"User","site_admin":false},"body":"Adding a test for thread creation.\r\nMore precise, for prevent thread creation if maximum of possible threads is reached.\r\nI needed this saturation for creating test conditions in other black-box tests. I thought this also might be an useful *stand alone* test.\r\n\r\nThe shared use of stack memory for all dummy threads is intentionally, just to keep memory usage low and keep things simple.\r\nBecause the threads are just there to sleep after creation and drive the pid counter up this should do no harm in this \"sandbox\".","created_at":"2015-08-26T16:48:33Z","updated_at":"2015-09-29T09:21:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a79b31ae545987c207d1a66d03e0ac9e16cdbf16","assignee":{"login":"kaspar030","id":4679640,"avatar_url":"https://avatars.githubusercontent.com/u/4679640?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspar030","html_url":"https://github.com/kaspar030","followers_url":"https://api.github.com/users/kaspar030/followers","following_url":"https://api.github.com/users/kaspar030/following{/other_user}","gists_url":"https://api.github.com/users/kaspar030/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspar030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspar030/subscriptions","organizations_url":"https://api.github.com/users/kaspar030/orgs","repos_url":"https://api.github.com/users/kaspar030/repos","events_url":"https://api.github.com/users/kaspar030/events{/privacy}","received_events_url":"https://api.github.com/users/kaspar030/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3723/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/df3dd19b663dbf1c653f258125b09de9dba7f7a1","head":{"label":"A-Paul:test_thread_flood","ref":"test_thread_flood","sha":"df3dd19b663dbf1c653f258125b09de9dba7f7a1","user":{"login":"A-Paul","id":12623350,"avatar_url":"https://avatars.githubusercontent.com/u/12623350?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Paul","html_url":"https://github.com/A-Paul","followers_url":"https://api.github.com/users/A-Paul/followers","following_url":"https://api.github.com/users/A-Paul/following{/other_user}","gists_url":"https://api.github.com/users/A-Paul/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Paul/subscriptions","organizations_url":"https://api.github.com/users/A-Paul/orgs","repos_url":"https://api.github.com/users/A-Paul/repos","events_url":"https://api.github.com/users/A-Paul/events{/privacy}","received_events_url":"https://api.github.com/users/A-Paul/received_events","type":"User","site_admin":false},"repo":{"id":36359558,"name":"RIOT","full_name":"A-Paul/RIOT","owner":{"login":"A-Paul","id":12623350,"avatar_url":"https://avatars.githubusercontent.com/u/12623350?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Paul","html_url":"https://github.com/A-Paul","followers_url":"https://api.github.com/users/A-Paul/followers","following_url":"https://api.github.com/users/A-Paul/following{/other_user}","gists_url":"https://api.github.com/users/A-Paul/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Paul/subscriptions","organizations_url":"https://api.github.com/users/A-Paul/orgs","repos_url":"https://api.github.com/users/A-Paul/repos","events_url":"https://api.github.com/users/A-Paul/events{/privacy}","received_events_url":"https://api.github.com/users/A-Paul/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/A-Paul/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/A-Paul/RIOT","forks_url":"https://api.github.com/repos/A-Paul/RIOT/forks","keys_url":"https://api.github.com/repos/A-Paul/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/A-Paul/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/A-Paul/RIOT/teams","hooks_url":"https://api.github.com/repos/A-Paul/RIOT/hooks","issue_events_url":"https://api.github.com/repos/A-Paul/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/A-Paul/RIOT/events","assignees_url":"https://api.github.com/repos/A-Paul/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/A-Paul/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/A-Paul/RIOT/tags","blobs_url":"https://api.github.com/repos/A-Paul/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/A-Paul/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/A-Paul/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/A-Paul/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/A-Paul/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/A-Paul/RIOT/languages","stargazers_url":"https://api.github.com/repos/A-Paul/RIOT/stargazers","contributors_url":"https://api.github.com/repos/A-Paul/RIOT/contributors","subscribers_url":"https://api.github.com/repos/A-Paul/RIOT/subscribers","subscription_url":"https://api.github.com/repos/A-Paul/RIOT/subscription","commits_url":"https://api.github.com/repos/A-Paul/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/A-Paul/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/A-Paul/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/A-Paul/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/A-Paul/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/A-Paul/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/A-Paul/RIOT/merges","archive_url":"https://api.github.com/repos/A-Paul/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/A-Paul/RIOT/downloads","issues_url":"https://api.github.com/repos/A-Paul/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/A-Paul/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/A-Paul/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/A-Paul/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/A-Paul/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/A-Paul/RIOT/releases{/id}","created_at":"2015-05-27T10:23:04Z","updated_at":"2015-05-27T10:23:41Z","pushed_at":"2015-09-23T15:38:56Z","git_url":"git://github.com/A-Paul/RIOT.git","ssh_url":"git@github.com:A-Paul/RIOT.git","clone_url":"https://github.com/A-Paul/RIOT.git","svn_url":"https://github.com/A-Paul/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":20859,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RIOT-OS:master","ref":"master","sha":"4cf8cbccaee6ab58618127fb824750f329c79952","user":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","created_at":"2012-12-29T20:38:40Z","updated_at":"2015-09-27T13:00:36Z","pushed_at":"2015-09-29T09:13:50Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":130316,"stargazers_count":508,"watchers_count":508,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":399,"mirror_url":null,"open_issues_count":368,"forks":399,"open_issues":368,"watchers":508,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/3723"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3723"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3723/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3723/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/df3dd19b663dbf1c653f258125b09de9dba7f7a1"}}}}