summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-06-07 12:13:24 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-06-07 12:13:24 +0200
commitb63256e69bf3f1a74aadb0e14556490bc8f4ef95 (patch)
treeb59b2fdbab41feb8edecbc307a042d2567873c0f /test
parent7a5b08fb26dcfb343e2c89567bf139af252a95fd (diff)
downloadstrace-b63256e69bf3f1a74aadb0e14556490bc8f4ef95.tar.gz
strace-b63256e69bf3f1a74aadb0e14556490bc8f4ef95.tar.bz2
strace-b63256e69bf3f1a74aadb0e14556490bc8f4ef95.tar.xz
Whitespace cleanups. no code changes.
* bjm.c: Fix tabulation (such as extra spaces before tabs), convert punctuation where it deviates from prevalent form elsewhere in strace code, convert sizeof and offsetof where it deviates from from prevalent form, remove space between function/macro/array names and (parameters) or [index], add space between "if" and (condition), correct non-standard or wrong indentaion. * defs.h: Likewise * desc.c: Likewise * file.c: Likewise * ipc.c: Likewise * linux/arm/syscallent.h: Likewise * linux/avr32/syscallent.h: Likewise * linux/hppa/syscallent.h: Likewise * linux/i386/syscallent.h: Likewise * linux/ioctlsort.c: Likewise * linux/m68k/syscallent.h: Likewise * linux/microblaze/syscallent.h: Likewise * linux/powerpc/syscallent.h: Likewise * linux/s390/syscallent.h: Likewise * linux/s390x/syscallent.h: Likewise * linux/sh/syscallent.h: Likewise * linux/sh64/syscallent.h: Likewise * linux/tile/syscallent.h: Likewise * linux/x86_64/syscallent.h: Likewise * mem.c: Likewise * net.c: Likewise * pathtrace.c: Likewise * process.c: Likewise * signal.c: Likewise * sock.c: Likewise * strace.c: Likewise * stream.c: Likewise * sunos4/syscall.h: Likewise * sunos4/syscallent.h: Likewise * svr4/syscall.h: Likewise * svr4/syscallent.h: Likewise * syscall.c: Likewise * system.c: Likewise * test/childthread.c: Likewise * test/leaderkill.c: Likewise * test/skodic.c: Likewise * time.c: Likewise * util.c: Likewise Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/childthread.c2
-rw-r--r--test/leaderkill.c6
-rw-r--r--test/skodic.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/childthread.c b/test/childthread.c
index e89fb14..c86b9cf 100644
--- a/test/childthread.c
+++ b/test/childthread.c
@@ -29,7 +29,7 @@ int main(int argc, char *argv[])
child = fork();
- switch(child) {
+ switch (child) {
case -1:
assert(0);
case 0:
diff --git a/test/leaderkill.c b/test/leaderkill.c
index ebb6ad1..c24a9f0 100644
--- a/test/leaderkill.c
+++ b/test/leaderkill.c
@@ -1,5 +1,5 @@
-/* Test handle_group_exit () handling of a thread leader still alive with its
- * thread child calling exit_group () and proper passing of the process exit
+/* Test handle_group_exit() handling of a thread leader still alive with its
+ * thread child calling exit_group() and proper passing of the process exit
* code to the process parent of this whole thread group.
*
* gcc -o test/leaderkill test/leaderkill.c -Wall -ggdb2 -pthread;./test/leaderkill & pid=$!;sleep 1;strace -o x -q ./strace -f -p $pid
@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
child = fork();
- switch(child) {
+ switch (child) {
case -1:
abort();
case 0:
diff --git a/test/skodic.c b/test/skodic.c
index 09967bd..cfb935e 100644
--- a/test/skodic.c
+++ b/test/skodic.c
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
*c = 0;
if (fork()) {
- while(1) {
+ while (1) {
strcpy(c, "/etc/passwd");
strcpy(c, "/etc/shadow");
}