]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb:tests: Allow test filtering in ldb_mod_op_test
authorAndreas Schneider <asn@samba.org>
Wed, 4 Dec 2019 12:54:04 +0000 (13:54 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 5 Dec 2019 17:13:36 +0000 (17:13 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Dec  5 17:13:36 UTC 2019 on sn-devel-184

lib/ldb/tests/ldb_mod_op_test.c

index 13bfb36e74eb8eb2ea95b5abb3489754005403d1..0aa9ac2ce2712ac71467e6bb591a987badcf549c 100644 (file)
@@ -4714,5 +4714,9 @@ int main(int argc, const char **argv)
                        ldbtest_teardown),
        };
 
+       if (argc > 1) {
+               cmocka_set_test_filter(argv[1]);
+       }
+
        return cmocka_run_group_tests(tests, NULL, NULL);
 }