Lines Matching +full:0 +full:us
88 return (0); in compare_usershell()
91 if (rv != 0) { in compare_usershell()
101 free_usershell(struct usershell *us) in free_usershell() argument
103 free(us->path); in free_usershell()
107 sdump_usershell(struct usershell *us, char *buffer, size_t buflen) in sdump_usershell() argument
109 snprintf(buffer, buflen, "%s", us->path); in sdump_usershell()
113 dump_usershell(struct usershell *us) in dump_usershell() argument
115 if (us != NULL) { in dump_usershell()
117 sdump_usershell(us, buffer, sizeof(buffer)); in dump_usershell()
124 usershell_read_snapshot_func(struct usershell *us, char *line) in usershell_read_snapshot_func() argument
127 us->path = strdup(line); in usershell_read_snapshot_func()
128 ATF_REQUIRE(us->path != NULL); in usershell_read_snapshot_func()
130 return (0); in usershell_read_snapshot_func()
140 rv = 0; in run_tests()
154 if (access(snapshot_file, W_OK | R_OK) != 0) { in run_tests()
167 if (rv != 0) { in run_tests()
186 rv = 0; in run_tests()
203 ATF_REQUIRE(run_tests(SNAPSHOT_FILE, TEST_BUILD_SNAPSHOT) == 0); in ATF_TC_BODY()
210 ATF_REQUIRE(run_tests(SNAPSHOT_FILE, TEST_BUILD_SNAPSHOT) == 0); in ATF_TC_BODY()
211 ATF_REQUIRE(run_tests(SNAPSHOT_FILE, TEST_GETUSERSHELL) == 0); in ATF_TC_BODY()