A Kolmogorov-Smirnov test procedure involving a possibly censored or truncated sample