[PATCH][cr-tests] Ensure pthread stack attributes are restored

Sukadev Bhattiprolu sukadev at linux.vnet.ibm.com
Fri Dec 11 17:53:51 PST 2009


Serge E. Hallyn [serue at us.ibm.com] wrote:
| Quoting Sukadev Bhattiprolu (sukadev at linux.vnet.ibm.com):
| > +++ b/process-tree/run-pthread2.sh
| > @@ -0,0 +1,206 @@
| > +#!/bin/bash
| > +
| > +source ../common.sh
| > +
| > +#dir=`mktemp -p . -d -t cr_pthread2_XXXXXXX` || (echo "mktemp failed"; exit 1)
| > +dir=cr_pthread2
| 
| Note that this means we won't be able to run multiple instances in
| parallel.  Why did you need to do this?
| 
Grr, I meant to remove that after my testing.

Anyway, I am wondering if I should just extend the test case to memcmp()
the pthread_attr_t before and after C/R rather than individually testing
each attribute (like the stack addr/size in this case). I am working on
an update to this test and will fix this too.

Sukadev


More information about the Containers mailing list