#!/bin/bash
gcc -o is_pmem is_pmem.c -lpmem || exit 1
RET=$(./is_pmem ./testfile)
unlink testfile
exit $RET