File: test_atmega48_watchdog_test.c

package info (click to toggle)
simavr 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,268 kB
  • sloc: ansic: 362,806; makefile: 622; ruby: 70; python: 63
file content (15 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "tests.h"

int main(int argc, char **argv) {
	tests_init(argc, argv);

	static const char *expected =
		"Watchdog is active\r\n"
		"Waiting for Watchdog to kick\r\n"
		"Watchdog kicked us!\r\n";

	tests_assert_uart_receive("atmega48_watchdog_test.axf", 1000000,
				  expected, '0');
	tests_success();
	return 0;
}