SPI communication through LTC pins

I am trying to perform SPI communication through LTC pins using python in linux userspace of HPS. I have followed a loop back test following this link

downloaded a .c code
compiled it.
connected the MOSI to MISO of LTC headers (pin 5 and pin 7)
connected 3.3v to LTC GPIO IN (pin 2 and pin 14 of LTC )
executed the code “didn’t get the desired output” spi communication doesn’t occur.

please help me how i will be able to perform spi communication through that code.

Thank you
Pratik Sharma