master.c

ldmud-3.3.719/test/t-0000548/master.c · 453 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

#define OWN_PRIVILEGE_VIOLATION
#include "/inc/base.inc"
#include "/inc/sefun.inc"
#include "/inc/gc.inc"

void run_test()
{
    msg("\nRunning test for #0000548:\n"
          "--------------------------\n");

    "/unpriv"->run_test();
    
}
int privilege_violation(string what, mixed who, mixed where, mixed how)
{
    restore_value("#1:0\n0\n");
    return 1;
}

string *epilog(int eflag)
{
    run_test();
    start_gc(#'shutdown);
    return 0;
}

Site Stats

Snippets: 1791
Codebases: 571