commit 879e70d0b68728f7a8534b1a1609bcf79d393676
parent 77d4b9de4d6b29c35b13413e47c4e8e4693226e3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 6 Jul 2022 11:51:04 +0200
Minor update of the load test
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/test_sbuf_load.c b/src/test_sbuf_load.c
@@ -400,10 +400,13 @@ main(int argc, char** argv)
args.verbose = 1;
CHK(sbuf_create(&args, &buf) == RES_OK);
- test_misc(buf);
- test_load(buf);
- test_load_fail(buf);
- test_load_files(buf, argc, argv);
+ if(argc > 1) {
+ test_load_files(buf, argc, argv);
+ } else {
+ test_misc(buf);
+ test_load(buf);
+ test_load_fail(buf);
+ }
CHK(sbuf_ref_put(buf) == RES_OK);
CHK(mem_allocated_size() == 0);