Skip to content

Commit

Permalink
fix(ci): Fix memory leak of the bvalid_sig test
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Mar 5, 2024
1 parent 76a723a commit 4b669d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion device/esp_tinyusb/test_app/main/test_bvalid_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "soc/gpio_sig_map.h"
#include "unity.h"
#include "tinyusb.h"
#include "tusb_tasks.h"

#define DEVICE_DETACH_TEST_ROUNDS 10
#define DEVICE_DETACH_ROUND_DELAY_MS 1000
Expand Down Expand Up @@ -90,6 +91,8 @@ TEST_CASE("bvalid_signal", "[esp_tinyusb][usb_device]")
TEST_ASSERT_EQUAL(dev_umounted, dev_mounted);
TEST_ASSERT_EQUAL(DEVICE_DETACH_TEST_ROUNDS, dev_mounted);

tinyusb_driver_uninstall();
// Cleanup
TEST_ASSERT_EQUAL(ESP_OK, tinyusb_driver_uninstall());
TEST_ASSERT_EQUAL(ESP_OK, tusb_stop_task());
}
#endif // SOC_USB_OTG_SUPPORTED

0 comments on commit 4b669d2

Please sign in to comment.