spcpuset01: Reduce output to reduce run-time

This commit is contained in:
Joel Sherrill
2015-04-14 15:00:57 -05:00
parent 351858d753
commit b1debed0b9
4 changed files with 12 additions and 4045 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ static void test_cpu_set_case_1(size_t cpu)
/*
* Set to all zeros and verify
*/
printf( "Exercise CPU_ZERO, CPU_SET(%zu), and CPU_ISSET\n", cpu );
DPRINT( "Exercise CPU_ZERO, CPU_SET(%zu), and CPU_ISSET\n", cpu );
CPU_ZERO(&set1);
CPU_SET(cpu, &set1);
@@ -99,7 +99,7 @@ static void test_cpu_clr_case_1(size_t cpu)
/*
* Set to all zeros and verify
*/
printf( "Exercise CPU_FILL, CPU_CLR(%zu), and CPU_ISSET\n", cpu );
DPRINT( "Exercise CPU_FILL, CPU_CLR(%zu), and CPU_ISSET\n", cpu );
CPU_FILL(&set1);
CPU_CLR(cpu, &set1);
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -11,7 +11,6 @@
#include "test_support.h"
#if defined(__RTEMS_HAVE_SYS_CPUSET_H__)
#include <sys/cpuset.h>
/* global variables */
@@ -20,6 +19,12 @@ extern cpu_set_t set2;
extern cpu_set_t set3;
#endif
/* enable/disable verbose output */
#ifndef DPRINT
/* #define DPRINT(...) printf(__VA_ARGS__) */
#define DPRINT(...)
#endif
/* functions */
rtems_task Init(
+4 -5
View File
@@ -5,7 +5,6 @@
/*
* Fully exercise CPU_SET() methods
*/
#include <rtems.h>
#include <stdlib.h>
#include <stdio.h>
@@ -33,7 +32,7 @@ void test_cpu_and_case_1(size_t cpu1, size_t cpu2)
size_t i;
/* AND set1 and set2 */
printf( "Exercise CPU_AND with bits %zd,%zd\n", cpu1, cpu2 );
DPRINT( "Exercise CPU_AND with bits %zd,%zd\n", cpu1, cpu2 );
CPU_AND(&set3, &set1, &set2);
/* test if all bits clear except cpu1 */
@@ -51,7 +50,7 @@ void test_cpu_nand_case_1(size_t cpu1, size_t cpu2)
size_t i;
/* NAND set1 and set2 */
printf( "Exercise CPU_NAND with bits %zd,%zd\n", cpu1, cpu2 );
DPRINT( "Exercise CPU_NAND with bits %zd,%zd\n", cpu1, cpu2 );
CPU_NAND(&set3, &set1, &set2);
/* test if all bits clear except cpu1 */
@@ -68,7 +67,7 @@ void test_cpu_or_case_1(size_t cpu1, size_t cpu2)
size_t i;
/* OR set1 and set2 */
printf( "Exercise CPU_OR with bits %zd,%zd\n", cpu1, cpu2 );
DPRINT( "Exercise CPU_OR with bits %zd,%zd\n", cpu1, cpu2 );
CPU_OR(&set3, &set1, &set2);
/* test if all bits clear except cpu1 */
@@ -85,7 +84,7 @@ void test_cpu_xor_case_1(size_t cpu1, size_t cpu2)
size_t i;
/* XOR set1 and set2 */
printf( "Exercise CPU_XOR with bits %zd,%zd\n", cpu1, cpu2 );
DPRINT( "Exercise CPU_XOR with bits %zd,%zd\n", cpu1, cpu2 );
CPU_XOR(&set3, &set1, &set2);
/* test if all bits clear except cpu1 */