|
From: <sv...@va...> - 2017-05-10 16:18:20
|
Author: petarj
Date: Wed May 10 17:18:12 2017
New Revision: 16353
Log:
mips64: finetune cvm_atomic_thread test
Remove unnecessary logs from the expected output.
Modified:
trunk/none/tests/mips64/cvm_atomic_thread.c
trunk/none/tests/mips64/cvm_atomic_thread.stdout.exp
Modified: trunk/none/tests/mips64/cvm_atomic_thread.c
==============================================================================
--- trunk/none/tests/mips64/cvm_atomic_thread.c (original)
+++ trunk/none/tests/mips64/cvm_atomic_thread.c Wed May 10 17:18:12 2017
@@ -311,8 +311,6 @@
long long int* p2[N];
pid_t child, pc2;
- printf("parent, pre-fork\n");
-
for (i = 0; i < N; i++) {
page[i] = mmap( 0, sysconf(_SC_PAGESIZE),
PROT_READ|PROT_WRITE,
@@ -342,7 +340,6 @@
if (child == 0) {
/* --- CHILD --- */
- printf("child\n");
for (i = 0; i < NNN; i++) {
atomic_saa(p1[0], i);
atomic_saad(p2[0], i + 98765 ); /* ensure we hit the upper 32 bits */
@@ -377,8 +374,6 @@
}
/* --- PARENT --- */
- printf("parent\n");
-
for (i = 0; i < NNN; i++) {
atomic_saa(p1[0], i);
atomic_saad(p2[0], i + 98765); /* ensure we hit the upper 32 bits */
Modified: trunk/none/tests/mips64/cvm_atomic_thread.stdout.exp
==============================================================================
--- trunk/none/tests/mips64/cvm_atomic_thread.stdout.exp (original)
+++ trunk/none/tests/mips64/cvm_atomic_thread.stdout.exp Wed May 10 17:18:12 2017
@@ -1,7 +1,3 @@
-parent, pre-fork
-child
-parent, pre-fork
-parent
Store Atomic Add: 32 bit 2156643710, 64 bit 12633614303292
Load Atomic Add: 32 bit 2156643710, 64 bit 12633614303292
Load Atomic Swap: 32 bit 3456986, 64 bit 3555751
|