mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-06-05 21:04:46 +00:00
32df7e27fc
Add support of percent-encoded characters when passing the username and password in URI Closes https://github.com/espressif/esp-mqtt/issues/294
27 lines
551 B
C++
27 lines
551 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <catch2/catch_session.hpp>
|
|
|
|
extern "C" void app_main(void)
|
|
{
|
|
int argc = 1;
|
|
const char *argv[2] = {
|
|
"target_test_main",
|
|
NULL
|
|
};
|
|
auto result = Catch::Session().run(argc, argv);
|
|
|
|
if (result != 0) {
|
|
printf("Test failed with result %d\n", result);
|
|
exit(1);
|
|
} else {
|
|
printf("Test passed.\n");
|
|
exit(0);
|
|
}
|
|
}
|