The life span depends on the age of your pipes.
Those that were manufactured a few years back, ( more than 10 years) will last about 50 years.
Newer PVC technology gives a life expectancy of 100 years.
Of course this all depends on what conditions the pipes are subject too.
In the normal course of use the glue used to connect the pipes will fail before the pipes themselves. Still, 25 to 40 years is not unexpected.