Merge pull request #2216 from matt335672/fix_stream_overflow_in_sextuple_monitor_happy_path_test

Fixes a stream overflow in the test suite
This commit is contained in:
matt335672 2022-04-20 12:43:37 +01:00 committed by GitHub
commit 7868622a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
#include <stdlib.h>
#include <check.h>
#include "log.h"
#include "test_libxrdp.h"
int main (void)
@ -15,8 +16,16 @@ int main (void)
srunner_add_suite(sr, make_suite_test_monitor_processing());
srunner_set_tap(sr, "-");
/*
* Set up console logging */
struct log_config *lc = log_config_init_for_console(LOG_LEVEL_INFO, NULL);
log_start_from_param(lc);
log_config_free(lc);
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed(sr);
srunner_free(sr);
log_end();
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}