X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/bac542e65c0030c0d819c7ff1dcfc25892a61844..df9d6cf7fb01f4e3d4128fe7a687984fe0b45584:/unit-tests/test-cases/rpath-dlopen-leak/main.c?ds=sidebyside diff --git a/unit-tests/test-cases/rpath-dlopen-leak/main.c b/unit-tests/test-cases/rpath-dlopen-leak/main.c index b33ceca..993ea25 100644 --- a/unit-tests/test-cases/rpath-dlopen-leak/main.c +++ b/unit-tests/test-cases/rpath-dlopen-leak/main.c @@ -40,8 +40,11 @@ int main() // execute leaks command on myself char cmd[512]; - sprintf(cmd, "leaks %u\n", getpid()); - system(cmd); + int result = system(cmd); + if ( result == EXIT_SUCCESS ) + PASS("rpath-dlopen-leak"); + else + FAIL("rpath-dlopen-leak"); return EXIT_SUCCESS; }