diff options
Diffstat (limited to 'src/lib/krb5/os/t_ctxprf.py')
-rw-r--r-- | src/lib/krb5/os/t_ctxprf.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/krb5/os/t_ctxprf.py b/src/lib/krb5/os/t_ctxprf.py new file mode 100644 index 0000000..1f3cc72 --- /dev/null +++ b/src/lib/krb5/os/t_ctxprf.py @@ -0,0 +1,15 @@ +from k5test import * + +realm = K5Realm(create_kdb=False) + +mark('initially empty profile') +realm.run(['./t_ctxprf', 'empty']) + +mark('modified single-file profile') +realm.run(['./t_ctxprf']) +with open(os.path.join(realm.testdir, 'krb5.conf')) as f: + contents = f.read() + if 'ctx.prf.test' in contents: + fail('profile changes unexpectedly flushed') + +success('krb5_init_context_profile() tests') |