File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -1001,12 +1001,6 @@ test_framework_is_replset (void)
1001
1001
return is_replset ;
1002
1002
}
1003
1003
1004
- int
1005
- test_framework_skip_if_single (void )
1006
- {
1007
- return (test_framework_is_mongos () || test_framework_is_replset ());
1008
- }
1009
-
1010
1004
bool
1011
1005
test_framework_server_is_secondary (mongoc_client_t * client ,
1012
1006
uint32_t server_id )
@@ -1173,6 +1167,12 @@ test_version_cmp (void)
1173
1167
ASSERT (v3_2_0_rc1_pre < test_framework_str_to_version ("3.2" ));
1174
1168
}
1175
1169
1170
+ int
1171
+ test_framework_skip_if_single (void )
1172
+ {
1173
+ return (test_framework_is_mongos () || test_framework_is_replset ());
1174
+ }
1175
+
1176
1176
int
1177
1177
test_framework_skip_if_mongos (void )
1178
1178
{
@@ -1185,6 +1185,24 @@ test_framework_skip_if_replset (void)
1185
1185
return test_framework_is_replset () ? 0 : 1 ;
1186
1186
}
1187
1187
1188
+ int
1189
+ test_framework_skip_if_not_single (void )
1190
+ {
1191
+ return !test_framework_skip_if_single ();
1192
+ }
1193
+
1194
+ int
1195
+ test_framework_skip_if_not_mongos (void )
1196
+ {
1197
+ return !test_framework_skip_if_mongos ();
1198
+ }
1199
+
1200
+ int
1201
+ test_framework_skip_if_not_replset (void )
1202
+ {
1203
+ return !test_framework_skip_if_replset ();
1204
+ }
1205
+
1188
1206
int test_framework_skip_if_max_version_version_less_than_4 (void )
1189
1207
{
1190
1208
return test_framework_max_wire_version_at_least (4 );
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ int test_framework_skip_if_mongos (void);
58
58
int test_framework_skip_if_replset (void );
59
59
int test_framework_skip_if_single (void );
60
60
int test_framework_skip_if_windows (void );
61
+ int test_framework_skip_if_not_mongos (void );
62
+ int test_framework_skip_if_not_replset (void );
63
+ int test_framework_skip_if_not_single (void );
61
64
62
65
typedef struct _debug_stream_stats_t {
63
66
mongoc_client_t * client ;
You can’t perform that action at this time.
0 commit comments