jankos/tests.c
shockrahwow c4bae42dd9 putch + broken interrupt handlers
int handlers only break when ran
2019-10-27 22:08:21 -07:00

32 lines
576 B
C

// Module for testing drivers and other things
#include "stlio.h"
#include "tests.h"
#include "serial.h"
void divide_by_zero() {
// here we can test the divide by zero without gcc noticing
int x = 0;
int y = 5;
int z = y/x;
if(z) {
printf("hmm\n");
}
}
void test_serial_write() {
char* serial1 = "0123456789abcdef0123456789abcdef";
serial_write(serial1, strlen(serial1));
printf("serial test write finished\n");
}
void test_write() {
char* msg1 = "Writing to fbout\n";
printf(msg1);
}
void test_dispatcher() {
clear_fb();
test_write();
divide_by_zero();
}