Revision: 2294
Author:
regra...@gmail.com
Date: Wed Jan 28 17:59:59 2015 UTC
Log: update flow control test where no EQ space remains to account for
other possible event ordering
https://code.google.com/p/portals4/source/detail?r=2294
Modified:
/trunk/test/basic/test_flowctl_noeq.c
=======================================
--- /trunk/test/basic/test_flowctl_noeq.c Mon Oct 21 19:50:28 2013 UTC
+++ /trunk/test/basic/test_flowctl_noeq.c Wed Jan 28 17:59:59 2015 UTC
@@ -132,6 +132,10 @@
;
} else if (PTL_EQ_DROPPED == ret) {
saw_dropped++;
+ if (ev.type == PTL_EVENT_PT_DISABLED){
+ saw_flowctl++;
+ CHECK_RETURNVAL(PtlPTEnable(ni_handle, pt_index));
+ }
break;
} else {
fprintf(stderr, "0: Unexpected return code from
EQWait: %d\n", ret);
@@ -147,7 +151,7 @@
}
fprintf(stderr, "0: Saw %d dropped, %d flowctl\n", saw_dropped,
saw_flowctl);
- if (saw_dropped != 0 || saw_flowctl == 0) {
+ if (saw_flowctl == 0) {
return 1;
}
} else {