Remove site-specific test cpuset_tasks from client/tests.

Signed-off-by: Duane Sand <[email protected]>

--- autotest/client/tests/cpuset_tasks/control  2010-05-20 09:43:26.000000000 
-0700
+++ /dev/null   2009-12-17 12:29:38.000000000 -0800
@@ -1,18 +0,0 @@
-NAME = "cpuset tasks bug"
-AUTHOR = "Divyesh Shah ([email protected])"
-TEST_TYPE = "client"
-TEST_CLASS = "Kernel"
-TEST_CATEGORY = "Functional"
-TIME = "SHORT"
-DOC = """\
-This is a functional test for the bug where reading a cpuset's tasks file would
-fail with ENOMEM when a large number of tasks are present in that cpuset.
-"""
-
-cont_args = {'cpus': [0, 1, 2, 3],
-             'mbytes': 3000,
-            'root': '',
-            'name': 'autotest_container'}
-job.new_container(**cont_args)
-job.run_test('cpuset_tasks')
-job.release_container()
==== (deleted) 
//depot/google_vendor_src_branch/autotest/client/tests/cpuset_tasks/cpuset_tasks.py
 ====
--- autotest/client/tests/cpuset_tasks/cpuset_tasks.py  2010-05-20 
09:43:26.000000000 -0700
+++ /dev/null   2009-12-17 12:29:38.000000000 -0800
@@ -1,33 +0,0 @@
-import os, time
-import subprocess
-from autotest_lib.client.bin import test
-from autotest_lib.client.common_lib import utils, error
-
-
-class cpuset_tasks(test.test):
-    version = 1
-    preserve_srcdir = True
-
-    def initialize(self):
-        self.job.require_gcc()
-
-
-    def setup(self):
-        os.chdir(self.srcdir)
-        utils.system('make')
-
-
-    def execute(self):
-        os.chdir(self.tmpdir)
-        tasks_bin = os.path.join(self.srcdir, 'tasks')
-        p = subprocess.Popen([tasks_bin, ' 25000'])
-        time.sleep(5)
-        try:
-            result = utils.run('cat /dev/cpuset/autotest_container/tasks',
-                               ignore_status=True)
-        except IOError:
-            utils.nuke_subprocess(p)
-            raise error.TestFail('cat cpuset/tasks failed with IOError')
-        utils.nuke_subprocess(p)
-        if result and result.exit_status:
-            raise error.TestFail('cat cpuset/tasks failed')
==== (deleted) 
//depot/google_vendor_src_branch/autotest/client/tests/cpuset_tasks/src/Makefile
 ====
--- autotest/client/tests/cpuset_tasks/src/Makefile     2010-05-20 
09:43:26.000000000 -0700
+++ /dev/null   2009-12-17 12:29:38.000000000 -0800
@@ -1,8 +0,0 @@
-CC=gcc
-
-TESTS=tasks
-
-all: $(TESTS)
-
-tasks: tasks.c
-       $(CC) -o $@ $^
==== (deleted) 
//depot/google_vendor_src_branch/autotest/client/tests/cpuset_tasks/src/tasks.c 
====
--- autotest/client/tests/cpuset_tasks/src/tasks.c      2010-05-20 
09:43:26.000000000 -0700
+++ /dev/null   2009-12-17 12:29:38.000000000 -0800
@@ -1,37 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <sched.h>
-#include <time.h>
-#include <errno.h>
-#include <sys/mman.h>
-
-int idle_task() {
-       int i, ret;
-       sleep(5);
-       for (i = 0; i < 5; i++)
-               sleep(1);
-       return (0);
-}
-
-int main(int argc, char **argv)
-{
-        int ret, num_threads, i;
-        if (argc != 2) {
-                printf("Usage: tasks <num_threads>");
-                return -1;
-        }
-        num_threads = atoi(argv[1]);
-        for (i = 0; i < num_threads; ++i) {
-                void *stack = (void *)malloc(16384);
-                if (stack == NULL) {
-                        printf("Allocation failed");
-                        continue;
-                }
-                ret = clone(&idle_task, (char *)stack + 16384,
-                           CLONE_VM | CLONE_THREAD | CLONE_SIGHAND, 0);
-                if (ret == -1)
-                        printf("Clone failed. errno: %d", errno);
-        }
-       sleep(20);
-        return 0;
-}
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to