Diesels are like any other motor. It needs to be looked after. If they have been looked after, generally speaking they will outlast a petrol motor. Things to check is the r servicing records, does it blow smoke and carbon build up in the oil. Normally a diesel should not blow smoke and the oil should be clean. If it blows smoke or carbon in the oil, stay clear otherwise they are, generally, good reliable motors.