File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,12 @@ Specification tests may be filtered by their description:
296
296
297
297
* ` MONGOC_JSON_SUBTEST=<string> `
298
298
299
- This can be useful in debugging a specific test case in a spec test file with multiple tests.
299
+ This can be useful in debugging a specific test case in a spec test file with multiple tests. Example:
300
+
301
+ ``` sh
302
+ MONGOC_JSON_SUBTEST=" Insert with randomized encryption, then find it" \
303
+ ./cmake-build/src/libmongoc/test-libmongoc -l " /client_side_encryption/legacy/basic"
304
+ ```
300
305
301
306
To test with a declared API version, you can pass the API version using an environment variable:
302
307
Original file line number Diff line number Diff line change @@ -1824,6 +1824,7 @@ run_json_general_test (const json_test_config_t *config)
1824
1824
bson_free (selected_test );
1825
1825
continue ;
1826
1826
}
1827
+ bson_free (selected_test );
1827
1828
1828
1829
if (bson_has_field (& test , "skipReason" )) {
1829
1830
fprintf (stderr ,
@@ -1862,8 +1863,6 @@ run_json_general_test (const json_test_config_t *config)
1862
1863
}
1863
1864
}
1864
1865
1865
- bson_free (selected_test );
1866
-
1867
1866
uri = (config -> uri_str != NULL ) ? mongoc_uri_new (config -> uri_str )
1868
1867
: test_framework_get_uri ();
1869
1868
You can’t perform that action at this time.
0 commit comments