spidev_test.c for Pingback Testing of RPi spi: spidev_test.c
Test:
Short MISO and MOSI Pin on your RPi, GPIO9 / GPIO10
wget www.nico-maas.de/wordpress/wp-content/uploads/spidev_test.c
gcc spidev_test.c
sudo ./a.out
If you get some different Output than all 0, everything is fine